From 96570718695bc819b8f8f9b29185bd37636ad59c Mon Sep 17 00:00:00 2001 From: lovesh Date: Thu, 7 Sep 2023 14:02:26 +0530 Subject: [PATCH] Temporary fix in params Signed-off-by: lovesh --- bbs_plus/Cargo.toml | 4 ++-- bbs_plus/src/setup.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bbs_plus/Cargo.toml b/bbs_plus/Cargo.toml index adc504a1..830eb3d1 100644 --- a/bbs_plus/Cargo.toml +++ b/bbs_plus/Cargo.toml @@ -37,6 +37,6 @@ ark-poly.workspace = true [features] default = [ "parallel" ] -std = [ "ark-ff/std", "ark-ec/std", "ark-std/std", "ark-serialize/std", "schnorr_pok/std", "dock_crypto_utils/std", "serde/std", "oblivious_transfer_protocols/std"] +std = [ "ark-ff/std", "ark-ec/std", "ark-std/std", "ark-serialize/std", "schnorr_pok/std", "dock_crypto_utils/std", "serde/std", "oblivious_transfer_protocols/std", "secret_sharing_and_dkg/std"] print-trace = [ "ark-std/print-trace", "schnorr_pok/print-trace", "dock_crypto_utils/print-trace" ] -parallel = [ "std", "ark-ff/parallel", "ark-ec/parallel", "ark-std/parallel", "rayon", "schnorr_pok/parallel", "dock_crypto_utils/parallel", "oblivious_transfer_protocols/parallel"] +parallel = [ "std", "ark-ff/parallel", "ark-ec/parallel", "ark-std/parallel", "rayon", "schnorr_pok/parallel", "dock_crypto_utils/parallel", "oblivious_transfer_protocols/parallel", "secret_sharing_and_dkg/parallel"] diff --git a/bbs_plus/src/setup.rs b/bbs_plus/src/setup.rs index 6bc11524..74a9447a 100644 --- a/bbs_plus/src/setup.rs +++ b/bbs_plus/src/setup.rs @@ -523,12 +523,13 @@ impl SignatureParams23G1 { affine_group_element_from_byte_slices!(label, b" : g1"), affine_group_element_from_byte_slices!(label, b" : g2"), { - let h: Vec<_> = n_projective_group_elements::( - message_count, + let mut h: Vec<_> = n_projective_group_elements::( + 1+message_count, &concat_slices!(label, b" : h_"), ) .collect(); - + // TODO: Fix me by making above point generator accept a range + h.remove(0); E::G1::normalize_batch(&h) } );