semaphore-protocol / semaphore

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

Convert hexadecimal private key before signing messages #734

Closed cedoor closed 5 months ago

cedoor commented 5 months ago

Description

The ZK-Kit EdDSA Poseidon package only supports the following private key types: text, buffer. The Semaphore identity supports text and hexadecimal strings. If the identity private key is a hexadicimal string it needs to be converted before being passed to any ZK-Kit function.

Related Issue(s)

Fixes #733

Checklist