Skip to content

Commit

Permalink
fix(deps): update rust crate fluence-keypair to 0.10.4 (#752)
Browse files Browse the repository at this point in the history
* Update ed25519-dalek and rand_chacha to compatible versions
* Make clippy happier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ivan Boldyrev <[email protected]>
  • Loading branch information
renovate[bot] and monoid authored Dec 25, 2023
1 parent eaa4077 commit c9a0b87
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 21 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions air/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ air-lambda-parser = { version = "0.1.0", path = "../crates/air-lib/lambda/parser
air-trace-handler = { version = "0.5.8", path = "../crates/air-lib/trace-handler" }
air-utils = { version = "0.2.0", path = "../crates/air-lib/utils" }
polyplets = { version = "0.5.1", path = "../crates/air-lib/polyplets" }
fluence-keypair = { version = "0.10.3", default-features = false }
fluence-keypair = { version = "0.10.4", default-features = false }

serde = { version = "1.0.190", features = [ "derive", "rc" ] }
serde_json = "1.0.108"
Expand Down Expand Up @@ -57,7 +57,7 @@ bs58 = "0.5.0"
# the feature just silence a warning in the criterion 0.3.x.
criterion = { version = "0.3.3", features = ["html_reports"] }
csv = "1.1.5"
ed25519-dalek = "1.0.1"
ed25519-dalek = "2.1.0"
env_logger = "0.7.1"
once_cell = "1.4.1"
pretty_assertions = "0.6.1"
Expand Down
2 changes: 1 addition & 1 deletion air/src/signing_step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(crate) fn sign_produced_cids(
let signature = signature_tracker
.gen_signature(salt, keypair)
.map_err(UncatchableError::SigningError)?;
let public_key = keypair.public().into();
let public_key = keypair.public();
signature_store.put(public_key, signature);
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion avm/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ serde = "1.0.190"
log = "0.4.20"
parking_lot = "0.12.1"
tracing = "0.1.40"
fluence-keypair = { version = "0.10.3", default-features = false }
fluence-keypair = { version = "0.10.4", default-features = false }
2 changes: 1 addition & 1 deletion crates/air-lib/interpreter-data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ air-interpreter-signatures = { version = "0.1.5", path = "../interpreter-signatu
air-interpreter-sede = { version = "0.1.0", path = "../interpreter-sede", features = ["json"] }
polyplets = { version = "0.5.1", path = "../polyplets" }

fluence-keypair = { version = "0.10.3", default-features = false }
fluence-keypair = { version = "0.10.4", default-features = false }
serde = {version = "1.0.190", features = ["derive", "rc"]}
serde_json = "1.0.108"
semver = { version = "1.0.17", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/air-lib/interpreter-signatures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["wasm"]

[dependencies]
air-interpreter-cid = { version = "0.7.0", path = "../interpreter-cid" }
fluence-keypair = { version = "0.10.3", default-features = false }
fluence-keypair = { version = "0.10.4", default-features = false }

bs58 = "0.5.0"
borsh = { version = "0.10.3", features = ["rc"]}
Expand Down
7 changes: 3 additions & 4 deletions crates/air-lib/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ once_cell = "1.17.1"
semver = "1.0.17"
serde_json = "1.0.108"
serde = { version = "1.0.190", features = ["derive"] }
fluence-keypair = "0.10.3"

ed25519-dalek = "1.0.1"
rand_chacha = "0.2.2"
fluence-keypair = "0.10.4"
ed25519-dalek = "2.1.0"
rand_chacha = "0.3.1"
sha2 = "0.10.6"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/air-lib/test-utils/src/key_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn derive_dummy_keypair(seed: &str) -> (KeyPair, String) {
rand_chacha::ChaCha8Rng::from_seed(hasher.finalize().into())
};

let keypair_ed25519 = ed25519_dalek::Keypair::generate(&mut rng);
let keypair_ed25519 = ed25519_dalek::SigningKey::generate(&mut rng);
let keypair = fluence_keypair::KeyPair::Ed25519(keypair_ed25519.into());
let keypair = KeyPair::try_from(keypair).expect("cannot happen");

Expand Down
2 changes: 1 addition & 1 deletion crates/testing-framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ air-test-utils = { version = "0.13.0", path = "../air-lib/test-utils" }
aquavm-air-parser = { version = "0.11.0", path = "../air-lib/air-parser" }

itertools = "0.10.5"
fluence-keypair = "0.10.1"
fluence-keypair = "0.10.4"
strum = { version="0.24.1", features=["derive"] }
nom = "7.1.3"
nom_locate = "4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/cli/air/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tracing = "0.1.40"
tracing-subscriber = { version = "0.3.17", default-features = false, features = [ "env-filter", "json", "smallvec", "time", "fmt" ] }
atty = "0.2.14"
termcolor = "1.2.0"
fluence-keypair = "0.10.3"
fluence-keypair = "0.10.4"
bs58 = "0.5.0"
zeroize = "1.6.0"

Expand Down

0 comments on commit c9a0b87

Please sign in to comment.