Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
move todos
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed May 8, 2023
1 parent cdb7ed2 commit 7ed2f17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/merkle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO(#166): Rework this module to return results
use acvm::FieldElement;
use std::{convert::TryInto, path::Path};

Expand Down Expand Up @@ -65,7 +66,6 @@ pub(crate) struct MerkleTree<MH: MessageHasher, PH: PathHasher> {
msg_hasher: MH,
}

// TODO: Rework this module to return results
fn insert_root(db: &mut sled::Db, value: FieldElement) {
db.insert("ROOT".as_bytes(), value.to_be_bytes()).unwrap();
}
Expand Down Expand Up @@ -203,7 +203,6 @@ impl<MH: MessageHasher, PH: PathHasher> MerkleTree<MH, PH> {
for i in 0..layer_size {
hashes[offset + i] = current;
}
// TODO: no unwrap
current = barretenberg.hash(&current, &current).unwrap();

offset += layer_size;
Expand Down

0 comments on commit 7ed2f17

Please sign in to comment.