Hierarchy

  • Secp256k1

Constructors

Methods

  • Takes a compressed or uncompressed pubkey and return a compressed one.

    This function is idempotent.

    Parameters

    • pubkey: Uint8Array

    Returns Uint8Array

  • Takes a 32 byte private key and returns a privkey/pubkey pair.

    The resulting pubkey is uncompressed. For the use in Cosmos it should be compressed first using Secp256k1.compressPubkey.

    Parameters

    • privkey: Uint8Array

    Returns Promise<Secp256k1Keypair>

  • Parameters

    • signature: Uint8Array

    Returns Uint8Array

  • Takes a compressed or uncompressed pubkey and returns an uncompressed one.

    This function is idempotent.

    Parameters

    • pubkey: Uint8Array

    Returns Uint8Array

Generated using TypeDoc