| 763 | } |
| 764 | |
| 765 | u8 *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 | * |