Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: residue test #1

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ version = "0.8.0"
edition = "2021"

[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "katex-header.html" ]
rustdoc-args = ["--html-in-header", "katex-header.html"]

[dependencies]
sp1_precompiles = { git = "https://github.com/succinctlabs/sp1.git", package = "sp1-precompiles" }
crypto-bigint = "0.5.5"
rand = "0.8.5"
num-bigint = "0.4.6"
num-integer = "0.1.46"

[dev-dependencies]
csv = ">= 1.0, < 1.2" # csv 1.2 has MSRV 1.60
Expand All @@ -36,6 +40,7 @@ name = "hash_to_curve"
harness = false
required-features = ["experimental"]


[dependencies.digest]
version = "0.9"
optional = true
Expand Down Expand Up @@ -70,7 +75,8 @@ optional = true
default = ["groups", "pairings", "alloc", "bits"]
bits = ["ff/bits"]
groups = ["group"]
pairings = ["groups", "pairing"]
pairings = ["groups", "pairing", "fast-pairings"]
alloc = ["group/alloc"]
experimental = ["digest"]
nightly = ["subtle/nightly"]
fast-pairings = []
16 changes: 8 additions & 8 deletions benches/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ fn criterion_benchmark(c: &mut Criterion) {
b.iter(|| G2Prepared::from(h))
});
let prep = G2Prepared::from(h);
c.bench_function("miller loop for pairing", move |b| {
b.iter(|| multi_miller_loop(&[(&g, &prep)]))
});
let prep = G2Prepared::from(h);
let r = multi_miller_loop(&[(&g, &prep)]);
c.bench_function("final exponentiation for pairing", move |b| {
b.iter(|| r.final_exponentiation())
});
// c.bench_function("miller loop for pairing", move |b| {
// b.iter(|| multi_miller_loop(&[(&g, &prep)]))
// });
// let prep = G2Prepared::from(h);
// let r = multi_miller_loop(&[(&g, &prep)]);
// c.bench_function("final exponentiation for pairing", move |b| {
// b.iter(|| r.final_exponentiation())
// });
}
// G1Affine
{
Expand Down
3 changes: 0 additions & 3 deletions rust-toolchain.toml

This file was deleted.

Loading