Skip to content

Commit

Permalink
update reddsa and remove manual into_positive_y() invocations (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg authored Jan 5, 2024
1 parent f07fbe3 commit 824a133
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 73 deletions.
59 changes: 9 additions & 50 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 @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
eyre = "0.6.11"
frost-ed25519 = { version = "1.0.0-rc.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost", "serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "81c649c412e5b6ba56d491d2857f91fbd28adbc7", features = ["frost", "serde"] }
hex = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion dkg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
eyre = "0.6.11"
frost-ed25519 = { version = "1.0.0-rc.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "81c649c412e5b6ba56d491d2857f91fbd28adbc7", features = ["frost"] }
hex = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
rand = "0.8"
Expand Down
6 changes: 0 additions & 6 deletions dkg/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
use frost_ed25519 as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas::keys::PositiveY;

use rand::thread_rng;
use std::collections::BTreeMap;
Expand Down Expand Up @@ -85,10 +83,6 @@ pub fn cli(
&received_round1_packages,
&received_round2_packages,
)?;
#[cfg(feature = "redpallas")]
let public_key_package = public_key_package.into_positive_y();
#[cfg(feature = "redpallas")]
let key_package = key_package.into_positive_y();

writeln!(
logger,
Expand Down
2 changes: 1 addition & 1 deletion participant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
frost-ed25519 = { version = "1.0.0-rc.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "81c649c412e5b6ba56d491d2857f91fbd28adbc7", features = ["frost"] }
hex = "0.4"
rand = "0.8"
eyre = "0.6.11"
Expand Down
5 changes: 0 additions & 5 deletions participant/src/round1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
use frost_ed25519 as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas::keys::PositiveY;

use frost::{
keys::{KeyPackage, SecretShare},
Expand Down Expand Up @@ -36,9 +34,6 @@ pub fn request_inputs(
serde_json::from_str::<KeyPackage>(&json).map_err(|_| Error::InvalidSecretShare)?
};

#[cfg(feature = "redpallas")]
let key_package = key_package.into_positive_y();

Ok(Round1Config { key_package })
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
frost-ed25519 = { version = "1.0.0-rc.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "81c649c412e5b6ba56d491d2857f91fbd28adbc7", features = ["frost"] }
hex = "0.4"
rand = "0.8"
exitcode = "1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion trusted-dealer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
frost-ed25519 = { version = "1.0.0-rc.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "6e55be4da9fa7beec9f744d49a1bad844318a932", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "81c649c412e5b6ba56d491d2857f91fbd28adbc7", features = ["frost"] }
thiserror = "1.0"
rand = "0.8"
hex = "0.4"
Expand Down
7 changes: 0 additions & 7 deletions trusted-dealer/src/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
use frost_ed25519 as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas as frost;
#[cfg(feature = "redpallas")]
use reddsa::frost::redpallas::keys::PositiveY;

use frost::keys::{PublicKeyPackage, SecretShare};
use frost::Error;
Expand Down Expand Up @@ -83,11 +81,6 @@ pub fn print_values(
pubkeys: &PublicKeyPackage,
logger: &mut dyn Write,
) -> Result<(), Box<dyn std::error::Error>> {
#[cfg(feature = "redpallas")]
let pubkeys = pubkeys.clone().into_positive_y();
#[cfg(feature = "redpallas")]
let pubkeys = &pubkeys;

writeln!(
logger,
"Public key package:\n{}",
Expand Down

0 comments on commit 824a133

Please sign in to comment.