Create p2sh for this redeem script. */
| 166 | |
| 167 | /* Create p2sh for this redeem script. */ |
| 168 | u8 *scriptpubkey_p2sh(const tal_t *ctx, const u8 *redeemscript) |
| 169 | { |
| 170 | struct ripemd160 redeemhash; |
| 171 | |
| 172 | hash160(&redeemhash, redeemscript, tal_count(redeemscript)); |
| 173 | return scriptpubkey_p2sh_hash(ctx, &redeemhash); |
| 174 | } |
| 175 | |
| 176 | /* Create an output script using p2pkh */ |
| 177 | u8 *scriptpubkey_p2pkh(const tal_t *ctx, const struct bitcoin_address *addr) |
no test coverage detected