Expand description
v0.32 AST → miniscript::Descriptor<DescriptorPublicKey> converter.
Replaces the v0.14-era hand-rolled 5-shape allow-list with a generic
converter that builds a miniscript Descriptor from any
BIP-388-parseable md1 wire AST. Address derivation
(crate::Descriptor::derive_address) delegates to this module then
to miniscript::Descriptor::address.
Feature-gated behind derive (default-on).
Functions§
- has_
hardened_ use_ site - Returns
trueif ANY use-site path ondrequires a hardened public derivation step — the descriptor-level baseline (d.use_site_path) OR any per-@Nentry ind.tlv.use_site_path_overrides. “Hardened anywhere” means a hardened wildcard (/*h) OR any hardenedAlternativeinside a multipath group. - to_
miniscript_ descriptor - Convert an md1
DescriptorAST to aminiscript::Descriptor<DescriptorPublicKey>forchain(the multipath alt selector). The trailing wildcard/*remains forminiscript::Descriptor::at_derivation_indexto resolve. - to_
miniscript_ descriptor_ multipath - Convert an md1
DescriptorAST to a multipathminiscript::Descriptor<DescriptorPublicKey>— one key per@Ncarrying its FULL resolved use-site multipath group (<…;…>), not the single-chain collapse ofto_miniscript_descriptor.