Skip to content

Commit

Permalink
Merge pull request #85 from ZcashFoundation/fix-redpallas-issues
Browse files Browse the repository at this point in the history
Fix redpallas issues
  • Loading branch information
natalieesk authored Oct 10, 2023
2 parents 6f5a2f7 + ab74fed commit 6146cc0
Show file tree
Hide file tree
Showing 10 changed files with 152 additions and 19 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ on:

jobs:

build_redpallas:
name: Build with redpallas
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --features redpallas

clippy:
name: Clippy
runs-on: ubuntu-latest
Expand Down
146 changes: 134 additions & 12 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ default-members = ["participant",
"trusted-dealer",
"dkg",
"coordinator", "tests"]

resolver = "2"
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.8"
frost-ed25519 = { version = "0.6.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "8534e283acf0015cc2450e2a6b49685a3bb3145d", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "5ea1293bb8df90c8a19dedf7ab5510903650dda9", features = ["frost"] }
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.8"
frost-ed25519 = { version = "0.6.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "8534e283acf0015cc2450e2a6b49685a3bb3145d", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "5ea1293bb8df90c8a19dedf7ab5510903650dda9", features = ["frost"] }
hex = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
rand = "0.8"
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 = "0.6.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "8534e283acf0015cc2450e2a6b49685a3bb3145d", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "5ea1293bb8df90c8a19dedf7ab5510903650dda9", features = ["frost"] }
hex = "0.4"
rand = "0.8"
exitcode = "1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion participant/src/round2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use frost::{
};
use std::io::{BufRead, Write};

#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct Round2Config {
pub signing_package: SigningPackage,
#[cfg(feature = "redpallas")]
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 = "0.6.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "8534e283acf0015cc2450e2a6b49685a3bb3145d", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "5ea1293bb8df90c8a19dedf7ab5510903650dda9", 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 = "0.6.0", features = ["serde"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "8534e283acf0015cc2450e2a6b49685a3bb3145d", features = ["frost"] }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "5ea1293bb8df90c8a19dedf7ab5510903650dda9", features = ["frost"] }
thiserror = "1.0"
rand = "0.8"
hex = "0.4"
Expand Down
2 changes: 2 additions & 0 deletions trusted-dealer/src/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
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

0 comments on commit 6146cc0

Please sign in to comment.