Closed sshravan closed 5 years ago
Turns out that my usage of Witness
is wrong.
If I switch
let witness = Witness(acc.clone());
to
let witness = proof.witness.clone(); // Or
let witness = Witness(Accumulator::<G, &'static str>::empty());
It works fine.
I run to
BadWitness
error when I try to generate membership proof for an element from the output ofcompute_individual_witnesses
.In this example, I am trying to verify the membership of "cat" in the set after performing batch add. However, I run into errors at
prove_membership
.