Expand description
Key formats
Structs§
- Generated
Key - Output of a
GeneratableKey
key generation - Private
KeyGenerate Options - Options for generating a [
PrivateKey
] - Single
Priv - A descriptor [
bitcoin::PrivateKey
] with optional origin information. - Single
Pub - A descriptor
SinglePubKey
with optional origin information. - Sorted
Multi Vec - Contents of a “sortedmulti” descriptor
Enums§
- Descriptor
Key - Container for public or secret keys
- Descriptor
Public Key - The descriptor pubkey, either a single pubkey or an xpub.
- Descriptor
Secret Key - The descriptor secret key, either a single private key or an xprv.
- Extended
Key - Enum for extended keys that can be either
xprv
orxpub
- KeyError
- Errors thrown while working with
keys
- Script
Context Enum - Enum representation of the known valid
ScriptContext
s - Single
PubKey - Single public key without any origin or range information.
Traits§
- Derivable
Key - Trait for keys that can be derived.
- ExtScript
Context - Trait that adds extra useful methods to
ScriptContext
s - Generatable
Default Options - Trait that allows generating a key with the default options
- Generatable
Key - Trait for keys that can be generated
- Into
Descriptor Key - Trait for objects that can be turned into a public or secret
DescriptorKey
- Script
Context - The ScriptContext for Miniscript. Additional type information associated with miniscript that is used for carrying out checks that dependent on the context under which the script is used. For example, disallowing uncompressed keys in Segwit context
Functions§
- any_
network - Create a set containing mainnet, testnet, testnet4, signet, and regtest
- mainnet_
network - Create a set only containing mainnet
- merge_
networks - Compute the intersection of two sets
- test_
networks - Create a set containing test networks
Type Aliases§
- KeyMap
- Alias type for a map of public key to secret key
- Valid
Networks - Set of valid networks for a key