Skip to content

chore(deps): bump hex-literal from 0.4.1 to 1.0.0 #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cgt* # ignore instatiations of my test template
# exclude compiled files and binaries
debug/
target/

rustc-ice-*

# vs code
.vscode
Expand Down
180 changes: 165 additions & 15 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 @@ -9,7 +9,7 @@ version ="0.1.1"
exclude =["CHANGELOG.md", "assets/"]

[dependencies]
rand ="0.8"
rand ="0.9"
itertools ="0.14"
hex ="0.4"
crypto-bigint="0.6.0-rc.6"
Expand All @@ -24,7 +24,7 @@ ark-ff ={ version="0.5", features=["std"] }
ark-crypto-primitives={ version="0.5", features=["sponge"] }
des ="0.8"
chacha20 ="0.9"
hex-literal ="0.4"
hex-literal ="1.0"

[[bin]]
name="hmac_sha256_bin"
Expand Down
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

[toolchain]
# what toolchain to use.
channel="nightly-2024-06-10"
channel="nightly"
# option to specify a date to pin to a particular release
# date = "2024-03-19"
date="2024-06-10"

# profiles are groups of components to download when installing a toolchain.
# https://rust-lang.github.io/rustup/concepts/profiles.html
Expand Down
4 changes: 2 additions & 2 deletions src/algebra/field/binary_towers/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::{
};

use rand::{
distributions::{Distribution, Standard},
Rng,
distr::{Distribution, StandardUniform},
};

use super::{BinaryField, Field, Finite, FiniteField};
Expand Down Expand Up @@ -262,7 +262,7 @@ where
}
}

impl<const K: usize> Distribution<BinaryTowers<K>> for Standard
impl<const K: usize> Distribution<BinaryTowers<K>> for StandardUniform
where [(); 1 << K]:
{
#[inline]
Expand Down
16 changes: 8 additions & 8 deletions src/algebra/field/binary_towers/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rand::{thread_rng, Rng};
use rand::{Rng, rng};
use rstest::rstest;

use super::*;
Expand Down Expand Up @@ -54,9 +54,9 @@ fn num_digit(#[case] num: u64, #[case] digits: usize) {

#[test]
fn add_sub_neg() {
let mut rng = thread_rng();
let a = rng.gen::<BinaryTowers<3>>();
let b = rng.gen::<BinaryTowers<3>>();
let mut rng = rng();
let a = rng.random::<BinaryTowers<3>>();
let b = rng.random::<BinaryTowers<3>>();

assert_eq!(a + a, BinaryTowers::<3>::ZERO);
assert_eq!(a + a, b + b);
Expand Down Expand Up @@ -87,9 +87,9 @@ fn mul_div(#[case] a: BinaryTowers<3>, #[case] b: BinaryTowers<3>, #[case] res:

#[test]
fn small_by_large_mul() {
let mut rng = thread_rng();
let mut rng = rng();
for _ in 0..100 {
let a = rng.gen::<BinaryTowers<5>>();
let a = rng.random::<BinaryTowers<5>>();

let val = rng.gen_range(0..1 << (1 << 3));

Expand All @@ -111,8 +111,8 @@ fn small_by_large_mul() {

#[test]
fn efficient_embedding() {
let mut rng = thread_rng();
let a = rng.gen::<BinaryTowers<4>>();
let mut rng = rng();
let a = rng.random::<BinaryTowers<4>>();

let (a1, a2) = a.into();

Expand Down
Loading
Loading