mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
Formatting fix
This commit is contained in:
committed by
Pratyush Mishra
parent
0b87c84cdd
commit
67196d8371
@@ -163,7 +163,8 @@ impl<P: MerkleTreeConfig> MerkleHashTree<P> {
|
|||||||
let mut cur_hash = tree[0].clone();
|
let mut cur_hash = tree[0].clone();
|
||||||
let root_hash = if cur_height < Self::HEIGHT as usize {
|
let root_hash = if cur_height < Self::HEIGHT as usize {
|
||||||
while cur_height < (Self::HEIGHT - 1) as usize {
|
while cur_height < (Self::HEIGHT - 1) as usize {
|
||||||
cur_hash = hash_inner_node::<P::H>(¶meters, &cur_hash, &empty_hash, &mut buffer)?;
|
cur_hash =
|
||||||
|
hash_inner_node::<P::H>(¶meters, &cur_hash, &empty_hash, &mut buffer)?;
|
||||||
padding_tree.push((cur_hash.clone(), empty_hash.clone()));
|
padding_tree.push((cur_hash.clone(), empty_hash.clone()));
|
||||||
cur_height += 1;
|
cur_height += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user