From e9dee9de16623ff676feae06f6112afd9ab091dd Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Sat, 17 Jun 2017 20:53:26 -0600 Subject: [PATCH] Move `domain` to `curves`. --- src/{groth16 => curves}/domain.rs | 2 +- src/curves/mod.rs | 1 + src/groth16/mod.rs | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) rename src/{groth16 => curves}/domain.rs (99%) diff --git a/src/groth16/domain.rs b/src/curves/domain.rs similarity index 99% rename from src/groth16/domain.rs rename to src/curves/domain.rs index c20e164..de0779f 100644 --- a/src/groth16/domain.rs +++ b/src/curves/domain.rs @@ -1,4 +1,4 @@ -use curves::{Engine, Field, SnarkField, PrimeField, Group}; +use super::{Engine, Field, SnarkField, PrimeField, Group}; use crossbeam; use num_cpus; diff --git a/src/curves/mod.rs b/src/curves/mod.rs index c730eee..3768b87 100644 --- a/src/curves/mod.rs +++ b/src/curves/mod.rs @@ -10,6 +10,7 @@ use super::{Cow, Convert}; pub mod bls381; pub mod multiexp; pub mod wnaf; +pub mod domain; pub trait Engine: Sized + Clone + Send + Sync { diff --git a/src/groth16/mod.rs b/src/groth16/mod.rs index 0cdb67c..f7902c9 100644 --- a/src/groth16/mod.rs +++ b/src/groth16/mod.rs @@ -1,8 +1,6 @@ use curves::*; use super::*; -pub mod domain; - pub struct ProvingKey { a_inputs: Vec<>::Affine>, b1_inputs: Vec<>::Affine>,