Crate ic_secp256k1

Crate ic_secp256k1 

Source
Expand description

A crate with handling of ECDSA and Schnorr keys over the secp256k1 curve

Structs§

CanisterId
Generic ID on Internet Computer.
DerivationIndex
A component of a derivation path
DerivationPath
Derivation Path
PrivateKey
A secp256k1 public key, suitable for generating ECDSA and BIP340 signatures
PublicKey
A secp256k1 public key, suitable for verifying ECDSA or BIP340 signatures
RecoveryId
Given an ECDSA signature (r,s) and a signed digest, there can be several public keys that could verify this signature. This is problematic for certain applications (Bitcoin, Ethereum) where the public key is not transmitted but computed from the signature. The RecoveryId determines uniquely which one of those public keys (and corresponding secret key) was used and is usually transmitted together with the signature.

Enums§

InvalidTaprootHash
An error indicating that the Taproot hash was not acceptable
KeyDecodingError
An error indicating that decoding a key failed
MasterPublicKeyId
An identifier for the mainnet production key
PocketIcMasterPublicKeyId
An identifier for the mainnet production key
RecoveryError
An error indicating that recovering the recovery of the signature y parity bit failed.