Init.
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user