1use crate::pasta::curves::{
2 pallas::{LegacyPallasParameters, PallasParameters},
3 vesta::{LegacyVestaParameters, VestaParameters},
4};
5use ark_ec::short_weierstrass::Affine;
6
7pub trait NamedCurve {
9 const NAME: &'static str;
11}
12
13impl NamedCurve for Affine<VestaParameters> {
14 const NAME: &'static str = "vesta";
15}
16
17impl NamedCurve for Affine<PallasParameters> {
18 const NAME: &'static str = "pallas";
19}
20
21impl NamedCurve for Affine<LegacyVestaParameters> {
22 const NAME: &'static str = "legacy_vesta";
23}
24
25impl NamedCurve for Affine<LegacyPallasParameters> {
26 const NAME: &'static str = "legacy_pallas";
27}
28
29impl NamedCurve for Affine<ark_bn254::g1::Config> {
30 const NAME: &'static str = "bn254";
31}