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::BandersnatchParameters`.
6pub type EdwardsVar = AffineVar<BandersnatchParameters, FqVar>;
7
8/// A variable that is the R1CS equivalent of `crate::SWProjective`
9pub type SWVar = ProjectiveVar<BandersnatchParameters, 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}