Skip to content

Commit

Permalink
all: update and clean up dependencies (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg authored Feb 20, 2025
1 parent 6f50c25 commit df39100
Show file tree
Hide file tree
Showing 10 changed files with 597 additions and 512 deletions.
1,082 changes: 586 additions & 496 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ bech32 = "0.11.0"
clap = "4.5.23"
coordinator = { path = "coordinator" }
delay_map = "0.4.0"
derivative = "2.2.0"
dirs = "5.0.1"
dkg = { path = "dkg" }
exitcode = "1.1.2"
Expand All @@ -47,7 +46,7 @@ rand_core = "0.6.4"
rcgen = "0.13.2"
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "ed49e9ca0699a6450f6d4a9fe62ff168f5ea1ead" }
regex = "1.11.1"
reqwest = "0.12.12"
reqwest = { version = "0.12.12", default-features = false }
rpassword = "7.3.1"
rustls = "0.23.21"
sapling-crypto = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion coordinator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rand = { workspace = true }
serde_json = { workspace = true }
serdect = { workspace = true }
clap = { workspace = true, features = ["derive"] }
reqwest = { workspace = true, features = ["json"] }
reqwest = { workspace = true, features = ["json", "rustls-tls-native-roots"] }
frostd = { workspace = true }
participant = { workspace = true }
tokio = { workspace = true, features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion dkg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serde_json = { workspace = true }
frostd = { workspace = true }
participant = { workspace = true }
xeddsa = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
reqwest = { workspace = true, features = ["json", "rustls-tls-native-roots"] }
tokio = { workspace = true, features = ["full"] }
snow = { workspace = true }

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

[dependencies]
clap = { workspace = true, features = ["derive"] }
reqwest = { workspace = true, features = ["json"] }
reqwest = { workspace = true, features = ["json", "rustls-tls-native-roots"] }
serde = { workspace = true, features = ["derive"] }
snow = { workspace = true }
toml = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions frostd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = { workspace = true }
axum = { workspace = true }
axum-extra = { workspace = true, features = ["typed-header"] }
axum-server = { workspace = true, features = ["tls-rustls"] }
clap = { workspace = true, features = ["derive"] }
delay_map = { workspace = true }
derivative = { workspace = true }
eyre = { workspace = true }
frost-core = { workspace = true, features = ["serde"] }
frost-rerandomized = { workspace = true, features = ["serde"] }
Expand Down Expand Up @@ -45,7 +43,7 @@ rustls = { workspace = true, features = ["ring"] }
axum-test = { workspace = true }
frost-ed25519 = { workspace = true, features = ["serde"] }
reddsa = { workspace = true, features = ["frost", "serde"] }
reqwest = { workspace = true, features = ["json", "rustls-tls-manual-roots"] }
reqwest = { workspace = true, default-features = false, features = ["json", "rustls-tls-manual-roots"] }
regex = { workspace = true }
coordinator = { workspace = true }
rcgen = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion frostd/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub struct CloseSessionArgs {
pub session_id: Uuid,
}

#[derive(Serialize, Deserialize, derivative::Derivative)]
#[derive(Serialize, Deserialize)]
#[serde(bound = "C: Ciphersuite")]
pub struct SendSigningPackageArgs<C: Ciphersuite> {
pub signing_package: Vec<SigningPackage<C>>,
Expand Down
4 changes: 1 addition & 3 deletions participant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@ edition = "2021"

[dependencies]
async-trait = { workspace = true }
derivative = { workspace = true }
frost-core = { workspace = true, features = ["serde"] }
frost-rerandomized = { workspace = true, features = ["serde"] }
frost-ed25519 = { workspace = true, features = ["serde"] }
reddsa = { workspace = true, features = ["frost"] }
hex = { workspace = true }
rand = { workspace = true }
eyre = { workspace = true }
exitcode = { workspace = true }
serde_json = { workspace = true }
serdect = { workspace = true }
clap = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }
message-io = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
reqwest = { workspace = true, features = ["json", "rustls-tls-native-roots"] }
frostd = { workspace = true }
rpassword = { workspace = true }
snow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion participant/src/round1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub async fn request_inputs<C: Ciphersuite + 'static>(
} else {
// TODO: Improve error
serde_json::from_str::<KeyPackage<C>>(&secret_share)
.map_err(|_| Error::<C>::InvalidSecretShare)?
.map_err(|_| Error::<C>::InvalidSecretShare { culprit: None })?
};

Ok(Round1Config { key_package })
Expand Down
6 changes: 3 additions & 3 deletions participant/src/tests/round1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async fn check_0_input_for_identifier() {

assert_eq!(
*expected.downcast::<Error>().unwrap(),
Error::InvalidSecretShare
Error::InvalidSecretShare { culprit: None }
);
}

Expand All @@ -91,7 +91,7 @@ async fn check_invalid_length_signing_share() {

assert_eq!(
*expected.downcast::<Error>().unwrap(),
Error::InvalidSecretShare
Error::InvalidSecretShare { culprit: None }
);
}

Expand All @@ -110,7 +110,7 @@ async fn check_invalid_round_1_inputs() {
.unwrap_err();
assert_eq!(
*expected.downcast::<Error>().unwrap(),
Error::InvalidSecretShare
Error::InvalidSecretShare { culprit: None }
);
}

Expand Down

0 comments on commit df39100

Please sign in to comment.