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

    Type Parameters

    Index

    Constructors

    Properties

    AccountKeyAlgorithm: typeof AccountKeyAlgorithm = AccountKeyAlgorithm
    ExternalKeyPair: typeof ExternalKeyPair = ExternalKeyPair
    isInstance: (obj: any, strict?: boolean) => obj is Account<AccountKeyAlgorithm> = ...
    toJSONSerializablePrefix: string = 'ACCOUNT'

    Accessors

    • get hasPrivateKey(): boolean

      Determine if this account has a private key associated with it

      Returns boolean

    • get keyType(): T

      Get the type of key for this account (SECP256K1 / R1 or ED25519)

      Returns T

    • get publicKeyAndType(): Buffer

      Returns Buffer

    • get signatureSize(): null | number

      Determine the size of signatures (in bytes) or null if the key type cannot produce signatures

      Returns null | number

    • get supportsEncryption(): boolean

      Returns boolean

    Methods

    • Parameters

      • data: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Parameters

      • data: ArrayBuffer

      Returns Promise<ArrayBuffer>

    • Construct an account from an ECDSA private key for SECP256K1.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ECDSA_SECP256K1>

    • Construct an account from an ECDSA public key for SECP256K1.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ECDSA_SECP256K1>

    • Construct an account from an ECDSA private key for SECP256R1.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ECDSA_SECP256R1>

    • Construct an account from an ECDSA public key for SECP256R1.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ECDSA_SECP256R1>

    • Construct an account from an ED25519 private key.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ED25519>

    • Construct an account from an ED25519 public key.

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<ED25519>

    • Construct an account from a network identifier public key

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<NETWORK>

    • Construct an Account from an KeyType and Public Key buffer

      Parameters

      • keyData: Buffer

      Returns GenericAccount

    • Construct an account from a Seed and Index.

      Type Parameters

      Parameters

      • seed: string | bigint | ArrayBuffer
      • index: number
      • keyType: Z

      Returns Account<Z>

    • Construct an account from a Seed and Index.

      Parameters

      • seed: string | bigint | ArrayBuffer
      • index: number

      Returns Account<ECDSA_SECP256K1>

    • Construct an account from a storage identifier public key

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<STORAGE>

    • Construct an account from a token identifier public key

      Parameters

      • key: string | bigint | ArrayBuffer

      Returns Account<TOKEN>

    • Securely generate a new random seed value

      Parameters

      • options: { asString: true }

      Returns string

    • Securely generate a new random seed value

      Parameters

      • options: { asString: false }

      Returns ArrayBuffer

    • Securely generate a new random seed value

      Returns ArrayBuffer

    • Securely generate a new random seed value

      Parameters

      • Optionaloptions: { asString: boolean }

      Returns string | ArrayBuffer

    • Convert a passphrase into a seed

      Parameters

      • passphrase: string
      • options: { asString: true }

      Returns Promise<string>

    • Convert a passphrase into a seed

      Parameters

      • passphrase: string
      • options: { asString: false }

      Returns Promise<ArrayBuffer>

    • Convert a passphrase into a seed

      Parameters

      • passphrase: string

      Returns Promise<ArrayBuffer>

    • Convert a passphrase into a seed

      Parameters

      • passphrase: string
      • Optionaloptions: { asString: boolean }

      Returns Promise<string | ArrayBuffer>