test: update poseidon test with proofs

This commit is contained in:
Magamedrasul Ibragimov 2022-11-16 19:23:05 +03:00
parent 20a436781b
commit 5b25cbc721
1 changed files with 6 additions and 8 deletions

View File

@ -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(())
}