Docs
This commit is contained in:
@@ -16,8 +16,8 @@ pub(crate) async fn run() -> anyhow::Result<()> {
|
|||||||
let hash_preimage = "blah".to_string();
|
let hash_preimage = "blah".to_string();
|
||||||
let hashlock = utils::sha256(hash_preimage);
|
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 = bitcoin::htlc::Htlc::new(dave.public_key, hashlock, 100, sammy.public_key);
|
||||||
|
|
||||||
let htlc_descriptor = htlc.to_miniscript_descriptor();
|
let htlc_descriptor = htlc.to_miniscript_descriptor();
|
||||||
|
|||||||
Reference in New Issue
Block a user