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

    Class KeyInterfaceAbstract

    Abstract interface to all kinds of key-related functions

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    hasPrivateKey: boolean

    Determine if this key pair has a private key associated

    Get the type of key in use (ECDSA or ED25519) for this key pair

    Get the public key for this key pair

    supportsEncryption: boolean

    Determine if the key supports encryption/decryption

    derivePrivateKeyFromSeed?: seedDerivationFunction

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

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

    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

      • ...parameters: [data: ArrayBuffer]

      Returns Promise<ArrayBuffer>

    • Encrypt some data

      Parameters

      • ...parameters: [data: ArrayBuffer]

      Returns Promise<ArrayBuffer>