Skip to content

Commit 48c0ff8

Browse files
authored
Merge pull request #225 from apoelstra/2021--rust-bitcoin-0.26
release 5.0, increase rust-bitcoin dep to 0.26
2 parents 4fee5bf + a59bd5e commit 48c0ff8

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "miniscript"
3-
version = "4.0.3"
3+
version = "5.0.0"
44
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>, Sanket Kanjalkar <sanket1729@gmail.com>"]
55
repository = "https://github.com/apoelstra/miniscript"
66
description = "Miniscript: a subset of Bitcoin Script designed for analysis"
@@ -16,7 +16,7 @@ use-serde = ["bitcoin/use-serde", "serde"]
1616
rand = ["bitcoin/rand"]
1717

1818
[dependencies]
19-
bitcoin = "0.25"
19+
bitcoin = "0.26"
2020

2121
[dependencies.serde]
2222
version = "1.0"

src/descriptor/key.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/psbt/finalizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)