| 728 | } |
| 729 | |
| 730 | u8 *bitcoin_wscript_htlc_offer(const tal_t *ctx, |
| 731 | const struct pubkey *localhtlckey, |
| 732 | const struct pubkey *remotehtlckey, |
| 733 | const struct sha256 *payment_hash, |
| 734 | const struct pubkey *revocationkey, |
| 735 | bool option_anchor_outputs, |
| 736 | bool option_anchors_zero_fee_htlc_tx) |
| 737 | { |
| 738 | struct ripemd160 ripemd; |
| 739 | |
| 740 | ripemd160(&ripemd, payment_hash->u.u8, sizeof(payment_hash->u)); |
| 741 | return bitcoin_wscript_htlc_offer_ripemd160(ctx, localhtlckey, |
| 742 | remotehtlckey, |
| 743 | &ripemd, revocationkey, |
| 744 | option_anchor_outputs, |
| 745 | option_anchors_zero_fee_htlc_tx); |
| 746 | } |
| 747 | |
| 748 | /* BOLT #3: |
| 749 | * |