diff --git a/rfcs/0001-messages.md b/rfcs/0001-messages.md index b5f560d..da4292b 100644 --- a/rfcs/0001-messages.md +++ b/rfcs/0001-messages.md @@ -124,21 +124,13 @@ struct Commitment { struct MsgSigningPackage { /// The number of participants. participants: u8, - /// The collected commitments for each signer - commitments: Vec, + /// The collected commitments for each signer as a hashmap of + /// unique participant identifiers + commitments: HashMap, /// The message to be signed as a vector of bytes message: Vec, } -/// The aggregator collected commitments for each signer in the -/// scheme. -struct CollectedCommitment { - /// The signer's participant identifier - signer_id: Participant, - /// Commitment for this signer - commitment: Commitment, -} - /// Each signer sends their signatures to the aggregator who is going to collect them /// and generate a final spend signature. struct MsgSignatureShare { @@ -277,7 +269,7 @@ Bytes | Field name | Data type Bytes | Field name | Data type -----------------------|----------------|----------- 1 | participants | u8 -(1+32+32)*partipants | commitments | Vec +(1+32+32)*partipants | commitments | HashMap 8 | message_length | u64 message_length | message | Vec