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

Function check_act_three

connectd/handshake.c:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102#define ACT_THREE_SIZE 66 /* ARM's stupid ABI adds padding. */
103
104static inline void check_act_three(const struct act_three *act3)
105{
106 /* BOLT #8:
107 *
108 * 1 byte for the handshake version, 33 bytes for the
109 * compressed ephemeral public key of the initiator, and 16
110 * bytes for the `poly1305` tag.
111 */
112 BUILD_ASSERT(sizeof(act3->v) == 1);
113 BUILD_ASSERT(sizeof(act3->ciphertext) == 33 + 16);
114 BUILD_ASSERT(sizeof(act3->tag) == 16);
115}
116
117/* BOLT #8:
118 *

Callers 1

act_three_responder2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected