Module key
Expand description
Bitcoin keys.
This module provides keys used in Bitcoin that can be roundtrip (de)serialized.
Structs§
- KeyPair
- Opaque data structure that holds a keypair consisting of a secret and a public key.
- Private
Key - A Bitcoin ECDSA private key
- Public
Key - A Bitcoin ECDSA public key
- Secp256k1
- The secp256k1 engine, used to execute all signature operations.
- SortKey
- An opaque return type for PublicKey::to_sort_key
- Tweaked
KeyPair - Tweaked BIP-340 key pair
- Tweaked
Public Key - Tweaked BIP-340 X-coord-only public key
- XOnly
Public Key - An x-only public key, used for verification of schnorr signatures and serialized according to BIP-340.
Enums§
Traits§
- TapTweak
- A trait for tweaking BIP340 key types (x-only public keys and key pairs).
- Verification
- Marker trait for indicating that an instance of
Secp256k1
can be used for verification.
Type Aliases§
- Untweaked
KeyPair - Untweaked BIP-340 key pair
- Untweaked
Public Key - Untweaked BIP-340 X-coord-only public key