aboutsummaryrefslogtreecommitdiff
path: root/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'internals.h')
-rw-r--r--internals.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/internals.h b/internals.h
index 8e97e8a..f6b747d 100644
--- a/internals.h
+++ b/internals.h
@@ -53,6 +53,14 @@ enum outcome_type {
53 53
54GNUNET_NETWORK_STRUCT_BEGIN 54GNUNET_NETWORK_STRUCT_BEGIN
55 55
56/**
57 * Every message is prefixed with this header.
58 *
59 * BEWARE: Introducing a 16bit length field will not work. M+1st price auctions
60 * with private outcome send a n*n*(n-1)*k*128 = n²(n-1)*64 (for a reasonable
61 * k-choice of 512 possible prices) byte message from the seller to all bidders
62 * (decrypt-round). For just two bidders this is already 256k bytes, but 16bit
63 * uint only can address 64k bytes. */
56struct msg_head { 64struct msg_head {
57 uint32_t prot_version GNUNET_PACKED; 65 uint32_t prot_version GNUNET_PACKED;
58 uint32_t msg_type GNUNET_PACKED; 66 uint32_t msg_type GNUNET_PACKED;