Optional
sodium: SodiumPlusOptional
sk: Ed25519SecretKeyOptional
pk: Ed25519PublicKeyOptional
identityOptional
identityOptional
myOptional
preOptional
sodiumGenerates an identity keypair (Ed25519).
Get (and generate, if it doesn't exist) the pre-key keypair.
This only returns the X25519 keys. It doesn't include the Ed25519 signature.
Get the stored identity keypair (Ed25519).
Get (and generate, if it doesn't exist) the pre-key keypair.
This only returns the X25519 keys. It doesn't include the Ed25519 signature.
Load an Ed25519 keypair from the filesystem.
Optional
filePath: stringSets the identity keys stored in this object.
Optional
identityPublic: Ed25519PublicKey
This is an example implementation of an identity management class.
You almost certainly want to build your own.