Options
All
  • Public
  • Public/Protected
  • All
Menu

Module key/Key

Index

Functions

addressFromPublicKey

  • addressFromPublicKey(publicKey: Buffer): Buffer
  • Gets a raw address from a compressed bytes public key.

    Parameters

    • publicKey: Buffer

      raw public key

    Returns Buffer

pubKeyFromPublicKey

  • pubKeyFromPublicKey(publicKey: Buffer): Buffer
  • Gets a bech32-words pubkey from a compressed bytes public key.

    Parameters

    • publicKey: Buffer

      raw public key

    Returns Buffer