| 291 | } |
| 292 | |
| 293 | u8 *scriptpubkey_p2wpkh_derkey(const tal_t *ctx, const u8 der[33]) |
| 294 | { |
| 295 | u8 *script = tal_arr(ctx, u8, 0); |
| 296 | struct ripemd160 h; |
| 297 | |
| 298 | add_op(&script, OP_0); |
| 299 | hash160(&h, der, PUBKEY_CMPR_LEN); |
| 300 | script_push_bytes(&script, &h, sizeof(h)); |
| 301 | return script; |
| 302 | } |
| 303 | |
| 304 | u8 *scriptpubkey_witness_raw(const tal_t *ctx, u8 version, |
| 305 | const u8 *wprog, size_t wprog_size) |
no test coverage detected