MCPcopy Create free account
hub / github.com/ElementsProject/lightning / p2wpkh_for_keyidx

Function p2wpkh_for_keyidx

lightningd/peer_control.c:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210u8 *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
220static void sign_last_tx(struct channel *channel,
221 struct bitcoin_tx *last_tx,

Callers 3

wallet_commit_channelFunction · 0.85
new_channelFunction · 0.85
json_closeFunction · 0.85

Calls 2

bip32_pubkeyFunction · 0.85
scriptpubkey_p2wpkhFunction · 0.85

Tested by

no test coverage detected