Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Secp256k1

Index

Constructors

Methods

  • compressPubkey(pubkey: Uint8Array): Uint8Array
  • 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>

  • trimRecoveryByte(signature: Uint8Array): Uint8Array
  • uncompressPubkey(pubkey: Uint8Array): Uint8Array
  • Takes a compressed or uncompressed pubkey and returns an uncompressed one.

    This function is idempotent.

    Parameters

    • pubkey: Uint8Array

    Returns Uint8Array

  • verifySignature(signature: Secp256k1Signature, messageHash: Uint8Array, pubkey: Uint8Array): Promise<boolean>

Generated using TypeDoc