semaphore-protocol / semaphore

A zero-knowledge protocol for anonymous interactions.
https://semaphore.pse.dev
MIT License
929 stars 211 forks source link

feat(proof): encode solidity calldata for proof #819

Closed teddav closed 4 months ago

teddav commented 4 months ago

Just a quick PR to make it easier for users to encode calldata for solidity. If using JS you probably don't need that, but I'm using Foundry, so it makes it a bit easier for me, and I thought it could be useful to others.

I also update the docs

cedoor commented 4 months ago

Hi @teddav, the code looks good! Can you add more context on why Foundry needs the proof to be encoded?