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

Function bitcoin_wscript_htlc_receive

bitcoin/script.c:847–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847u8 *bitcoin_wscript_htlc_receive(const tal_t *ctx,
848 const struct abs_locktime *htlc_abstimeout,
849 const struct pubkey *localhtlckey,
850 const struct pubkey *remotehtlckey,
851 const struct sha256 *payment_hash,
852 const struct pubkey *revocationkey,
853 bool option_anchor_outputs,
854 bool option_anchors_zero_fee_htlc_tx)
855{
856 struct ripemd160 ripemd;
857
858 ripemd160(&ripemd, payment_hash->u.u8, sizeof(payment_hash->u));
859 return bitcoin_wscript_htlc_receive_ripemd(ctx, htlc_abstimeout,
860 localhtlckey, remotehtlckey,
861 &ripemd, revocationkey,
862 option_anchor_outputs,
863 option_anchors_zero_fee_htlc_tx);
864}
865
866/* BOLT #3:
867 *

Callers 2

report_htlcsFunction · 0.85

Calls 2

ripemd160Class · 0.70

Tested by 1

report_htlcsFunction · 0.68