diff --git a/Cargo.toml b/Cargo.toml index 1844ec6..9525ba3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ members = [ "secp256r1", "secp384r1", "secq256k1", - + "curve25519", "ed25519", ] diff --git a/secp256k1/Cargo.toml b/secp256k1/Cargo.toml index f1765f2..3cbbb42 100644 --- a/secp256k1/Cargo.toml +++ b/secp256k1/Cargo.toml @@ -22,9 +22,15 @@ ark-std = { version = "0.4.0", default-features = false } ark-relations = { version = "0.4.0", default-features = false } ark-serialize = { version = "0.4.0", default-features = false } ark-algebra-test-templates = { version = "0.4.0", default-features = false } +ark-algebra-bench-templates = { version = "0.4.0", default-features = false } ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false } [features] default = [] std = [ "ark-std/std", "ark-ff/std", "ark-ec/std" ] r1cs = [ "ark-r1cs-std" ] + +[[bench]] +name = "secp256k1" +path = "benches/secp256k1.rs" +harness = false \ No newline at end of file diff --git a/secp256k1/benches/secp256k1.rs b/secp256k1/benches/secp256k1.rs new file mode 100644 index 0000000..865d95d --- /dev/null +++ b/secp256k1/benches/secp256k1.rs @@ -0,0 +1,9 @@ +use ark_algebra_bench_templates::*; +use ark_secp256k1::{fq::Fq, fr::Fr, Projective as G}; + +bench!( + Name = "Secp256k1", + Group = G, + ScalarField = Fr, + PrimeBaseField = Fq, +); \ No newline at end of file