mirror of https://github.com/vacp2p/pmtree.git
test: update poseidon test with proofs
This commit is contained in:
parent
20a436781b
commit
5b25cbc721
|
@ -83,15 +83,13 @@ fn poseidon_memory() -> Result<()> {
|
|||
MyFr(Fr::from_str("78912").unwrap()),
|
||||
];
|
||||
|
||||
mt.update_next(leaves[0])?;
|
||||
for &leaf in &leaves {
|
||||
mt.update_next(leaf)?;
|
||||
}
|
||||
|
||||
// for &leaf in &leaves {
|
||||
// mt.update_next(leaf)?;
|
||||
// }
|
||||
|
||||
// for (i, leaf) in leaves.iter().enumerate() {
|
||||
// assert!(mt.verify(leaf, &mt.proof(i)?));
|
||||
// }
|
||||
for (i, leaf) in leaves.iter().enumerate() {
|
||||
assert!(mt.verify(leaf, &mt.proof(i)?));
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue