OptionalisSegwit?: booleanIndicates if this key expression belongs to a a SegWit output. When set, further checks are done to ensure the public key (if present in the expression) is compressed (33 bytes).
OptionalisTaproot?: booleanIndicates if this key expression belongs to a Taproot output. For Taproot, the key must be represented as an x-only public key (32 bytes). If a 33-byte compressed pubkey is derived, it is converted to its x-only representation.
Optionalnetwork?: Network
The
DescriptorsFactoryfunction creates and returns theparseKeyExpressionfunction, which is an implementation of this interface.It parses and destructures a key expression string (xpub, xprv, pubkey or wif) into
KeyInfo.For example, given this
keyExpression:[d34db33f/49'/0'/0']tpubDCdxmvzJ5QBjTN8oCjjyT2V58AyZvA1fkmCeZRC75QMoaHcVP2m45Bv3hmnR7ttAwkb2UNYyoXdHVt4gwBqRrJqLUU2JrM43HippxiWpHra/1/2/3/4/*, this is the parsed result:See KeyInfo for the complete list of elements retrieved by this function.