File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1+ # 5.0.0 - Jan 14, 2021
2+
3+ - Remove ` PkCtx ` from the API
4+ - Move descriptors into their own types, with an enum containing all of them
5+ - Move descriptor functionality into a trait
6+ - Remove ` FromStr ` bound from ` MiniscriptKey ` and ` MiniscriptKey::Hash `
7+ - Various ` DescriptorPublicKey ` improvements
8+ - Allow hardened paths in ` DescriptorPublicKey ` , remove direct ` ToPublicKey ` implementation
9+ - Change ` Option ` to ` Result ` in all APIs
10+ - bump ` rust-bitcoin ` to 0.26
11+
112# 4.0.0 - Nov 23, 2020
213
314- Add support for parsing secret keys
Original file line number Diff line number Diff line change 11[package ]
22name = " miniscript"
3- version = " 4 .0.3 "
3+ version = " 5 .0.0 "
44authors = [" Andrew Poelstra <apoelstra@wpsoftware.net>, Sanket Kanjalkar <sanket1729@gmail.com>" ]
55repository = " https://github.com/apoelstra/miniscript"
66description = " Miniscript: a subset of Bitcoin Script designed for analysis"
@@ -16,7 +16,7 @@ use-serde = ["bitcoin/use-serde", "serde"]
1616rand = [" bitcoin/rand" ]
1717
1818[dependencies ]
19- bitcoin = " 0.25 "
19+ bitcoin = " 0.26 "
2020
2121[dependencies .serde ]
2222version = " 1.0"
Original file line number Diff line number Diff line change @@ -360,7 +360,10 @@ impl DescriptorPublicKey {
360360 fingerprint
361361 } else {
362362 let mut engine = XpubIdentifier :: engine ( ) ;
363- single. key . write_into ( & mut engine) ;
363+ single
364+ . key
365+ . write_into ( & mut engine)
366+ . expect ( "engines don't error" ) ;
364367 bip32:: Fingerprint :: from ( & XpubIdentifier :: from_engine ( engine) [ ..] )
365368 }
366369 }
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ impl MiniscriptKey for bitcoin::PublicKey {
165165
166166 fn to_pubkeyhash ( & self ) -> Self :: Hash {
167167 let mut engine = hash160:: Hash :: engine ( ) ;
168- self . write_into ( & mut engine) ;
168+ self . write_into ( & mut engine) . expect ( "engines don't error" ) ;
169169 hash160:: Hash :: from_engine ( engine)
170170 }
171171}
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ pub fn finalize<C: secp256k1::Verification>(
317317 input. partial_sigs . clear ( ) ;
318318 input. sighash_type = None ;
319319 input. redeem_script = None ;
320- input. hd_keypaths . clear ( ) ;
320+ input. bip32_derivation . clear ( ) ;
321321 input. witness_script = None ;
322322 }
323323 // Double check everything with the interpreter
You can’t perform that action at this time.
0 commit comments