| 845 | } |
| 846 | |
| 847 | u8 *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 | * |