Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ed25519/ed25519"

Index

Variables

PUBLIC_KEY_LENGTH

PUBLIC_KEY_LENGTH: 32 = 32

SECRET_KEY_LENGTH

SECRET_KEY_LENGTH: 64 = 64

SEED_LENGTH

SEED_LENGTH: 32 = 32

SIGNATURE_LENGTH

SIGNATURE_LENGTH: 64 = 64

Functions

extractPublicKeyFromSecretKey

  • extractPublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array

generateKeyPair

  • generateKeyPair(prng?: RandomSource): KeyPair

generateKeyPairFromSeed

  • generateKeyPairFromSeed(seed: Uint8Array): KeyPair

sign

  • sign(secretKey: Uint8Array, message: Uint8Array): Uint8Array

verify

  • verify(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean
  • Parameters

    • publicKey: Uint8Array
    • message: Uint8Array
    • signature: Uint8Array

    Returns boolean

Generated using TypeDoc