• Convert a secp256k1 compressed public key to an address

    Returns

    the account's address

    Parameters

    • pubkey: string

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

    • Optional prefix: string

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

    Returns string

Generated using TypeDoc