Expand description

Descriptor templates

This module contains the definition of various common script templates that are ready to be used. See the documentation of each template for an example.

Structs

BIP44 template. Expands to pkh(key/44'/{0,1}'/0'/{0,1}/*)
BIP44 public template. Expands to pkh(key/{0,1}/*)
BIP49 template. Expands to sh(wpkh(key/49'/{0,1}'/0'/{0,1}/*))
BIP49 public template. Expands to sh(wpkh(key/{0,1}/*))
BIP84 template. Expands to wpkh(key/84'/{0,1}'/0'/{0,1}/*)
BIP84 public template. Expands to wpkh(key/{0,1}/*)
BIP86 template. Expands to tr(key/86'/{0,1}'/0'/{0,1}/*)
BIP86 public template. Expands to tr(key/{0,1}/*)
P2PKH template. Expands to a descriptor pkh(key)
P2TR template. Expands to a descriptor tr(key)
P2WPKH template. Expands to a descriptor wpkh(key)
P2WPKH-P2SH template. Expands to a descriptor sh(wpkh(key))

Traits

Trait for descriptor templates that can be built into a full descriptor

Type Definitions

Type alias for the return type of DescriptorTemplate, descriptor! and others