Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace AccPubKey

Index

Functions

  • fromAccAddress(address: string, prefix: string): AccPubKey
  • Converts a validator pubkey to an account pubkey.

    Parameters

    • address: string

      validator pubkey to convert

    • prefix: string

      expected chain prefix

    Returns AccPubKey

  • getPrefix(address: string): string
  • Get the prefix of an account public key

    Parameters

    • address: string

      accont address

    Returns string

  • validate(data: string, prefix?: string): boolean
  • Checks if a string is a valid account's public key

    Parameters

    • data: string

      string to check

    • Optional prefix: string

      expected chain prefix

    Returns boolean