Add template for the compact ecash crate
This commit is contained in:
@@ -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"] }
|
||||
@@ -0,0 +1,2 @@
|
||||
mod proofs;
|
||||
mod scheme;
|
||||
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user