This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Facilitator: add
PrioValidityBatch
message with serialization suppo…
…rt (#1216) This is a step towards making validation batch writes atomic (#362). `PrioValidityBatch` is comprised of a `PrioBatchSignature`, a `PrioValidityHeader`, and a sequence of `PrioValidityPackets` (i.e. the three messages comprising a validation batch). The latter two messages are included as serialized bytes to allow signature verification, and then hash integrity checking, to be done over the same bytes that the signature/hash was generated against.
- Loading branch information
Showing
6 changed files
with
535 additions
and
219 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"namespace": "org.abetterinternet.prio.v1", | ||
"type": "record", | ||
"name": "PrioValidityBatch", | ||
"fields": [ | ||
{ | ||
"name": "sig", | ||
"type": "org.abetterinternet.prio.v1.PrioBatchSignature", | ||
"doc": "A signature over the header field." | ||
}, | ||
{ | ||
"name": "header", | ||
"type": "bytes", | ||
"doc": "A serialized PrioValidityHeader for the batch." | ||
}, | ||
{ | ||
"name": "packets", | ||
"type": "bytes", | ||
"doc": "A serialized sequence of PrioValidityPackets making up the batch." | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.