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

Function scriptpubkey_p2tr_derkey

bitcoin/script.c:366–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366u8 *scriptpubkey_p2tr_derkey(const tal_t *ctx, const u8 inner_der[33])
367{
368 struct pubkey tr_key;
369 if (!pubkey_from_der(inner_der, 33, &tr_key)) {
370 abort();
371 }
372 return scriptpubkey_p2tr(ctx, &tr_key);
373}
374
375/* BOLT #3:
376 *

Callers

nothing calls this directly

Calls 3

pubkey_from_derFunction · 0.85
abortFunction · 0.85
scriptpubkey_p2trFunction · 0.85

Tested by

no test coverage detected