semaphore-protocol / semaphore

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

New private key types #700

Closed cedoor closed 6 months ago

cedoor commented 6 months ago

Description:

The type of the identities' private key are currently many: bigint, number, string, Buffer etc. This may generate confusion and it makes the process of storing private keys harder, as devs will need to convert values more often.

One type only could be supported instead: string, which may be either text (e.g. a password/secret) or a hexadecimal string (without 0x/0X as a prefix). This would also make all the Identity attributes the same type.