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

Function scriptpubkey_raw_p2tr_derkey

bitcoin/script.c:337–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337u8 *scriptpubkey_raw_p2tr_derkey(const tal_t *ctx, const u8 output_der[33])
338{
339 struct pubkey tr_key;
340 if (!pubkey_from_der(output_der, 33, &tr_key)) {
341 abort();
342 }
343 return scriptpubkey_raw_p2tr(ctx, &tr_key);
344}
345
346u8 *scriptpubkey_p2tr(const tal_t *ctx, const struct pubkey *inner_pubkey)
347{

Callers

nothing calls this directly

Calls 3

pubkey_from_derFunction · 0.85
abortFunction · 0.85
scriptpubkey_raw_p2trFunction · 0.85

Tested by

no test coverage detected