Browse Source

docs: mention tree form order of NodeIndex docs

al-gkr-basic-workflow
Augusto F. Hack 2 years ago
parent
commit
dfb073f784
No known key found for this signature in database GPG Key ID: 3F3584B7FB1DFB76
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/merkle/index.rs

+ 3
- 0
src/merkle/index.rs

@ -4,6 +4,9 @@ use super::{Felt, MerkleError, RpoDigest, StarkField};
// ================================================================================================ // ================================================================================================
/// A Merkle tree address to an arbitrary node. /// A Merkle tree address to an arbitrary node.
///
/// The position is relative to a tree in level order, where for a given depth `d` elements are
/// numbered from $0..2^d$.
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)] #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct NodeIndex { pub struct NodeIndex {
depth: u8, depth: u8,

Loading…
Cancel
Save