pub fn multipath_from_external(external: &str) -> Result<String>Expand description
Build a BIP-389 multipath descriptor from a single-path external descriptor.
Rewrites every trailing /0/* key derivation to /<0;1>/*. Matching is
anchored so only a /0/* that terminates a key expression (immediately
followed by , or ), and preceded by a non-/ character) is rewritten;
occurrences inside longer paths or origin info are left alone. Descriptors
containing a terminating /1/* (internal) path, or already holding
<1;0> (reverse-order multipath), are rejected rather than silently
coerced: swapping external and change order would produce divergent
receive/change mappings across co-signers.