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

Function sig_as_hex

devtools/mkcommit.c:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static char *sig_as_hex(const struct bitcoin_signature *sig)
217{
218 u8 compact_sig[64];
219
220 secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx,
221 compact_sig,
222 &sig->s);
223 return tal_hexstr(NULL, compact_sig, sizeof(compact_sig));
224}
225
226
227static char *sig_notation(const struct sha256_double *hash,

Callers 1

sig_notationFunction · 0.70

Calls 1

tal_hexstrFunction · 0.85

Tested by

no test coverage detected