-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1936 from dedis/work-be2-ons-dataExchange-message…
…-definition Data exchange protocol message definition
- Loading branch information
Showing
6 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
protocol/examples/messageData/federation_tokens_exchange/federation_tokens_exchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"object": "federation", | ||
"action": "tokens_exchange", | ||
"lao_id": "fzJSZjKf-2cbXH7kds9H8NORuuFIRLkevJlN7qQemjo=", | ||
"roll_call_id": "fEvAfdtNrykd9NPYl9ReHLX-6IP6SFLKTZJLeGUHZ_U=" , | ||
"tokens": ["M5ZychEi5rwm22FjwjNuljL1qMJWD2sE7oX9fcHNMDU="], | ||
"timestamp": 1712854874 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
protocol/query/method/message/data/dataFederationTokensExchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/dedis/popstellar/master/protocol/query/method/message/data/dataFederationTokensExchange.json", | ||
"description": "Sent by an organizer client to its server, to broadcast the Pop tokens", | ||
"type": "object", | ||
"properties": { | ||
"object": { | ||
"const": "federation" | ||
}, | ||
"action": { | ||
"const": "tokens_exchange" | ||
}, | ||
"lao_id": { | ||
"type": "string", | ||
"contentEncoding": "base64", | ||
"$comment": "Hash : HashLen(organizer, creation, name)" | ||
}, | ||
"roll_call_id": { | ||
"type": "string", | ||
"contentEncoding": "base64", | ||
"$comment": "last roll call id" | ||
}, | ||
"tokens": { | ||
"description": "[Array[Base64String]] list of Pop tokens", | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string", | ||
"contentEncoding": "base64" | ||
}, | ||
"$comment": "List must be sorted according to byte encoding: -,0...9,A...Z,_,a...z" | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "[Timestamp] of the tokens' exchange", | ||
"minimum": 0 | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"object", | ||
"action", | ||
"lao_id", | ||
"roll_call_id", | ||
"tokens", | ||
"timestamp" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters