Methods
Static createSignature
- createSignature(message: Uint8Array, keyPair: Ed25519Keypair): Promise<Uint8Array>
Parameters
Returns Promise<Uint8Array>
Static verifySignature
- verifySignature(signature: Uint8Array, message: Uint8Array, pubkey: Uint8Array): Promise<boolean>
Parameters
signature: Uint8Array
message: Uint8Array
pubkey: Uint8Array
Returns Promise<boolean>
Generates a keypair deterministically from a given 32 bytes seed.
This seed equals the Ed25519 private key. For implementation details see crypto_sign_seed_keypair in https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html and diagram on https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/