Expand description
Bitcoin keys.
This module provides keys used in Bitcoin that can be roundtrip (de)serialized.
Re-exports§
pub use secp256k1::rand;
rand-std
Modules§
- Constants related to the API and the underlying curve.
Structs§
- An always-compressed Bitcoin ECDSA public key
- Invalid address version in decoded base58 data.
- Decoded base58 data was an invalid length.
- Opaque data structure that holds a keypair consisting of a secret and a public key.
- A Bitcoin ECDSA private key
- A hash of a public key.
- A Bitcoin ECDSA public key
- The secp256k1 engine, used to execute all signature operations.
- An opaque return type for PublicKey::to_sort_key
- Tweaked BIP-340 key pair
- Tweaked BIP-340 X-coord-only public key
- Segwit public keys must always be compressed.
- SegWit version of a public key hash.
- An x-only public key, used for verification of Taproot signatures and serialized according to BIP-340.
Enums§
- Error returned while generating key from slice.
- Error generated from WIF key format.
- Represents the parity passed between FFI function calls.
- Error returned when parsing a
CompressedPublicKey
from a string. - Error returned while constructing public key from string.
Traits§
- A trait for tweaking BIP340 key types (x-only public keys and key pairs).
- Marker trait for indicating that an instance of
Secp256k1
can be used for verification.
Type Aliases§
- Untweaked BIP-340 key pair
- Untweaked BIP-340 X-coord-only public key