| 188 | } |
| 189 | |
| 190 | u8 *scriptpubkey_opreturn_padded(const tal_t *ctx) |
| 191 | { |
| 192 | u8 *script = tal_arr(ctx, u8, 0); |
| 193 | u8 random[20]; |
| 194 | randombytes_buf(random, sizeof(random)); |
| 195 | |
| 196 | add_op(&script, OP_RETURN); |
| 197 | script_push_bytes(&script, random, sizeof(random)); |
| 198 | return script; |
| 199 | } |
| 200 | |
| 201 | /* Create an input script which spends p2pkh */ |
| 202 | u8 *bitcoin_redeem_p2pkh(const tal_t *ctx, const struct pubkey *pubkey, |
no test coverage detected