Commit Graph

70 Commits

Author SHA1 Message Date
Alfredo Garcia 00190de7c6 add missing checks
Co-authored-by: teor <teor@riseup.net>
2021-06-15 17:10:38 -04:00
Alfredo Garcia c0688b0fe4 Convert `share_commitment` to a BTreeMap
Co-authored-by: teor <teor@riseup.net>
2021-06-15 17:10:38 -04:00
Alfredo Garcia 7d357496fb use BTreeMap, update sizes, etc
Co-authored-by: teor <teor@riseup.net>
2021-06-15 17:10:38 -04:00
Alfredo Garcia 9d5e9fd547 change type to `SignatureResponse` 2021-06-15 17:10:38 -04:00
Alfredo Garcia b05edb8689 use FrostSignature instead of Scalar primitive 2021-06-15 17:10:38 -04:00
Alfredo Garcia a536404e59 update a field description 2021-06-15 17:10:38 -04:00
Alfredo Garcia 41a0bf5dad change some primitives to frost types 2021-06-15 17:10:38 -04:00
Alfredo Garcia d1c05626f3 change ParticipantId to u64 2021-06-15 17:10:38 -04:00
Alfredo Garcia 4bf0d5c58e text updates
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
2021-06-15 17:10:38 -04:00
Alfredo Garcia 08bda8503f put variable-length fields last in messages
Co-authored-by: teor <teor@riseup.net>
2021-06-15 17:10:38 -04:00
Alfredo Garcia 293801858d change group_public 2021-06-15 17:10:38 -04:00
Alfredo Garcia 46417a3dab forbid multi-bytes in serialization
Co-authored-by: teor <teor@riseup.net>
2021-06-15 17:10:38 -04:00
Alfredo Garcia 3e832df5f1 change some validation rules 2021-06-15 17:10:38 -04:00
Alfredo Garcia 3f3a04f958 remove `msg_type` validation rule 2021-06-15 17:10:38 -04:00
teor a57c12059e Make state-based validation out of scope 2021-06-15 17:10:38 -04:00
Alfredo Garcia 837af8d846 replace ParticipantID with ParticipantId everywhere remaining 2021-06-15 17:10:38 -04:00
Alfredo Garcia 63007330af fix definitions after changes to ParticipantID 2021-06-15 17:10:38 -04:00
Alfredo Garcia 6c3e8b3341 remove some spaces after newlines 2021-06-15 17:10:38 -04:00
Alfredo Garcia dc5f2da1d1 split doc comment in lines 2021-06-15 17:10:38 -04:00
Alfredo Garcia d3dc3b3438 fix missing msg names 2021-06-15 17:10:38 -04:00
teor 9529a8ee3e Clarify participant ID changes 2021-06-15 17:10:38 -04:00
teor df0ec420d4 Reserve specific participant IDs for the dealer and aggregator
Also explicitly identify the sender and receiver for each message.
2021-06-15 17:10:38 -04:00
teor 4f2b53d838 Add a constant for this serialization version 2021-06-15 17:10:38 -04:00
teor 0e77df1e40 Fix a missed type 2021-06-15 17:10:38 -04:00
teor 78a5cbade1 Remove the separate MsgCommitments type 2021-06-15 17:10:38 -04:00
teor 8bb106a53d Name, Doc and Serialization Tweaks, and a Test Plan 2021-06-15 17:10:38 -04:00
teor b0c5512a71 Fix a typo 2021-06-15 17:10:38 -04:00
Alfredo Garcia d9aa3bac88 add definitions 2021-06-15 17:10:38 -04:00
Alfredo Garcia 9ba0fe78c1 use some escape characters 2021-06-15 17:10:38 -04:00
Alfredo Garcia 4cc7365331 fix missing field name and type in MsgCommitments serialization 2021-06-15 17:10:38 -04:00
Alfredo Garcia 119e9013e0 split rules in header and payload sub sections 2021-06-15 17:10:38 -04:00
Alfredo Garcia 014dd22f86 add a new validation rules section 2021-06-15 17:10:38 -04:00
Alfredo Garcia 798d0ef7ea update serialization 2021-06-15 17:10:38 -04:00
Alfredo Garcia fc340edc28 add line to AffinePoint description 2021-06-15 17:10:38 -04:00
Alfredo Garcia 6aa6a68297 add a new not included item 2021-06-15 17:10:38 -04:00
Alfredo Garcia e9ca8ee99e update payloads rust code 2021-06-15 17:10:38 -04:00
Alfredo Garcia 8fcbb44908 change Participant to ParticipantID 2021-06-15 17:10:38 -04:00
Alfredo Garcia 4362f20732 fix typo 2021-06-15 17:10:38 -04:00
Alfredo Garcia 2d5ceaf1d7 remove participants field from rust in MsgSigningPackage 2021-06-15 17:10:38 -04:00
Alfredo Garcia de1a1bed37 replace CollectedCommitment with a HashMap 2021-06-15 17:10:38 -04:00
Alfredo Garcia b70e15eefe remove lenght of msg to be signed from rust 2021-06-15 17:10:38 -04:00
Alfredo Garcia fb21e09714 change comments to doc comments 2021-06-15 17:10:38 -04:00
Alfredo Garcia 9a37fcb980 add note about large messages 2021-06-15 17:10:38 -04:00
Alfredo Garcia 5586bd8aaf use to_bytes in primitive types and reduce serialization size 2021-06-15 17:10:38 -04:00
Alfredo Garcia 07d8c06ed6 fix typos 2021-06-15 17:10:38 -04:00
Alfredo Garcia a4d4907867 change other considerations section to not included 2021-06-15 17:10:38 -04:00
Alfredo Garcia 7891c9bb01 add Other considerations section 2021-06-15 17:10:38 -04:00
Alfredo Garcia ce5b4f6eae replace tuples with new types 2021-06-15 17:10:38 -04:00
Alfredo Garcia d03e47acd8 fix closing vector 2021-06-15 17:10:38 -04:00
Alfredo Garcia c2ab37bd1b add size fields in MsgSigningPackage 2021-06-15 17:10:38 -04:00