Currently, calling Expand
on a Descriptor
object will populate the output FlatSigningProvider with all public keys involved in the descriptor. This is overkill, as pubkey entries are only needed when the lookup of a public key based on its hash is desired (which is the case for pkh
, wpkh
, and combo
descriptors).
Fix this by pushing the population of pubkey entries down into the individual descriptor implementation’s MakeScript
function, instead of doing it generically.
This should make it easier to implement #14491 without importing P2PKH outputs for the individual public keys listed inside a multisig.