semaphore-protocol / semaphore

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

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

Closed csiejimmyliu closed 3 months ago

csiejimmyliu commented 3 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