arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/ed_on_bls12_381_bandersnatch/src/constraints/curves.rs
ed_on_bls12_381_bandersnatch/src/constraints/curves.rsRaw
 1use ark_r1cs_std::groups::curves::{short_weierstrass::ProjectiveVar, twisted_edwards::AffineVar};
 2
 3use crate::{constraints::FqVar, *};
 4
 5/// A variable that is the R1CS equivalent of `crate::BandersnatchConfig`.
 6pub type EdwardsVar = AffineVar<BandersnatchConfig, FqVar>;
 7
 8/// A variable that is the R1CS equivalent of `crate::SWProjective`
 9pub type SWVar = ProjectiveVar<BandersnatchConfig, FqVar>;
10
11#[test]
12fn test() {
13    ark_curve_constraint_tests::curves::te_test::<_, EdwardsVar>().unwrap();
14    ark_curve_constraint_tests::curves::sw_test::<_, SWVar>().unwrap();
15    ark_curve_constraint_tests::curves::group_test::<_, Fq, EdwardsVar>().unwrap();
16}