Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ValPubKey

Index

Functions

  • fromValAddress(valAddress: string, prefix: string): ValPubKey
  • Converts a Terra validator operator address to a validator pubkey.

    Parameters

    • valAddress: string

      account pubkey

    • prefix: string

      expected chain prefix

    Returns ValPubKey

  • getPrefix(address: string): string
  • Get the prefix of a validator public key

    Parameters

    • address: string

      validator public key

    Returns string

  • validate(data: string, prefix?: string): boolean
  • Checks if a string is a Terra validator pubkey

    Parameters

    • data: string

      string to check

    • Optional prefix: string

      expected chain prefix

    Returns boolean