• Convert a secp256k1 compressed public key to an address

    Returns

    the account's address

    Parameters

    • pubkey: Uint8Array

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

    • Optional prefix: string

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

    Returns string

Generated using TypeDoc