fn generate_predicates(pred_num: usize) -> (Vec<Predicate>, Vec<Scalar>) {
    let gens = PedersenGens::default();

    let scalars: Vec<Scalar> = (0..pred_num)
        .into_iter()
        .map(|s| Scalar::from(s as u64))
        .collect();

    let predicates: Vec<Predicate> = scalars
        .iter()
        .map(|s| Predicate::Key((s * gens.B).compress().into()))
        .collect();

    (predicates, scalars)
}
/// Generates the given number of signing key Predicates, returning
/// the Predicates and the secret signing keys.
Generates the given number of signing key Predicates, returning
the Predicates and the secret signing keys.
Generates the given number of signing key Predicates returning the Predicates and the secret signing keys .
fn generate_predicates(pred_num: usize) -> (Vec<Predicate>, Vec<Scalar>) {
    let gens = PedersenGens::default();
    let scalars: Vec<Scalar> = (0..pred_num)
        .into_iter()
        .map(|s| Scalar::from(s as u64))
        .collect();
    let predicates: Vec<Predicate> = scalars
        .iter()
        .map(|s| Predicate::Key((s * gens.B).compress().into()))
        .collect();
    (predicates, scalars)
}
fn generate_predicates ( pred_num : usize ) -> ( Vec < Predicate > , Vec < Scalar > ) { let gens = PedersenGens :: default ( ) ; let scalars : Vec < Scalar > = ( 0 .. pred_num ) . into_iter ( ) . map ( | s | Scalar :: from ( s as u64 ) ) . collect ( ) ; let predicates : Vec < Predicate > = scalars . iter ( ) . map ( | s | Predicate :: Key ( ( s * gens . B ) . compress ( ) . into ( ) ) ) . collect ( ) ; ( predicates , scalars ) }
Generates the given number of signing key Predicates, returning
the Predicates and the secret signing keys.
Generates the given number of signing key Predicates returning the Predicates and the secret signing keys .
pred_num
usize
pred_num
usize