• Convert a secp256k1 compressed public key to an address

    Parameters

    • pubkey: Uint8Array

      The account's pubkey, should be 33 bytes (compressed secp256k1)

    • Optional prefix: string = "secret"

      The address' bech32 prefix. Defaults to "secret".

    Returns string

    the account's address

Generated using TypeDoc