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

Function towire_keypair

wallet/psbt_fixup.c:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static void towire_keypair(u8 **pptr, const struct keypair *kp)
119{
120 towire_compact_size(pptr,
121 compact_size_len(kp->keytype) + tal_bytelen(kp->key));
122 towire_compact_size(pptr, kp->keytype);
123 towire_u8_array(pptr, kp->key, tal_bytelen(kp->key));
124 towire_compact_size(pptr, tal_bytelen(kp->value));
125 towire_u8_array(pptr, kp->value, tal_bytelen(kp->value));
126}
127
128static bool fixup_sig(struct keypair *kp)
129{

Callers 1

psbt_fixupFunction · 0.85

Calls 4

towire_compact_sizeFunction · 0.85
compact_size_lenFunction · 0.85
tal_bytelenFunction · 0.85
towire_u8_arrayFunction · 0.50

Tested by

no test coverage detected