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

Function check_act_one

connectd/handshake.c:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define ACT_ONE_SIZE 50 /* ARM's stupid ABI adds padding. */
44
45static inline void check_act_one(const struct act_one *act1)
46{
47 /* BOLT #8:
48 *
49 * : 1 byte for the handshake version, 33 bytes for the compressed
50 * ephemeral public key of the initiator, and 16 bytes for the
51 * `poly1305` tag.
52 */
53 BUILD_ASSERT(sizeof(act1->v) == 1);
54 BUILD_ASSERT(sizeof(act1->pubkey) == 33);
55 BUILD_ASSERT(sizeof(act1->tag) == 16);
56}
57
58/* BOLT #8:
59 *

Callers 1

act_one_initiatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected