change Participant to ParticipantID

This commit is contained in:
Alfredo Garcia 2021-05-10 11:24:03 -03:00 committed by Deirdre Connolly
parent 4362f20732
commit 8fcbb44908
1 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ struct Message {
struct Header { struct Header {
msg_type: MsgType, msg_type: MsgType,
version: MsgVersion, version: MsgVersion,
sender: Participant, sender: ParticipantID,
receiver: Participant, receiver: ParticipantID,
} }
``` ```
@ -75,7 +75,7 @@ enum MsgType {
struct MsgVersion(u8); struct MsgVersion(u8);
struct Participant(u8); struct ParticipantID(u8);
``` ```
### Payloads ### Payloads
@ -124,7 +124,7 @@ struct Commitment {
struct MsgSigningPackage { struct MsgSigningPackage {
/// The collected commitments for each signer as a hashmap of /// The collected commitments for each signer as a hashmap of
/// unique participant identifiers /// unique participant identifiers
commitments: HashMap<Participant, Commitment>, commitments: HashMap<ParticipantID, Commitment>,
/// The message to be signed as a vector of bytes /// The message to be signed as a vector of bytes
message: Vec<u8>, message: Vec<u8>,
} }
@ -267,7 +267,7 @@ Bytes | Field name | Data type
Bytes | Field name | Data type Bytes | Field name | Data type
-----------------------|----------------|----------- -----------------------|----------------|-----------
1 | participants | u8 1 | participants | u8
(1+32+32)*participants | commitments | HashMap<Participant, Commitment> (1+32+32)*participants | commitments | HashMap<ParticipantID, Commitment>
8 | message_length | u64 8 | message_length | u64
message_length | message | Vec<u8> message_length | message | Vec<u8>