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

Function sig_as_hex

devtools/mkgossip.c:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static char *sig_as_hex(const secp256k1_ecdsa_signature *sig)
66{
67 u8 compact_sig[64];
68
69 secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx,
70 compact_sig,
71 sig);
72 return tal_hexstr(NULL, compact_sig, sizeof(compact_sig));
73}
74
75static char *sig_notation(const struct privkey *privkey,
76 struct sha256_double *hash,

Callers 1

sig_notationFunction · 0.70

Calls 1

tal_hexstrFunction · 0.85

Tested by

no test coverage detected