privacy-scaling-explorations / zk-kit

A monorepo of reusable libraries for zero-knowledge technologies.
https://zkkit.pse.dev
MIT License
295 stars 80 forks source link

feat(imt): add static version of IMT verifyProof #223

Closed artwyman closed 8 months ago

artwyman commented 8 months ago

re #218

Description

Adds static versions of verifyProof on IMT and LeanIMT so that it's not necessary to create an IMT object just to verify an existing proof. Existing instance method still exists (to avoid breaking change) and calls the static one. Also clarified in docs that the instance method doesn't check that the proof comes from this specific tree (i.e. no checking of root).

Related Issue(s)

Closes #218

Checklist