Add template for the compact ecash crate

This commit is contained in:
aniampio
2022-03-21 09:01:12 +00:00
parent 63dd26ca1b
commit d37b63f788
9 changed files with 35 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
[package]
name = "nym-compact-ecash"
version = "0.1.0"
authors = ["Ania Piotrowska <ania@nymtech.net>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bls12_381 = { version = "0.5", default-features = false, features = ["pairings", "alloc", "experimental"] }
[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
+2
View File
@@ -0,0 +1,2 @@
mod proofs;
mod scheme;
+3
View File
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
@@ -0,0 +1,5 @@
pub mod aggregation;
pub mod withdrawal;
pub mod keygen;
pub mod setup;
pub mod spend;
@@ -0,0 +1,12 @@
use bls12_381::{G1Affine, G2Affine};
pub struct Parameters {
/// Generator of the G1 group
g1: G1Affine,
/// Generator of the G2 group
g2: G2Affine,
/// Additional generators of the G1 group
gammas: Vec<G1Affine>,
/// Value of wallet
L: usize,
}