Interface Ed25519SigningKey

An ed25519 public key paired with a function that signs raw bytes with the corresponding secret key.

Remarks

ed25519Signer receives the exact bytes to sign, with every domain-separation prefix already applied, so it can be backed by a key that never leaves a wallet, HSM or hardware device.

interface Ed25519SigningKey {
    ed25519PublicKey: Uint8Array;
    ed25519Signer: ((bytesToSign) => Promise<Uint8Array>);
}

Properties

ed25519PublicKey: Uint8Array

The 32-byte ed25519 public key.

ed25519Signer: ((bytesToSign) => Promise<Uint8Array>)

Signs the given bytes verbatim with the corresponding secret key.

Type declaration

    • (bytesToSign): Promise<Uint8Array>
    • Signs the given bytes verbatim with the corresponding secret key.

      Parameters

      • bytesToSign: Uint8Array

      Returns Promise<Uint8Array>

Generated using TypeDoc