MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bitcoin_wscript_htlc_offer

Function bitcoin_wscript_htlc_offer

bitcoin/script.c:730–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730u8 *bitcoin_wscript_htlc_offer(const tal_t *ctx,
731 const struct pubkey *localhtlckey,
732 const struct pubkey *remotehtlckey,
733 const struct sha256 *payment_hash,
734 const struct pubkey *revocationkey,
735 bool option_anchor_outputs,
736 bool option_anchors_zero_fee_htlc_tx)
737{
738 struct ripemd160 ripemd;
739
740 ripemd160(&ripemd, payment_hash->u.u8, sizeof(payment_hash->u));
741 return bitcoin_wscript_htlc_offer_ripemd160(ctx, localhtlckey,
742 remotehtlckey,
743 &ripemd, revocationkey,
744 option_anchor_outputs,
745 option_anchors_zero_fee_htlc_tx);
746}
747
748/* BOLT #3:
749 *

Callers 2

report_htlcsFunction · 0.85

Calls 2

ripemd160Class · 0.70

Tested by 1

report_htlcsFunction · 0.68