Skip to content

Commit ae7becc

Browse files
committed
fix errors with build
1 parent eb4ded5 commit ae7becc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dkg/round1.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use crate::frost::Field;
1515
use crate::frost::Identifier;
1616
use crate::frost::JubjubScalarField;
1717
use crate::multienc;
18-
use crate::multienc::read_encrypted_blob;
1918
use crate::participant;
2019
use crate::participant::Identity;
2120
use crate::serde::read_u16;
@@ -297,8 +296,8 @@ where
297296
return Err(IronfishFrostError::InvalidInput);
298297
}
299298

300-
let max_signers = u16::try_from(participants.len())
301-
.map_err(|_| IronfishFrostError::InvalidInput("too many participants".to_string()))?;
299+
let max_signers =
300+
u16::try_from(participants.len()).map_err(|_| IronfishFrostError::InvalidInput)?;
302301

303302
let (secret_package, public_package) = frost::keys::dkg::part1(
304303
self_identity.to_frost_identifier(),

0 commit comments

Comments
 (0)