mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-09 15:41:30 +01:00
Merge pull request #74 from 0xPolygonMiden/hacka-node-index-docs
docs: mention tree form order of NodeIndex docs
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user