Skip to content

Commit

Permalink
Bump curve25519-dalek from 3.2.1 to 4.1.2
Browse files Browse the repository at this point in the history
Fix bump rand to 0.8.5
  • Loading branch information
dependabot[bot] authored and andreisilviudragnea committed May 7, 2024
1 parent 8f694ba commit 48e4285
Show file tree
Hide file tree
Showing 40 changed files with 230 additions and 152 deletions.
90 changes: 56 additions & 34 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 @@ -186,7 +186,7 @@ criterion-stats = "0.3.0"
crossbeam-channel = "0.5.12"
csv = "1.3.0"
ctrlc = "3.4.4"
curve25519-dalek = "3.2.1"
curve25519-dalek = { version = "4.1.2", features = ["digest", "rand_core"] }
dashmap = "5.5.3"
derivation-path = { version = "0.2.0", default-features = false }
derivative = "2.2.0"
Expand Down
5 changes: 3 additions & 2 deletions perf/src/sigverify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ mod tests {
for _ in 0..1_000_000 {
thread_rng().fill(&mut input);
let ans = get_checked_scalar(&input);
let ref_ans = Scalar::from_canonical_bytes(input);
let ref_ans = Option::<Scalar>::from(Scalar::from_canonical_bytes(input));
if let Some(ref_ans) = ref_ans {
passed += 1;
assert_eq!(ans.unwrap(), ref_ans.to_bytes());
Expand Down Expand Up @@ -1315,7 +1315,8 @@ mod tests {
for _ in 0..1_000_000 {
thread_rng().fill(&mut input);
let ans = check_packed_ge_small_order(&input);
let ref_ge = CompressedEdwardsY::from_slice(&input);
let ref_ge = CompressedEdwardsY::from_slice(&input)
.expect("Input slice should have a length of 32");
if let Some(ref_element) = ref_ge.decompress() {
if ref_element.is_small_order() {
assert!(!ans);
Expand Down
Loading

0 comments on commit 48e4285

Please sign in to comment.