Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PvtKeyWallet

Hierarchy

  • PvtKeyWallet

Index

Constructors

  • new PvtKeyWallet(privateKey: Uint8Array, publicKey: Uint8Array, address: string): PvtKeyWallet

Methods

  • getAccounts(): { address: string; algo: string; pubkey: Uint8Array }[]
  • Returns { address: string; algo: string; pubkey: Uint8Array }[]

  • signDirect(signerAddress: string, signDoc: SignDoc, signOptions?: { extraEntropy?: boolean }): Promise<{ signature: StdSignature; signed: SignDoc }>
  • Parameters

    • signerAddress: string
    • signDoc: SignDoc
    • Optional signOptions: { extraEntropy?: boolean }
      • Optional extraEntropy?: boolean

    Returns Promise<{ signature: StdSignature; signed: SignDoc }>

  • generateWallet(privateKey: string, addressPrefix: string): PvtKeyWallet