Open 0xDatapunk opened 1 month ago
A proof of non-membership in a empty tree should still be true
tho. Wdyt @0xDatapunk ?
yes, and the code above should return true for non-membership.
Not sure about this merkleProof.matchingEntry === undefined
-> should a matchingEntry
should still be defined?
https://github.com/privacy-scaling-explorations/zk-kit/blob/253277c91c8ffee33bfb4bc5abd8a0db0251df61/packages/smt/src/smt.ts#L237
not sure if it is as designed, but verifyProof return True for any key with an empty tree. It makes better sense if false is returned: