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
+
1
12
# 4.0.0 - Nov 23, 2020
2
13
3
14
- Add support for parsing secret keys
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " miniscript"
3
- version = " 4 .0.3 "
3
+ version = " 5 .0.0 "
4
4
authors = [" Andrew Poelstra <apoelstra@wpsoftware.net>, Sanket Kanjalkar <sanket1729@gmail.com>" ]
5
5
repository = " https://github.com/apoelstra/miniscript"
6
6
description = " Miniscript: a subset of Bitcoin Script designed for analysis"
@@ -16,7 +16,7 @@ use-serde = ["bitcoin/use-serde", "serde"]
16
16
rand = [" bitcoin/rand" ]
17
17
18
18
[dependencies ]
19
- bitcoin = " 0.25 "
19
+ bitcoin = " 0.26 "
20
20
21
21
[dependencies .serde ]
22
22
version = " 1.0"
Original file line number Diff line number Diff line change @@ -360,7 +360,10 @@ impl DescriptorPublicKey {
360
360
fingerprint
361
361
} else {
362
362
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" ) ;
364
367
bip32:: Fingerprint :: from ( & XpubIdentifier :: from_engine ( engine) [ ..] )
365
368
}
366
369
}
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ impl MiniscriptKey for bitcoin::PublicKey {
165
165
166
166
fn to_pubkeyhash ( & self ) -> Self :: Hash {
167
167
let mut engine = hash160:: Hash :: engine ( ) ;
168
- self . write_into ( & mut engine) ;
168
+ self . write_into ( & mut engine) . expect ( "engines don't error" ) ;
169
169
hash160:: Hash :: from_engine ( engine)
170
170
}
171
171
}
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ pub fn finalize<C: secp256k1::Verification>(
317
317
input. partial_sigs . clear ( ) ;
318
318
input. sighash_type = None ;
319
319
input. redeem_script = None ;
320
- input. hd_keypaths . clear ( ) ;
320
+ input. bip32_derivation . clear ( ) ;
321
321
input. witness_script = None ;
322
322
}
323
323
// Double check everything with the interpreter
You can’t perform that action at this time.
0 commit comments