Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/aliasUtils"

Index

Functions

Const isNodePubKey

  • isNodePubKey(nodeIdentifier: string): boolean
  • Returns true if a given node identifier could be a node pub key, namely if it is a hex string with the correct length.

    Parameters

    • nodeIdentifier: string

    Returns boolean

Const pubKeyToAlias

  • pubKeyToAlias(pubkey: string): string
  • Gets a two-word alias from a node pubkey. Throws an error if the pubkey is not a valid 66 character hex string.

    Parameters

    • pubkey: string

      a public key in hex format to convert to an alias

    Returns string

Generated using TypeDoc