Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Keychain

Hierarchy

  • Keychain

Index

Constructors

constructor

  • new Keychain(privateKey: Buffer, chainCode: Buffer): Keychain
  • Parameters

    • privateKey: Buffer
    • chainCode: Buffer

    Returns Keychain

Properties

chainCode

chainCode: Buffer = EMPTY_BUFFER

depth

depth: number = 0

fingerprint

fingerprint: number = 0

identifier

identifier: Buffer = EMPTY_BUFFER

index

index: number = 0

parentFingerprint

parentFingerprint: number = 0

privateKey

privateKey: Buffer = EMPTY_BUFFER

publicKey

publicKey: Buffer = EMPTY_BUFFER

Methods

calculateFingerprint

  • calculateFingerprint(): void
  • Returns void

deriveChild

  • deriveChild(index: number, hardened: boolean): Keychain
  • Parameters

    • index: number
    • hardened: boolean

    Returns Keychain

derivePath

  • Parameters

    • path: string

    Returns Keychain

hash160

  • hash160(data: Buffer): Buffer
  • Parameters

    • data: Buffer

    Returns Buffer

isNeutered

  • isNeutered(): Boolean
  • Returns Boolean

Static fromPublicKey

  • fromPublicKey(publicKey: Buffer, chainCode: Buffer, path: String): Keychain
  • Parameters

    • publicKey: Buffer
    • chainCode: Buffer
    • path: String

    Returns Keychain

Static fromSeed

  • Parameters

    • seed: Buffer

    Returns Keychain

Generated using TypeDoc