Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
329 changes: 284 additions & 45 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ members = [
"crypto/vrf/curve25519", "crypto/vrf/secp256k1",
"crypto/zkp/discrete_logarithm_proof",
"crypto/zkp/range_proof",
"crypto/zkp/utils",
"crypto/zkp/utils", "crypto/zkp/zktransfer",
"ffi/ffi_c/ffi_c_common",
"ffi/ffi_c/ffi_c_crypto",
"ffi/ffi_c/ffi_c_crypto_binary",
Expand All @@ -29,7 +29,7 @@ members = [
"ffi/ffi_common",
"ffi/ffi_java/ffi_java_crypto",
"ffi/ffi_java/ffi_java_crypto_binary",
"ffi/ffi_java/ffi_java_fisco_bcos_sdk",
"ffi/ffi_java/ffi_java_fisco_bcos_sdk", "ffi/ffi_java/ffi_java_zkp",
"ffi/ffi_macros",
"protos",
"third_party/fisco_bcos",
Expand Down
6 changes: 3 additions & 3 deletions crypto/zkp/discrete_logarithm_proof/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ description = "Library of WeDPR shared zkp Function implement discrete logarithm

[dependencies]
hex = "0.4.2"
curve25519-dalek = { version = "1.0", features = [ "serde" ] }
curve25519-dalek = { version = "4.1", features = [ "serde" ] }
wedpr_l_crypto_zkp_utils = {version = "1.3.0", path = "../utils/"}
wedpr_l_macros = "1.0.0"
wedpr_l_protos = "1.2.0"
wedpr_l_utils = "1.1.0"
rand = "0.6"
rand = "0.8.5"

[dev-dependencies]
criterion = "0.3"
criterion = "0.5"

[[bench]]
name = "dlp"
Expand Down
2 changes: 1 addition & 1 deletion crypto/zkp/discrete_logarithm_proof/benches/dlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fn create_point_mul_helper(c: &mut Criterion) {

fn create_point_mul_1_helper(c: &mut Criterion) {
let label = format!("create_point_mul_1_helper",);
let scalar_1 = Scalar::one();
let scalar_1 = Scalar::from(1u8);
let value_basepoint = *BASEPOINT_G1;
c.bench_function(&label, move |b| b.iter(|| scalar_1 * value_basepoint));
}
Expand Down
Loading
Loading