fix(zk): expose compute_crs_params since we need big_d and b_r too

Knowing these two values in addition would allow us to use
PublicParams::from_vec.
This commit is contained in:
Kelong Cong
2024-04-24 16:34:45 +02:00
committed by kc1212
parent 8912e887e3
commit 083c068144

View File

@@ -91,18 +91,7 @@ pub struct PrivateCommit<G: Curve> {
__marker: PhantomData<G>,
}
pub fn compute_crs_len(
d: usize,
k: usize,
b: u64,
_q: u64, // we keep q here to make sure the API is consistent with [crs_gen]
t: u64,
) -> usize {
let (n, _, _) = compute_crs_params(d, k, b, _q, t);
n
}
fn compute_crs_params(
pub fn compute_crs_params(
d: usize,
k: usize,
b: u64,