Commit 4aea92c
committed
Merge rust-bitcoin/rust-miniscript#666: Manually implement is_uncompressed for BitcoinKey
52198dd62da7c4066f6f04fc38aa418480a5e5af Manually implement is_uncompressed for BitcoinKey (Tobin C. Harding)
Pull request description:
The `interpreter::BitcoinKey` uses the default implementation of `MiniscriptKey`, which means `is_uncompressed` returns `false`. However if the full key is a `bitcoin::PublicKey` it may be compressed.
Manually implement `MiniscriptKey::is_uncompressed` for `BitcoinKey` and return the compressedness of the inner full key.
Originally done, and discussed, in #620.
ACKs for top commit:
apoelstra:
ACK 52198dd62da7c4066f6f04fc38aa418480a5e5af
Tree-SHA512: 59f514d24120cfc452e60c361f851280b0515e4b63eb5d2a94d84e39821e6c80f3af07eee5fc5f80bd7198d2e09c6e4465f6f6ef3e8f38dba87ef77a2e1a3b9a1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
0 commit comments