Create p2sh for this redeem script. */
| 177 | |
| 178 | /* Create p2sh for this redeem script. */ |
| 179 | u8 *scriptpubkey_p2sh(const tal_t *ctx, const u8 *redeemscript) |
| 180 | { |
| 181 | struct ripemd160 redeemhash; |
| 182 | |
| 183 | hash160(&redeemhash, redeemscript, tal_count(redeemscript)); |
| 184 | return scriptpubkey_p2sh_hash(ctx, &redeemhash); |
| 185 | } |
| 186 | |
| 187 | /* Create an output script using p2pkh */ |
| 188 | u8 *scriptpubkey_p2pkh(const tal_t *ctx, const struct bitcoin_address *addr) |
no test coverage detected