semaphore-protocol / semaphore

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

The sample code has bug(# Identity.verifySignature) #848

Closed csiejimmyliu closed 2 months ago

csiejimmyliu commented 2 months ago

The sample code in the readme of Semaphore identity(# Identity.verifySignature) has reference error. Because the "signature" pass in "signMessage" function didn't declare.

ReferenceError: Cannot access 'signature' before initialization