Expand description
Descriptors
This module contains generic utilities to work with descriptors, plus some re-exported types
from [miniscript
].
Re-exports§
pub use self::checksum::calc_checksum;
pub use self::error::Error as DescriptorError;
pub use self::policy::Policy;
Modules§
- checksum
- Descriptor checksum
- error
- Descriptor errors
- policy
- Descriptor policy
- template
- Descriptor templates
Structs§
- Miniscript
- The top-level miniscript abstract syntax tree (AST).
Enums§
- Descriptor
- Script descriptor
- Descriptor
Public Key - The descriptor pubkey, either a single pubkey or an xpub.
- Legacy
- Legacy ScriptContext
To be used as P2SH scripts
For creation of Bare scriptpubkeys, construct the Miniscript
under
Bare
ScriptContext - Segwitv0
- Segwitv0 ScriptContext
Traits§
- Extract
Policy - Trait implemented on
Descriptor
s to add a method to extract the spendingpolicy
- Into
Wallet Descriptor - Trait for types which can be converted into an
ExtendedDescriptor
and aKeyMap
usable by a wallet in a specific [Network
] - 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
Type Aliases§
- Derived
Descriptor - Alias for a
Descriptor
that contains extended derived keys - Extended
Descriptor - Alias for a
Descriptor
that can contain extended keys usingDescriptorPublicKey
- HdKey
Paths - Alias for the type of maps that represent derivation paths in a
psbt::Input
orpsbt::Output
- TapKey
Origins - Alias for the type of maps that represent taproot key origins in a
psbt::Input
orpsbt::Output