Initialize a new keypair from a passed hex string. Generates a random private key if not defined.
hex string of a field element for the
Private
encryptionPrivate
pubkeyStatic
encryptStatic
fromInitialize new keypair from string data.
The keypair object configured with appropriate public values.
If the string object is not 66 chars or 130 chars.
A string which contains public keydata. (0, 66), the slice for the pubKey value, 0x-prefixed, which is required. (66, 130), the slice for the encryptionKey value, which is optional to enable encrypt and decrypt functionality. It should be hex encoded.
Generated using TypeDoc
A Keypair is an object that can group relevant keys for a user in the webb system. The keys managed by a keypair are as follows:
pubkey = poseidon(privkey)