aboutsummaryrefslogtreecommitdiff
path: root/src/secretsharing/secretsharing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/secretsharing/secretsharing.h')
-rw-r--r--src/secretsharing/secretsharing.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/secretsharing/secretsharing.h b/src/secretsharing/secretsharing.h
index d3f054919..98b7b9a94 100644
--- a/src/secretsharing/secretsharing.h
+++ b/src/secretsharing/secretsharing.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Florian Dold 22 * @author Florian Dold
@@ -35,8 +35,7 @@
35 35
36GNUNET_NETWORK_STRUCT_BEGIN 36GNUNET_NETWORK_STRUCT_BEGIN
37 37
38struct GNUNET_SECRETSHARING_FieldElement 38struct GNUNET_SECRETSHARING_FieldElement {
39{
40 /** 39 /**
41 * Value of an element in &lt;elgamal_g&gt;. 40 * Value of an element in &lt;elgamal_g&gt;.
42 */ 41 */
@@ -44,8 +43,7 @@ struct GNUNET_SECRETSHARING_FieldElement
44}; 43};
45 44
46 45
47struct GNUNET_SECRETSHARING_CreateMessage 46struct GNUNET_SECRETSHARING_CreateMessage {
48{
49 /** 47 /**
50 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_GENERATE 48 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_GENERATE
51 */ 49 */
@@ -82,8 +80,7 @@ struct GNUNET_SECRETSHARING_CreateMessage
82 80
83 81
84 82
85struct GNUNET_SECRETSHARING_ShareHeaderNBO 83struct GNUNET_SECRETSHARING_ShareHeaderNBO {
86{
87 /** 84 /**
88 * Threshold for the key this share belongs to. 85 * Threshold for the key this share belongs to.
89 */ 86 */
@@ -116,20 +113,17 @@ struct GNUNET_SECRETSHARING_ShareHeaderNBO
116 * Notify the client that then threshold secret has been 113 * Notify the client that then threshold secret has been
117 * established. 114 * established.
118 */ 115 */
119struct GNUNET_SECRETSHARING_SecretReadyMessage 116struct GNUNET_SECRETSHARING_SecretReadyMessage {
120{
121 /** 117 /**
122 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_SECRET_READY 118 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_SECRET_READY
123 */ 119 */
124 struct GNUNET_MessageHeader header; 120 struct GNUNET_MessageHeader header;
125 121
126 /* rest: the serialized share */ 122 /* rest: the serialized share */
127
128}; 123};
129 124
130 125
131struct GNUNET_SECRETSHARING_DecryptRequestMessage 126struct GNUNET_SECRETSHARING_DecryptRequestMessage {
132{
133 /** 127 /**
134 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_REQUEST 128 * Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_REQUEST
135 */ 129 */
@@ -154,8 +148,7 @@ struct GNUNET_SECRETSHARING_DecryptRequestMessage
154}; 148};
155 149
156 150
157struct GNUNET_SECRETSHARING_DecryptResponseMessage 151struct GNUNET_SECRETSHARING_DecryptResponseMessage {
158{
159 /** 152 /**
160 * Type: #GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_DONE 153 * Type: #GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_DONE
161 */ 154 */
@@ -180,8 +173,7 @@ GNUNET_NETWORK_STRUCT_END
180/** 173/**
181 * A share, with all values in in host byte order. 174 * A share, with all values in in host byte order.
182 */ 175 */
183struct GNUNET_SECRETSHARING_Share 176struct GNUNET_SECRETSHARING_Share {
184{
185 /** 177 /**
186 * Threshold for the key this share belongs to. 178 * Threshold for the key this share belongs to.
187 */ 179 */