This commit is contained in:
Fritz Schmid
2022-06-15 13:45:56 +02:00
parent efafddbca9
commit a11a92d3d7
2 changed files with 16 additions and 3 deletions
+3 -2
View File
@@ -46,8 +46,9 @@ pub fn hash_gt_to_scalar(elements: &[&Gt]) -> Scalar {
pub fn prepare_messages_to_space(k: usize) -> Vec<Scalar>{
let mut m = Vec::new();
for j in 0..1 << k {
let current_m = Scalar::from_raw([(j + 1) as u64, 0, 0, 0]);
for _j in 0..1 << k {
//let current_m = Scalar::from_raw([(j + 1) as u64, 0, 0, 0]);
let current_m = random_scalar();
m.push(current_m);
}
m