Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Keypair

Index

Constructors

constructor

  • new Keypair(keypair: SodiumKeyPair, netType?: number): Keypair
  • Parameters

    • keypair: SodiumKeyPair
    • Optional netType: number

    Returns Keypair

Properties

keyType

keyType: number

keypair

keypair: SodiumKeyPair

netType

netType: number

privateKey

privateKey: Buffer

publicKey

publicKey: Buffer

Accessors

address

  • Returns Address

Methods

sign

  • sign(message: string | Uint8Array): Promise<Buffer>
  • Parameters

    • message: string | Uint8Array

    Returns Promise<Buffer>

Static fromEntropy

  • fromEntropy(entropy: Buffer | Uint8Array, netType?: number): Promise<Keypair>
  • Parameters

    • entropy: Buffer | Uint8Array
    • Optional netType: number

    Returns Promise<Keypair>

Static fromMnemonic

  • Parameters

    • mnenomic: Mnemonic
    • Optional netType: number

    Returns Promise<Keypair>

Static fromWords

  • fromWords(words: string[], netType?: number): Promise<Keypair>
  • Parameters

    • words: string[]
    • Optional netType: number

    Returns Promise<Keypair>

Static makeRandom

  • makeRandom(netType?: number): Promise<Keypair>
  • Parameters

    • Optional netType: number

    Returns Promise<Keypair>

Generated using TypeDoc