From 7965e24f42892edf16ecc800a048f4b922f4835d Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Tue, 17 Oct 2023 19:23:01 -0300 Subject: [PATCH] change IncorrectCommitment to IncorrectNumberOfCommitments --- frost-core/src/frost/keys.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frost-core/src/frost/keys.rs b/frost-core/src/frost/keys.rs index 00ea8c2e..5beda4db 100644 --- a/frost-core/src/frost/keys.rs +++ b/frost-core/src/frost/keys.rs @@ -39,7 +39,7 @@ pub(crate) fn sum_commitments( CoefficientCommitment(::identity()); commitments .get(0) - .ok_or(Error::IncorrectCommitment)? + .ok_or(Error::IncorrectNumberOfCommitments)? .0 .len() ]; @@ -50,7 +50,7 @@ pub(crate) fn sum_commitments( + commitment .0 .get(i) - .ok_or(Error::IncorrectCommitment)? + .ok_or(Error::IncorrectNumberOfCommitments)? .value(), ); }