From c0688b0fe4a9bbbf7d471ce15141b0faa3d4654a Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 31 May 2021 09:10:10 -0300 Subject: [PATCH] Convert `share_commitment` to a BTreeMap Co-authored-by: teor --- rfcs/0001-messages.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rfcs/0001-messages.md b/rfcs/0001-messages.md index 36ac2a83..5c9c441e 100644 --- a/rfcs/0001-messages.md +++ b/rfcs/0001-messages.md @@ -141,7 +141,9 @@ struct messages::SharePackage { /// The commitments to the coefficients for our secret polynomial _f_, /// used to generate participants' key shares. Participants use these to perform /// verifiable secret sharing. - share_commitment: Vec, + /// Share packages that contain duplicate or missing `ParticipantId`s are invalid. + /// `ParticipantId`s must be serialized in ascending numeric order. + share_commitment: BTreeMap, } /// The data required to serialize `frost::SigningCommitments`. @@ -334,7 +336,7 @@ Bytes | Field name | Data type 32 | group_public | VerificationKey 32 | secret_share | Share 1 | participants | u8 -32*participants | share_commitment | Vec\ +(8+32)*participants | share_commitment | BTreeMap #### `SigningCommitments`