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

Function sign

common/test/run-bolt12_proof.c:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static bool sign(const char *messagename,
91 const char *fieldname,
92 const struct sha256 *msg,
93 struct bip340sig *sig,
94 secp256k1_keypair *kp)
95{
96 struct sha256 shash;
97
98 sighash_from_merkle(messagename, fieldname, msg, &shash);
99 return secp256k1_schnorrsig_sign32(secp256k1_ctx, sig->u8,
100 shash.u.u8,
101 kp,
102 NULL) == 1;
103}
104
105int main(int argc, char *argv[])
106{

Callers 3

bolt11_encode_Function · 0.85
payer_proof_signature_Function · 0.85
mainFunction · 0.85

Calls 1

sighash_from_merkleFunction · 0.70

Tested by

no test coverage detected