mirror of
https://github.com/caulk-crypto/caulk.git
synced 2026-01-09 13:27:56 -05:00
update dependencies
This commit is contained in:
@@ -12,20 +12,17 @@ ark-ec = { version = "^0.3.0", default-features = false }
|
||||
ark-serialize = { version = "^0.3.0", default-features = false, features = [ "derive" ] }
|
||||
ark-poly = { version = "^0.3.0", default-features = false }
|
||||
ark-std = { version = "^0.3.0", default-features = false }
|
||||
ark-relations = { version = "^0.3.0", default-features = false }
|
||||
ark-crypto-primitives = { version = "^0.3.0", default-features = false }
|
||||
ark-r1cs-std = { version = "^0.3.0", default-features = false, optional = true }
|
||||
ark-bls12-381 = { version = "^0.3.0", features = [ "std" ] }
|
||||
ark-bls12-377 = { version = "^0.3.0", features = [ "std" ] }
|
||||
ark-poly-commit = { version = "^0.3.0", default-features = false }
|
||||
ark-marlin = { version = "^0.3.0", default-features = false }
|
||||
|
||||
tracing = { version = "0.1", default-features = false, features = [ "attributes" ], optional = true }
|
||||
derivative = { version = "2.0", features = ["use_core"], optional = true}
|
||||
rand = "0.7.3"
|
||||
rand_chacha = { version = "0.2.1" }
|
||||
rand = "0.8.5"
|
||||
rand_chacha = { version = "0.3.1" }
|
||||
thiserror = "1.0.19"
|
||||
blake2s_simd = "0.5.10"
|
||||
blake2s_simd = "1.0.0"
|
||||
|
||||
rayon = { version = "1.5.2", default-features = false, optional = true }
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ use ark_poly_commit::kzg10::*;
|
||||
use ark_std::{cfg_into_iter, rand::RngCore, One, Zero};
|
||||
use ark_std::{end_timer, start_timer};
|
||||
use std::cmp::max;
|
||||
#[cfg(feature = "parallel")]
|
||||
use rayon::iter::{IntoParallelIterator,ParallelIterator};
|
||||
|
||||
// structure of public parameters
|
||||
#[allow(non_snake_case)]
|
||||
|
||||
@@ -13,6 +13,8 @@ use ark_poly::{
|
||||
use ark_poly_commit::kzg10::*;
|
||||
use ark_std::{cfg_into_iter, One, Zero};
|
||||
use ark_std::{rand::RngCore, UniformRand};
|
||||
#[cfg(feature = "parallel")]
|
||||
use rayon::iter::{IntoParallelIterator,ParallelIterator};
|
||||
|
||||
// prover public parameters structure for caulk_single_unity_prove
|
||||
#[allow(non_snake_case)]
|
||||
@@ -79,7 +81,7 @@ pub fn caulk_single_unity_prove<E: PairingEngine, R: RngCore>(
|
||||
let z: DensePolynomial<E::Fr> = pp.domain_Vn.vanishing_polynomial().into();
|
||||
|
||||
// computing [ (a/b), (a/b)^2, (a/b)^4, ..., (a/b)^(2^logN) = (a/b)^n ]
|
||||
let mut a_div_b = *a * ((*b).inverse()).unwrap();
|
||||
let mut a_div_b = *a * (*b).inverse().unwrap();
|
||||
let mut vec_a_div_b: Vec<E::Fr> = Vec::new();
|
||||
for _ in 0..(pp.logN + 1) {
|
||||
vec_a_div_b.push(a_div_b);
|
||||
|
||||
@@ -17,6 +17,8 @@ use blake2s_simd::Params;
|
||||
use rand::{RngCore, SeedableRng};
|
||||
use rand_chacha::ChaChaRng;
|
||||
use std::{error::Error, io, str::FromStr};
|
||||
#[cfg(feature = "parallel")]
|
||||
use rayon::iter::{IntoParallelRefIterator,ParallelIterator};
|
||||
|
||||
// Function for reading inputs from the command line.
|
||||
pub fn read_line<T: FromStr>() -> T
|
||||
|
||||
Reference in New Issue
Block a user