Skip to content

Commit

Permalink
Update fastcrypto (MystenLabs#7060)
Browse files Browse the repository at this point in the history
  • Loading branch information
benr-ml authored Jan 2, 2023
1 parent f15daaa commit ec64feb
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 20 deletions.
21 changes: 16 additions & 5 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ move-prover-boogie-backend = { git = "https://github.com/move-language/move", re
move-stackless-bytecode = { git = "https://github.com/move-language/move", rev = "265e8792ff2935db8246ddb308b36b893d507851" }
move-symbol-pool = { git = "https://github.com/move-language/move", rev = "265e8792ff2935db8246ddb308b36b893d507851" }

fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a" }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", package = "fastcrypto-zkp" }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656" }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", package = "fastcrypto-zkp" }

# anemo dependencies
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "ccfb77628ec1883121079f1ae9c65e9c716709c8" }
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@
"type": "string"
},
"Base64": {
"description": "Base64 encoding.",
"description": "Base64 encoding",
"type": "string"
},
"CertifiedTransaction": {
Expand Down
13 changes: 7 additions & 6 deletions crates/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ event-listener = { version = "2", default-features = false }
eyre = { version = "0.6", features = ["auto-install", "track-caller"] }
fail-9fbad63c4bcf4a8f = { package = "fail", version = "0.4", default-features = false }
fail-d8f496e17d97b5cb = { package = "fail", version = "0.5", default-features = false }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", features = ["copy_key", "secure"] }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", default-features = false }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", features = ["copy_key", "secure"] }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", default-features = false }
fastrand = { version = "1", default-features = false }
fd-lock = { version = "3", default-features = false }
fdlimit = { version = "0.2", default-features = false }
Expand Down Expand Up @@ -779,7 +779,8 @@ console-api = { version = "0.4", default-features = false, features = ["transpor
console-subscriber = { version = "0.1", features = ["env-filter"] }
const-oid = { version = "0.9", default-features = false }
constant_time_eq = { version = "0.2", default-features = false }
convert_case = { version = "0.4", default-features = false }
convert_case-9fbad63c4bcf4a8f = { package = "convert_case", version = "0.4", default-features = false }
convert_case-3b31131e45eafb45 = { package = "convert_case", version = "0.6", default-features = false }
core2 = { version = "0.4", default-features = false, features = ["alloc"] }
crc = { version = "3", default-features = false }
crc-catalog = { version = "2", default-features = false }
Expand Down Expand Up @@ -857,9 +858,9 @@ event-listener = { version = "2", default-features = false }
eyre = { version = "0.6", features = ["auto-install", "track-caller"] }
fail-9fbad63c4bcf4a8f = { package = "fail", version = "0.4", default-features = false }
fail-d8f496e17d97b5cb = { package = "fail", version = "0.5", default-features = false }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", features = ["copy_key", "secure"] }
fastcrypto-derive = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", default-features = false }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "8d07cc5a60856163829911e5aeedede35e90174a", default-features = false }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", features = ["copy_key", "secure"] }
fastcrypto-derive = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", default-features = false }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f64e36ceed674ccd46938cfd9645a2d32a923656", default-features = false }
fastrand = { version = "1", default-features = false }
fd-lock = { version = "3", default-features = false }
fdlimit = { version = "0.2", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion narwhal/primary/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
use anyhow::Result;
use config::{Committee, Epoch, SharedWorkerCache};
use crypto::{NetworkPublicKey, PublicKey, Signature};
use fastcrypto::{hash::Hash as _, SignatureService};
use fastcrypto::{hash::Hash as _, signature_service::SignatureService};
use futures::StreamExt;
use futures::{future::OptionFuture, stream::FuturesUnordered};
use mysten_metrics::{spawn_logged_monitored_task, spawn_monitored_task};
Expand Down
2 changes: 1 addition & 1 deletion narwhal/primary/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ use crypto::{KeyPair, NetworkKeyPair, NetworkPublicKey, PublicKey, Signature};
use dashmap::DashSet;
use fastcrypto::{
hash::Hash,
signature_service::SignatureService,
traits::{EncodeDecodeBase64, KeyPair as _, ToFromBytes},
SignatureService,
};
use multiaddr::{Multiaddr, Protocol};
use network::{failpoints::FailpointsMakeCallbackHandler, metrics::MetricsMakeCallbackHandler};
Expand Down
2 changes: 1 addition & 1 deletion narwhal/primary/src/proposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use crate::{metrics::PrimaryMetrics, NetworkModel};
use config::{Committee, Epoch, WorkerId};
use crypto::{PublicKey, Signature};
use fastcrypto::{hash::Hash as _, SignatureService};
use fastcrypto::{hash::Hash as _, signature_service::SignatureService};
use mysten_metrics::spawn_logged_monitored_task;
use std::collections::BTreeMap;
use std::{cmp::Ordering, sync::Arc};
Expand Down
2 changes: 1 addition & 1 deletion narwhal/primary/src/tests/certificate_fetcher_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use anemo::async_trait;
use anyhow::Result;
use config::{Epoch, WorkerId};
use crypto::{PublicKey, Signature};
use fastcrypto::{hash::Hash, traits::KeyPair, SignatureService};
use fastcrypto::{hash::Hash, signature_service::SignatureService, traits::KeyPair};
use indexmap::IndexMap;
use itertools::Itertools;
use once_cell::sync::OnceCell;
Expand Down
2 changes: 1 addition & 1 deletion narwhal/primary/src/tests/primary_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use dashmap::DashSet;
use fastcrypto::{
encoding::{Encoding, Hex},
hash::Hash,
signature_service::SignatureService,
traits::KeyPair,
SignatureService,
};
use itertools::Itertools;
use prometheus::Registry;
Expand Down
3 changes: 2 additions & 1 deletion narwhal/types/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use dag::node_dag::Affiliated;
use derive_builder::Builder;
use fastcrypto::{
hash::{Digest, Hash, HashFunction},
signature_service::SignatureService,
traits::{AggregateAuthenticator, EncodeDecodeBase64, Signer, VerifyingKey},
SignatureService, Verifier,
Verifier,
};
use indexmap::IndexMap;
use mysten_util_mem::MallocSizeOf;
Expand Down

0 comments on commit ec64feb

Please sign in to comment.