| 649 | } |
| 650 | |
| 651 | u8 *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 | * |