This commit is contained in:
Dave Hrycyszyn
2024-07-29 11:10:50 +01:00
parent f607bf25d3
commit cac76373ec

View File

@@ -16,8 +16,8 @@ pub(crate) async fn run() -> anyhow::Result<()> {
let hash_preimage = "blah".to_string();
let hashlock = utils::sha256(hash_preimage);
// Feed it a redeem identity, a hashlock from the preimage, a refund timelock, and a refund identity
//
// Create an HTLC descriptor with a redeem identity, a hashlock from the preimage,
// a refund timelock, and a refund identity
let htlc = bitcoin::htlc::Htlc::new(dave.public_key, hashlock, 100, sammy.public_key);
let htlc_descriptor = htlc.to_miniscript_descriptor();