semaphore-rs
semaphore-rs copied to clipboard
Implementation of Random Identity Generation
Motivation
Developing a method to assign unique IDs (commitments) to users and securely manage their identity secrets (trapdoor & nullifier) in a custodial setup.
Solution
- Generate a random number.
- Convert this number to a string.
- Transform the string to bytes.
- Shape these bytes into a fixed-length array for
Identity::from_secret()
.