fn fixed_base_generators() -> Vec<jubjub::SubgroupPoint> {
    let fixed_base_generators = vec![
        find_group_hash(
            PERSONALISATION_COMM_CRED,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
        find_group_hash(
            PERSONALISATION_COMM_NOTE,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
        find_group_hash(
            PERSONALISATION_COMM_MEM,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
    ];

    // Check for duplicates, far worse than spec inconsistencies!
    for (i, p1) in fixed_base_generators.iter().enumerate() {
        if p1.is_identity().into() {
            panic!("Neutral element!");
        }

        for p2 in fixed_base_generators.iter().skip(i + 1) {
            if p1 == p2 {
                panic!("Duplicate generator!");
            }
        }
    }
    fixed_base_generators
}
/// Generate the fixed base generators.
Generate the fixed base generators.
Generate the fixed base generators .
fn fixed_base_generators() -> Vec<jubjub::SubgroupPoint> {
    let fixed_base_generators = vec![
        find_group_hash(
            PERSONALISATION_COMM_CRED,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
        find_group_hash(
            PERSONALISATION_COMM_NOTE,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
        find_group_hash(
            PERSONALISATION_COMM_MEM,
            PERSONALISATION_PEDERSEN_HASH_GENERATORS,
        ),
    ];
    // Check for duplicates, far worse than spec inconsistencies!
    for (i, p1) in fixed_base_generators.iter().enumerate() {
        if p1.is_identity().into() {
            panic!("Neutral element!");
        }
        for p2 in fixed_base_generators.iter().skip(i + 1) {
            if p1 == p2 {
                panic!("Duplicate generator!");
            }
        }
    }
    fixed_base_generators
}
fn fixed_base_generators ( ) -> Vec < jubjub :: SubgroupPoint > { let fixed_base_generators = vec ! [ find_group_hash ( PERSONALISATION_COMM_CRED PERSONALISATION_PEDERSEN_HASH_GENERATORS ) find_group_hash ( PERSONALISATION_COMM_NOTE PERSONALISATION_PEDERSEN_HASH_GENERATORS ) find_group_hash ( PERSONALISATION_COMM_MEM PERSONALISATION_PEDERSEN_HASH_GENERATORS ) ] ; // Check for duplicates, far worse than spec inconsistencies! for ( i , p1 ) in fixed_base_generators . iter ( ) . enumerate ( ) { if p1 . is_identity ( ) . into ( ) { panic ! ( " " ) ; } for p2 in fixed_base_generators . iter ( ) . skip ( i + 1 ) { if p1 == p2 { panic ! ( " " ) ; } } } fixed_base_generators }
Generate the fixed base generators.
Generate the fixed base generators .