update serialization

This commit is contained in:
Alfredo Garcia 2021-05-11 09:26:05 -03:00 committed by Deirdre Connolly
parent fc340edc28
commit 798d0ef7ea
1 changed files with 14 additions and 12 deletions

View File

@ -247,10 +247,11 @@ Payload part of the message is variable in size and depends on message type.
#### `MsgDealerBroadcast` #### `MsgDealerBroadcast`
Bytes | Field name | Data type Bytes | Field name | Data type
-------|-------------|----------- ----------------|------------------|-----------
32 | secret_key | Scalar 32 | secret_share | Scalar
32 | commitments | AffinePoint 1 | participants | u8
32+32 | group_public| GroupPublic 32*participants | share_commitment | Vec<AffinePoint>
32 | group_public | AffinePoint
#### `MsgCommitments` #### `MsgCommitments`
@ -261,9 +262,9 @@ Bytes | Field name | Data type
#### `MsgSigningPackage` #### `MsgSigningPackage`
Bytes | Field name | Data type Bytes | Field name | Data type
-----------------------|----------------|----------- -----------------------|--------------------|-----------
1 | participants | u8 1 | participants | u8
(1+32+32)*participants | commitments | HashMap<ParticipantID, Commitment> (1+32+32)*participants | signing_commitments| HashMap<ParticipantID, SigningCommitments>
8 | message_length | u64 8 | message_length | u64
message_length | message | Vec<u8> message_length | message | Vec<u8>
@ -277,7 +278,8 @@ Bytes | Field name | Data type
Bytes | Field name | Data type Bytes | Field name | Data type
------|------------------|----------- ------|------------------|-----------
32+32 | final_signature | FinalSignature 32 | group_commitment | group_commitment
32 | schnorr_signature| Scalar
## Not included ## Not included