Skip to content

Commit

Permalink
update frost-rerandomized; skip tests if redpallas enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Nov 13, 2023
1 parent 42ed36e commit 6c25312
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 18 deletions.
18 changes: 8 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion coordinator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eyre = "0.6.8"
# frost-ed25519 = { version = "0.7.0", features = ["serde"] }
# Re-export serde PR, point to 1.0.0-rc.0 after that's released
frost-ed25519 = { git = "https://github.com/ZcashFoundation/frost.git", rev = "6d5e1ff23ad6587357ff0762b5b004525c387755", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "885f118fdf4956238345c8547946a46cbd39c566", features = ["frost", "serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost", "serde"] }
hex = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion coordinator/src/step_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async fn request_inputs_signature_shares(

#[cfg(feature = "redpallas")]
let randomizer_params = frost::RandomizedParams::from_randomizer(
participants.pub_key_package.group_public(),
participants.pub_key_package.verifying_key(),
randomizer,
);

Expand Down
2 changes: 1 addition & 1 deletion dkg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eyre = "0.6.8"
# frost-ed25519 = { version = "0.7.0", features = ["serde"] }
# Re-export serde PR, point to 1.0.0-rc.0 after that's released
frost-ed25519 = { git = "https://github.com/ZcashFoundation/frost.git", rev = "6d5e1ff23ad6587357ff0762b5b004525c387755", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "885f118fdf4956238345c8547946a46cbd39c566", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
hex = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
rand = "0.8"
Expand Down
2 changes: 2 additions & 0 deletions dkg/src/tests/inputs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

use std::io::BufWriter;

use crate::inputs::{request_inputs, Config};
Expand Down
9 changes: 7 additions & 2 deletions dkg/tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#[cfg(not(feature = "redpallas"))]
use frost_ed25519 as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas as frost;

use dkg::cli::cli;

use std::collections::HashMap;
use std::io::{BufRead, Write};
use std::thread;

use frost_ed25519::keys::{KeyPackage, PublicKeyPackage};
use frost_ed25519::Identifier;
use frost::keys::{KeyPackage, PublicKeyPackage};
use frost::Identifier;

// Read a single line from the given reader.
fn read_line(mut reader: impl BufRead) -> Result<String, std::io::Error> {
Expand Down
2 changes: 1 addition & 1 deletion participant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
# frost-ed25519 = { version = "0.7.0", features = ["serde"] }
# Re-export serde PR, point to 1.0.0-rc.0 after that's released
frost-ed25519 = { git = "https://github.com/ZcashFoundation/frost.git", rev = "6d5e1ff23ad6587357ff0762b5b004525c387755", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "885f118fdf4956238345c8547946a46cbd39c566", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
hex = "0.4"
rand = "0.8"
eyre = "0.6.8"
Expand Down
2 changes: 2 additions & 0 deletions participant/tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

use std::collections::{BTreeMap, HashMap};

use frost::keys::IdentifierList;
Expand Down
6 changes: 5 additions & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
# frost-ed25519 = { version = "0.7.0", features = ["serde"] }
# Re-export serde PR, point to 1.0.0-rc.0 after that's released
frost-ed25519 = { git = "https://github.com/ZcashFoundation/frost.git", rev = "6d5e1ff23ad6587357ff0762b5b004525c387755", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "885f118fdf4956238345c8547946a46cbd39c566", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
hex = "0.4"
rand = "0.8"
exitcode = "1.1.2"
Expand All @@ -23,3 +23,7 @@ trusted-dealer = { path = "../trusted-dealer"}
participant = { path = "../participant"}
coordinator = { path = "../coordinator"}
rand = "0.8"

[features]
redpallas = []
default = []
2 changes: 2 additions & 0 deletions tests/tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

use coordinator::args::Args;
use coordinator::comms::cli::CLIComms;
use frost_ed25519 as frost;
Expand Down
2 changes: 1 addition & 1 deletion trusted-dealer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
# frost-ed25519 = { version = "0.7.0", features = ["serde"] }
# Re-export serde PR, point to 1.0.0-rc.0 after that's released
frost-ed25519 = { git = "https://github.com/ZcashFoundation/frost.git", rev = "6d5e1ff23ad6587357ff0762b5b004525c387755", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "885f118fdf4956238345c8547946a46cbd39c566", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
thiserror = "1.0"
rand = "0.8"
hex = "0.4"
Expand Down
2 changes: 2 additions & 0 deletions trusted-dealer/src/tests/inputs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

use std::io::BufWriter;

use frost::Error;
Expand Down
2 changes: 2 additions & 0 deletions trusted-dealer/src/tests/print_values.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

use frost::keys::{IdentifierList, PublicKeyPackage, SecretShare};
use frost::Identifier;
use frost_ed25519 as frost;
Expand Down
1 change: 1 addition & 0 deletions trusted-dealer/src/trusted_dealer_keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub fn split_secret(
Ok((shares, pubkeys))
}

#[cfg(not(feature = "redpallas"))]
#[cfg(test)]
mod tests {

Expand Down
2 changes: 2 additions & 0 deletions trusted-dealer/tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(feature = "redpallas"))]

mod helpers;

use frost::aggregate;
Expand Down

0 comments on commit 6c25312

Please sign in to comment.