mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
Correct ThresholdParams assert_eq
This commit is contained in:
@@ -42,13 +42,12 @@ pub async fn key_gen<C: Ciphersuite>(
|
|||||||
}) => {
|
}) => {
|
||||||
assert_eq!(id, *this_id);
|
assert_eq!(id, *this_id);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
*params,
|
params.t(),
|
||||||
ThresholdParams::new(
|
u16::try_from(((coordinators * 2) / 3) + 1).unwrap(),
|
||||||
u16::try_from(((coordinators * 2) / 3) + 1).unwrap(),
|
);
|
||||||
u16::try_from(coordinators).unwrap(),
|
assert_eq!(
|
||||||
participant_is[i],
|
params.n(),
|
||||||
)
|
u16::try_from(coordinators).unwrap(),
|
||||||
.unwrap()
|
|
||||||
);
|
);
|
||||||
assert_eq!(*shares, 1);
|
assert_eq!(*shares, 1);
|
||||||
participant_is.push(params.i());
|
participant_is.push(params.i());
|
||||||
|
|||||||
Reference in New Issue
Block a user