diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-11-23 23:20:25 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-11-23 23:26:01 +0100 |
commit | f4932d94c07d7c0dd9992b6b2d5b562b567d49b0 (patch) | |
tree | 22fb1dee0c28a54957513d8fe09655c26a31b1c8 /internals.h | |
parent | b0042a588a932883a8f03e58ffe930c6eb795d48 (diff) |
remove unnecessary description handling and hashing.
The hash is not needed since the sellers application is required to sign the
description and the bidders application is required to check the signature.
Since the arbitrary description used by the application was only used inside
this hash, it can be removed as well.
Diffstat (limited to 'internals.h')
-rw-r--r-- | internals.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/internals.h b/internals.h index 373c3d4..d6de9db 100644 --- a/internals.h +++ b/internals.h @@ -60,20 +60,10 @@ struct msg_head { /** - * This struct describes an auction and is always linked to a description buffer - * of #description_len bytes of arbitrary data where the description of the item - * to be sold is stored. This buffer should also contain information linking the - * auction to the payment system (which exact prices do the k possibilities - * refer to, payment system seller identity, …). All fields are stored in + * This struct describes the parameters of an auction. All fields are stored in * network byte order. - * - * \todo: align to a multiple of 64bit - * \todo: versionsnummer */ + */ struct BRANDT_DescrP { - /** Hash code over the remaining elements of this struct followed by the - * description buffer of #description_len bytes */ - struct GNUNET_HashCode hash GNUNET_PACKED; - /** Starting time of the auction. Bidders have to join the auction via * BRANDT_join until this time */ struct GNUNET_TIME_AbsoluteNBO time_start; @@ -81,12 +71,6 @@ struct BRANDT_DescrP { /** The maximum duration the participants have to complete each round. */ struct GNUNET_TIME_RelativeNBO time_round; - /** The length of the description in bytes */ - uint32_t description_len GNUNET_PACKED; - - /** reserved for future use. Must be zeroed out. */ - uint32_t reserved1 GNUNET_PACKED; - /** The amount of possible prices */ uint16_t k GNUNET_PACKED; @@ -99,7 +83,7 @@ struct BRANDT_DescrP { uint16_t outcome_public GNUNET_PACKED; /** reserved for future use. Must be zeroed out. */ - uint16_t reserved2 GNUNET_PACKED; + uint16_t reserved GNUNET_PACKED; }; GNUNET_NETWORK_STRUCT_END |