Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PublicKey

Public and private keys.

Hierarchy

  • PublicKey

Index

Constructors

constructor

  • new PublicKey(hash: Buffer, isCompressed?: boolean, network?: Network): PublicKey

Properties

hash

hash: Buffer

isCompressed

isCompressed: boolean

Optional network

network: Network

Methods

getAddress

  • getAddress(): string

setNetwork

  • setNetwork(network: Network): void
  • Set a network to publicKey Useful to get address from specific version

    Parameters

    Returns void

toHex

  • toHex(): string

verifySignature

  • verifySignature(signature: Buffer, data: Buffer): any
  • Parameters

    • signature: Buffer
    • data: Buffer

    Returns any

Static fromAddress

Static fromHex

Static validateAddress

  • validateAddress(address: string, network: Network): boolean

Generated using TypeDoc