diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2017-02-14 13:37:22 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2017-02-14 13:37:22 +0100 |
commit | cd15b0367a236810d90d865f988695b4853faba3 (patch) | |
tree | 219ea4154e548346de73f5c6d33ec4e1660b65b7 | |
parent | 0ba069aeaed8fb8e8e888b586cbc03bd7402daf3 (diff) |
fix msg header documentation
-rw-r--r-- | internals.h | 8 |
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 { GNUNET_NETWORK_STRUCT_BEGIN +/** + * Every message is prefixed with this header. + * + * BEWARE: Introducing a 16bit length field will not work. M+1st price auctions + * with private outcome send a n*n*(n-1)*k*128 = n²(n-1)*64 (for a reasonable + * k-choice of 512 possible prices) byte message from the seller to all bidders + * (decrypt-round). For just two bidders this is already 256k bytes, but 16bit + * uint only can address 64k bytes. */ struct msg_head { uint32_t prot_version GNUNET_PACKED; uint32_t msg_type GNUNET_PACKED; |