Skip to content
Snippets Groups Projects
Commit eb6d1677 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add more curves to setup and commit (!155)

## results
![setup](/uploads/4db08ea6e0f34717137b655604381ea7/setup.png)
![commit](/uploads/4542097789129beafc1deb3319da5198/commit.png)
parent 6b9af3df
No related branches found
No related tags found
1 merge request!155add more curves to setup and commit
Pipeline #5619 passed
......@@ -6,8 +6,11 @@ edition = "2021"
[dependencies]
ark-bls12-381 = "0.4.0"
ark-bn254 = "0.4.0"
ark-cp6-782 = "0.4.0"
ark-ec = "0.4.2"
ark-ed-on-mnt4-298 = "0.4.0"
ark-ff = "0.4.2"
ark-mnt4-753 = "0.4.0"
ark-pallas = "0.4.0"
ark-poly = "0.4.0"
ark-poly-commit = "0.4.0"
......
......@@ -115,6 +115,9 @@ enum Curve {
SECP256K1,
SECP256R1,
Vesta,
EDOnMnt4298,
CP6782,
MNT4753,
}
#[derive(Parser)]
......@@ -213,6 +216,33 @@ fn main() {
name = "VESTA"
)
}
Curve::EDOnMnt4298 => {
measure!(
ark_ed_on_mnt4_298,
degrees,
cli.nb_measurements,
G1 = EdwardsProjective,
name = "ED-MNT4-298"
)
}
Curve::CP6782 => {
measure!(
ark_cp6_782,
degrees,
cli.nb_measurements,
G1 = G1Projective,
name = "CP6-782"
)
}
Curve::MNT4753 => {
measure!(
ark_mnt4_753,
degrees,
cli.nb_measurements,
G1 = G1Projective,
name = "MNT4-753"
)
}
}
}
}
......@@ -160,6 +160,9 @@ enum Curve {
BLS12381,
BN254,
Pallas,
EDOnMnt4298,
CP6782,
MNT4753,
ARKBLS12381,
ARKBN254,
}
......@@ -216,6 +219,27 @@ fn main() {
"BLS12-381",
);
}
Curve::EDOnMnt4298 => {
setup::<ark_ed_on_mnt4_298::Fr, ark_ed_on_mnt4_298::EdwardsProjective>(
&cli.degrees,
cli.nb_measurements,
"ED-MNT4-298",
);
}
Curve::CP6782 => {
setup::<ark_cp6_782::Fr, ark_cp6_782::G1Projective>(
&cli.degrees,
cli.nb_measurements,
"CP6-782",
);
}
Curve::MNT4753 => {
setup::<ark_mnt4_753::Fr, ark_mnt4_753::G1Projective>(
&cli.degrees,
cli.nb_measurements,
"MNT4-753",
);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment