Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions noir_stdlib/src/merkle.nr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Currently we assume that it is a binary tree, so depth k implies a width of 2^k
// XXX: In the future we can add an arity parameter
// Returns the merkle root of the tree from the provided leaf, its hashpath, using a pedersen hash function.
#[deprecated("This function will be removed from the stdlib in version 1.0.0-beta.4")]
pub fn compute_merkle_root<let N: u32>(leaf: Field, index: Field, hash_path: [Field; N]) -> Field {
let index_bits: [u1; N] = index.to_le_bits();
let mut current = leaf;
Expand Down