mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Update usage of now-associated const in processor/key-gen
This commit is contained in:
@@ -6,7 +6,7 @@ use std::{
|
|||||||
|
|
||||||
use dkg::*;
|
use dkg::*;
|
||||||
|
|
||||||
use serai_primitives::constants::MAX_KEY_SHARES_PER_SET;
|
use serai_primitives::validator_sets::KeyShares;
|
||||||
|
|
||||||
/// A cache of the generators used by the eVRF DKG.
|
/// A cache of the generators used by the eVRF DKG.
|
||||||
///
|
///
|
||||||
@@ -29,8 +29,8 @@ pub(crate) fn generators<C: 'static + Curves>() -> &'static Generators<C> {
|
|||||||
.or_insert_with(|| {
|
.or_insert_with(|| {
|
||||||
// If we haven't prior needed generators for this Ciphersuite, generate new ones
|
// If we haven't prior needed generators for this Ciphersuite, generate new ones
|
||||||
Box::leak(Box::new(Generators::<C>::new(
|
Box::leak(Box::new(Generators::<C>::new(
|
||||||
(MAX_KEY_SHARES_PER_SET * 2 / 3) + 1,
|
(KeyShares::MAX_PER_SET * 2 / 3) + 1,
|
||||||
MAX_KEY_SHARES_PER_SET,
|
KeyShares::MAX_PER_SET,
|
||||||
)))
|
)))
|
||||||
})
|
})
|
||||||
.downcast_ref()
|
.downcast_ref()
|
||||||
|
|||||||
Reference in New Issue
Block a user