Expand description
§Output Descriptors
Tools for representing Bitcoin output’s scriptPubKeys as abstract spending policies known as “output descriptors”. These include a Miniscript which describes the actual signing policy, as well as the blockchain format (P2SH, Segwit v0, etc.)
The format represents EC public keys abstractly to allow wallets to replace these with BIP32 paths, pay-to-contract instructions, etc.
Modules§
Structs§
- Bare
- Create a Bare Descriptor. That is descriptor that is not wrapped in sh or wsh. This covers the Pk descriptor
- Definite
Descriptor Key - A
DescriptorPublicKey
without any wildcards. - Deriv
Paths - The derivation paths in a multipath key expression.
- Descriptor
KeyParse Error - Descriptor Key parsing errors
- Descriptor
MultiX Key - Instance of one or more extended keys, as specified in BIP 389.
- DescriptorX
Key - An extended key with origin, derivation path, and wildcard.
- LegacyCSFS
Cov - The covenant descriptor
- Legacy
CovSatisfier - A satisfier for Covenant descriptors that can do transaction introspection ’tx denotes the lifetime of the transaction being satisfied and ’ptx denotes the lifetime of the previous transaction inputs
- Pkh
- A bare PkH descriptor at top level
- Sh
- A Legacy p2sh Descriptor
- 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
- Tr
- A taproot descriptor
- Wpkh
- A bare Wpkh descriptor at top level
- Wsh
- A Segwitv0 wsh descriptor
Enums§
- Conversion
Error - Descriptor key conversion error
- CovError
- Covenant related Errors
- Descriptor
- Script descriptor
- Descriptor
Info - Method for determining Type of descriptor when parsing from String
- Descriptor
Public Key - The MiniscriptKey corresponding to Descriptors. This can either be Single public key or a Xpub
- Descriptor
Secret Key - The descriptor secret key, either a single private key or an xprv.
- Descriptor
Type - Descriptor Type of the descriptor
- ShInner
- Sh Inner
- Single
PubKey - Single public key without any origin or range information
- TapLeaf
Script - Script at a tap leaf.
- TapTree
- A Taproot Tree representation.
- Wildcard
- Whether a descriptor has a wildcard in it
- WshInner
- Wsh Inner
Constants§
- ELMTS_
STR - Elements Descriptor String Prefix
Traits§
- CovOperations
- Additional operations required on script builder for Covenant operations support
- InnerX
Key - Trait for “extended key” types like
xpub
andxprv
. Used internally to generalize parsing and handling ofbip32::ExtendedPubKey
andbip32::ExtendedPrivKey
.
Type Aliases§
- KeyMap
- Alias type for a map of public key to secret key