From 743d1cbec96b18127e879d3275b287b59dc88041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Awirski?= Date: Wed, 16 Apr 2025 11:45:09 +0200 Subject: [PATCH] clarify empty_nodes_mask documentation --- miden-crypto/src/merkle/sparse_path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miden-crypto/src/merkle/sparse_path.rs b/miden-crypto/src/merkle/sparse_path.rs index cad3f04..a86095b 100644 --- a/miden-crypto/src/merkle/sparse_path.rs +++ b/miden-crypto/src/merkle/sparse_path.rs @@ -25,6 +25,8 @@ use super::{ #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub struct SparseMerklePath { /// A bitmask representing empty nodes. The set bit corresponds to the depth of an empty node. + /// The least significant bit (bit 0) describes depth 1 node (root's children). + /// The `bit index + 1` is equal to node's depth. empty_nodes_mask: u64, /// The non-empty nodes, stored in depth-order, but not contiguous across depth. nodes: Vec,