Methods
Static compressPubkey
- compressPubkey(pubkey: Uint8Array): Uint8Array
Parameters
Returns Uint8Array
Static createSignature
Parameters
messageHash: Uint8Array
privkey: Uint8Array
Static recoverPubkey
Parameters
Returns Uint8Array
Static trimRecoveryByte
- trimRecoveryByte(signature: Uint8Array): Uint8Array
Parameters
Returns Uint8Array
Static uncompressPubkey
- uncompressPubkey(pubkey: Uint8Array): Uint8Array
Parameters
Returns Uint8Array
Static verifySignature
- verifySignature(signature: Secp256k1Signature, messageHash: Uint8Array, pubkey: Uint8Array): Promise<boolean>
Parameters
messageHash: Uint8Array
pubkey: Uint8Array
Returns Promise<boolean>
Takes a compressed or uncompressed pubkey and return a compressed one.
This function is idempotent.