Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MnemonicKey

Implements a BIP39 mnemonic wallet with standard key derivation from a word list. Note that this implementation exposes the private key in memory, so it is not advised to use for applications requiring high security.

Hierarchy

  • Key
    • MnemonicKey

Index

Constructors

constructor

Properties

accAddress

accAddress: AccAddress

Terra account address. terra- prefixed.

accPubKey

accPubKey: AccPubKey

Terra account public key. terrapub- prefixed.

mnemonic

mnemonic: string

Space-separated mnemonic phrase.

privateKey

privateKey: Buffer

Raw private key, in bytes.

publicKey

publicKey: Buffer

raw compressed bytes public key

valAddress

valAddress: ValAddress

Terra validator address. terravaloper- prefixed.

valPubKey

valPubKey: ValPubKey

Terra validator public key. terravaloperpub- prefixed.

Methods

createSignature

ecdsaSign

  • ecdsaSign(payload: Buffer): { recid: number; signature: Uint8Array }
  • Parameters

    • payload: Buffer

    Returns { recid: number; signature: Uint8Array }

    • recid: number
    • signature: Uint8Array

sign

  • sign(payload: Buffer): Promise<Buffer>

signTx