Closed
Description
See for example https://github.com/rust-bitcoin/rust-miniscript/blob/master/src/miniscript/satisfy.rs#L937 (not sure if there are any other examples). Here we have a public key, convert it to a hash, then look up the key again from that.
In #481 (the "planning module" PR) I am suggesting that we work with DescriptorPublicKey
s rather than DefinitePublicKey
s, which means that we may be working with keys where we don't know their hash160 and can't do this lookup. So in addition to being unnecessary, this roundtrip through a hash may become wrong.
Metadata
Metadata
Assignees
Labels
No labels