Skip to content

Commit

Permalink
change IncorrectCommitment to IncorrectNumberOfCommitments
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Oct 17, 2023
1 parent b333d6e commit 7965e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frost-core/src/frost/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub(crate) fn sum_commitments<C: Ciphersuite>(
CoefficientCommitment(<C::Group>::identity());
commitments
.get(0)
.ok_or(Error::IncorrectCommitment)?
.ok_or(Error::IncorrectNumberOfCommitments)?
.0
.len()
];
Expand All @@ -50,7 +50,7 @@ pub(crate) fn sum_commitments<C: Ciphersuite>(
+ commitment
.0
.get(i)
.ok_or(Error::IncorrectCommitment)?
.ok_or(Error::IncorrectNumberOfCommitments)?
.value(),
);
}
Expand Down

0 comments on commit 7965e24

Please sign in to comment.