Module elements_miniscript::descriptor
source · 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
- Descriptor checksum
- Pegin Descriptor Support
Structs
- Create a Bare Descriptor. That is descriptor that is not wrapped in sh or wsh. This covers the Pk descriptor
- Create a Bare Descriptor. That is descriptor that is not wrapped in sh or wsh. This covers the Pk descriptor
- A
DescriptorPublicKeywithout any wildcards. - The derivation paths in a multipath key expression.
- Descriptor Key parsing errors
- Instance of one or more extended keys, as specified in BIP 389.
- An extended key with origin, derivation path, and wildcard.
- The covenant descriptor
- 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
- A bare PkH descriptor at top level
- A Legacy p2sh Descriptor
- A descriptor
bitcoin::PrivateKeywith optional origin information. - A descriptor
SinglePubKeywith optional origin information. - Contents of a “sortedmulti” descriptor
- A taproot descriptor
- A bare Wpkh descriptor at top level
- A Segwitv0 wsh descriptor
Enums
- Descriptor key conversion error
- Covenant related Errors
- Script descriptor
- Method for determining Type of descriptor when parsing from String
- The MiniscriptKey corresponding to Descriptors. This can either be Single public key or a Xpub
- The descriptor secret key, either a single private key or an xprv.
- Descriptor Type of the descriptor
- Sh Inner
- Single public key without any origin or range information
- A Taproot Tree representation.
- Whether a descriptor has a wildcard in it
- Wsh Inner
Constants
- Elements Descriptor String Prefix
Traits
- Additional operations required on script builder for Covenant operations support
- Trait for “extended key” types like
xpubandxprv. Used internally to generalize parsing and handling ofbip32::ExtendedPubKeyandbip32::ExtendedPrivKey.
Type Definitions
- Alias type for a map of public key to secret key