You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The membership witness methods return both the sibling path and additional context (leaf index, preimage data) needed for proofs.
@@ -56,6 +56,29 @@ The nullifier secret key (`nsk_m` / `nsk_app`) has been renamed to nullifier hid
56
56
57
57
The `GeneratorIndex.NSK_M` enum member is now `GeneratorIndex.NHK_M`.
58
58
59
+
### [AztecNode/Aztec.nr]`getArchiveMembershipWitness` renamed to `getBlockHashMembershipWitness`
60
+
61
+
The `getArchiveMembershipWitness` method has been renamed to `getBlockHashMembershipWitness` to better reflect its purpose. Block hashes are the leaves of the archive tree - each time a new block is added to the chain, its block hash is appended as a new leaf. This rename clarifies that the method finds a membership witness for a block hash in the archive tree.
Gets a membership witness for a block hash in the archive tree. Block hashes are the leaves of the archive tree - each time a new block is added to the chain, its block hash is appended as a new leaf.
481
481
482
482
**Parameters**:
483
483
484
-
1.`blockNumber` - `number | "latest"` - Block number
485
-
2.`archive` - `string` - Archive leaf value (32-byte hex)
484
+
1.`block` - `number | "latest"` - Block number at which to query the archive tree
485
+
2.`blockHash` - `string` - Block hash to find in the archive tree (32-byte hex)
486
486
487
487
**Returns**: `MembershipWitness | null`
488
488
@@ -491,7 +491,7 @@ Gets archive tree membership witness.
0 commit comments