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

Function check_act_two

connectd/handshake.c:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#define ACT_TWO_SIZE 50 /* ARM's stupid ABI adds padding. */
73
74static inline void check_act_two(const struct act_two *act2)
75{
76 /* BOLT #8:
77 * 1 byte for the handshake version,
78 * 33 bytes for the compressed ephemeral public key of the initiator, and
79 * 16 bytes for the `poly1305` tag.
80 */
81 BUILD_ASSERT(sizeof(act2->v) == 1);
82 BUILD_ASSERT(sizeof(act2->pubkey) == 33);
83 BUILD_ASSERT(sizeof(act2->tag) == 16);
84}
85
86/* BOLT #8:
87 *

Callers 1

act_two_responderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected