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

Function bitcoin_wscript_htlc_offer

bitcoin/script.c:651–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651u8 *bitcoin_wscript_htlc_offer(const tal_t *ctx,
652 const struct pubkey *localhtlckey,
653 const struct pubkey *remotehtlckey,
654 const struct sha256 *payment_hash,
655 const struct pubkey *revocationkey,
656 bool option_anchor_outputs)
657{
658 struct ripemd160 ripemd;
659
660 ripemd160(&ripemd, payment_hash->u.u8, sizeof(payment_hash->u));
661 return bitcoin_wscript_htlc_offer_ripemd160(ctx, localhtlckey,
662 remotehtlckey,
663 &ripemd, revocationkey,
664 option_anchor_outputs);
665}
666
667/* BOLT #3:
668 *

Callers 2

report_htlcsFunction · 0.85

Calls 2

ripemd160Class · 0.70

Tested by 1

report_htlcsFunction · 0.68