Skip to content

Instantly share code, notes, and snippets.

@sanket1729
Created August 21, 2019 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanket1729/e600a774a2634ffebe047654caa83dd2 to your computer and use it in GitHub Desktop.
Save sanket1729/e600a774a2634ffebe047654caa83dd2 to your computer and use it in GitHub Desktop.
#[test]
fn htlc() {
Descriptor::<bitcoin::PublicKey>::from_str(
"wsh(c:or_i(and_v(v:sha256(0000000000000000000000000000000000000000000000000000000000000000),pk_h(1111111111111111111111111111111111111111)),and_v(v:after(3333333),pk_h(2222222222222222222222222222222222222222))))").expect("htlc should be valid descriptor");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment