You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depend on the `crate-smashing` branch, which introduces the new
`primitives`, `bip32`, and `psbt-v0` crates.
The point of this patch is to try to show we have all the re-exports
correct in `rust-bitcoin` after introducing the new crates.
Apart from the manifest changes this patch changes a single line, BOOM!
Copy file name to clipboardExpand all lines: examples/htlc.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@
5
5
6
6
use std::str::FromStr;
7
7
8
-
use miniscript::bitcoin::Network;
8
+
use miniscript::bitcoin_primitives::Network;
9
9
use miniscript::descriptor::Wsh;
10
10
use miniscript::policy::{Concrete,Liftable};
11
11
12
12
fnmain(){
13
13
// HTLC policy with 10:1 odds for happy (co-operative) case compared to uncooperative case.
14
-
let htlc_policy = Concrete::<bitcoin::PublicKey>::from_str(&format!("or(10@and(sha256({secret_hash}),pk({redeem_identity})),1@and(older({expiry}),pk({refund_identity})))",
14
+
let htlc_policy = Concrete::<bitcoin_primitives::PublicKey>::from_str(&format!("or(10@and(sha256({secret_hash}),pk({redeem_identity})),1@and(older({expiry}),pk({refund_identity})))",
let s = "wsh(t:or_c(pk(027a3565454fe1b749bccaef22aff72843a9c3efefd7b16ac54537a0c23f0ec0de),v:thresh(1,pkh(032d672a1a91cc39d154d366cd231983661b0785c7f27bc338447565844f4a6813),a:pkh(03417129311ed34c242c012cd0a3e0b9bca0065f742d0dfb63c78083ea6a02d4d9),a:pkh(025a687659658baeabdfc415164528065be7bcaade19342241941e556557f01e28))))#7hut9ukn";
22
22
let bridge_descriptor = Descriptor::from_str(s).unwrap();
0 commit comments