Structs§
- Merkle
Tree - A Merkle tree is a binary tree, with values of type
T
at the leafs, and where every internal node holds the hash of the concatenation of the hashes of its children nodes. - Message
- A (hashed) message input to an ECDSA signature.
- Public
Key - Public key - used to verify ECDSA signatures and to do Taproot tweaks.
- Secret
Key - Secret key - a 256-bit key used to create ECDSA and Taproot signatures.
Constants§
Statics§
- SECP256
K1 - A global static context to avoid repeatedly creating contexts.
Functions§
- generate_
keypair_ from_ private_ key - Create and return a keypair with the given hex u8 array as the private key
- generate_
keys - generate_
random_ bytes - hash
- is_
valid_ public_ key - sign
- sign_
blob - verify
- verify_
signature