Skip to content

Commit

Permalink
Convert share_commitment to a BTreeMap
Browse files Browse the repository at this point in the history
Co-authored-by: teor <[email protected]>
  • Loading branch information
2 people authored and dconnolly committed Jun 15, 2021
1 parent 7d35749 commit c0688b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rfcs/0001-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<frost::Commitment>,
/// Share packages that contain duplicate or missing `ParticipantId`s are invalid.
/// `ParticipantId`s must be serialized in ascending numeric order.
share_commitment: BTreeMap<ParticipantId, frost::Commitment>,
}

/// The data required to serialize `frost::SigningCommitments`.
Expand Down Expand Up @@ -334,7 +336,7 @@ Bytes | Field name | Data type
32 | group_public | VerificationKey<SpendAuth>
32 | secret_share | Share
1 | participants | u8
32*participants | share_commitment | Vec\<Commitment\>
(8+32)*participants | share_commitment | BTreeMap<ParticipantId, Commitment>

#### `SigningCommitments`

Expand Down

0 comments on commit c0688b0

Please sign in to comment.