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

Function bitcoin_wscript_htlc_receive

bitcoin/script.c:765–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765u8 *bitcoin_wscript_htlc_receive(const tal_t *ctx,
766 const struct abs_locktime *htlc_abstimeout,
767 const struct pubkey *localhtlckey,
768 const struct pubkey *remotehtlckey,
769 const struct sha256 *payment_hash,
770 const struct pubkey *revocationkey,
771 bool option_anchor_outputs)
772{
773 struct ripemd160 ripemd;
774
775 ripemd160(&ripemd, payment_hash->u.u8, sizeof(payment_hash->u));
776 return bitcoin_wscript_htlc_receive_ripemd(ctx, htlc_abstimeout,
777 localhtlckey, remotehtlckey,
778 &ripemd, revocationkey,
779 option_anchor_outputs);
780}
781
782/* BOLT #3:
783 *

Callers 2

report_htlcsFunction · 0.85

Calls 2

ripemd160Class · 0.70

Tested by 1

report_htlcsFunction · 0.68