| 208 | } |
| 209 | |
| 210 | u8 *p2wpkh_for_keyidx(const tal_t *ctx, struct lightningd *ld, u64 keyidx) |
| 211 | { |
| 212 | struct pubkey shutdownkey; |
| 213 | |
| 214 | if (!bip32_pubkey(ld->wallet->bip32_base, &shutdownkey, keyidx)) |
| 215 | return NULL; |
| 216 | |
| 217 | return scriptpubkey_p2wpkh(ctx, &shutdownkey); |
| 218 | } |
| 219 | |
| 220 | static void sign_last_tx(struct channel *channel, |
| 221 | struct bitcoin_tx *last_tx, |
no test coverage detected