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

Function sig_as_hex

devtools/mkclose.c:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static char *sig_as_hex(const struct bitcoin_signature *sig)
39{
40 u8 compact_sig[64];
41
42 secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx,
43 compact_sig,
44 &sig->s);
45 return tal_hexstr(NULL, compact_sig, sizeof(compact_sig));
46}
47
48int main(int argc, char *argv[])
49{

Callers 1

mainFunction · 0.70

Calls 1

tal_hexstrFunction · 0.85

Tested by

no test coverage detected