update to frost-rerandomized 0.2.0; change keygen_with_dealer to return HashMap (#59)

This commit is contained in:
Conrado Gouvea 2023-04-20 17:00:17 -03:00 committed by GitHub
parent 32dc17a677
commit f8ad8ea992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ pasta_curves = { version = "0.5", default-features = false }
rand_core = { version = "0.6", default-features = false }
serde = { version = "1", optional = true, features = ["derive"] }
thiserror = { version = "1.0", optional = true }
frost-rerandomized = { version = "0.1", optional = true }
frost-rerandomized = { version = "0.2", optional = true }
[dependencies.zeroize]
version = "1"
@ -50,7 +50,7 @@ proptest = "1.0"
rand = "0.8"
rand_chacha = "0.3"
serde_json = "1.0"
frost-rerandomized = { version = "0.1", features=["test-impl"] }
frost-rerandomized = { version = "0.2", features=["test-impl"] }
# `alloc` is only used in test code
[dev-dependencies.pasta_curves]

View File

@ -176,7 +176,7 @@ pub type Identifier = frost::Identifier<J>;
/// FROST(Jubjub, BLAKE2b-512) keys, key generation, key shares.
pub mod keys {
use alloc::vec::Vec;
use std::collections::HashMap;
use super::*;
@ -186,7 +186,7 @@ pub mod keys {
max_signers: u16,
min_signers: u16,
mut rng: RNG,
) -> Result<(Vec<SecretShare>, PublicKeyPackage), Error> {
) -> Result<(HashMap<Identifier, SecretShare>, PublicKeyPackage), Error> {
frost::keys::keygen_with_dealer(max_signers, min_signers, &mut rng)
}

View File

@ -178,7 +178,7 @@ pub type Identifier = frost::Identifier<P>;
/// FROST(Pallas, BLAKE2b-512) keys, key generation, key shares.
pub mod keys {
use alloc::vec::Vec;
use std::collections::HashMap;
use super::*;
@ -188,7 +188,7 @@ pub mod keys {
max_signers: u16,
min_signers: u16,
mut rng: RNG,
) -> Result<(Vec<SecretShare>, PublicKeyPackage), Error> {
) -> Result<(HashMap<Identifier, SecretShare>, PublicKeyPackage), Error> {
frost::keys::keygen_with_dealer(max_signers, min_signers, &mut rng)
}