semaphore-protocol / semaphore

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

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

Closed teddav closed 2 months ago

teddav commented 3 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 2 months ago

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