Class KeyPrivate

PKI private key

Hierarchy

  • KeyPrivate

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

key

  • get key(): any
  • Raw representation of key for dcorejs_libjs library purposes.

    Returns any

stringKey

  • get stringKey(): string
  • WIF format string representation of key

    Returns string

Methods

getPublicKey

Static fromBrainKey

  • fromBrainKey(brainKey: string, sequence?: number): KeyPrivate
  • Create KeyPrivate from brain key.

    Parameters

    • brainKey: string

      Brain key to generate private key from.

    • Default value sequence: number = 0

      Sequence number, for generating derived private key

    Returns KeyPrivate

    KeyPrivate instance.

Static fromWif

  • Create KeyPrivate from WIF/hex format of private key.

    Parameters

    • privateKeyWif: string

      Private key in WIF(hex) (Wallet Import Format) format.

    Returns KeyPrivate

    KeyPrivate instance.

Powered by DECENT