Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    ED25519 Key Interface

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    supportsEncryption: true

    Determine if the key supports encryption/decryption

    isInstance: (obj: any, strict?: boolean) => obj is ED25519KeyPair = ...

    Accessors

    • get hasPrivateKey(): boolean

      Determine if this key pair has a private key associated

      Returns boolean

    Methods

    • Testing interface to validate that a private key is equal to some value (undefined if undecidable)

      Parameters

      • checkKey: ArrayBuffer

      Returns undefined | boolean

    • Decrypt some data

      Parameters

      • data: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Encrypt some data

      Parameters

      • data: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Create a private key generated from a seed value and an index

      Parameters

      • seed: string | ArrayBuffer
      • index: number

      Returns ED25519PrivateKey

    • Create a new instance with a private key generated from a seed value and index

      Parameters

      • seed: string | ArrayBuffer
      • index: number

      Returns ED25519KeyPair