c7cdd1e1b4
* add pedersen.rs and first alias type * replace ciphertexts in BlindSignRequest by commitments and adapt try_from * update BlindSignRequest.to_byte_vec * add TODO to issuance.rs * [WIP] update CmCs proof to use commitments * complete ProofCmCs construct implementation * [WIP] ProofCmCs verify * complete ProofCmCs verify implementation * complete ProofCmCs to_bytes implementation * complete ProofCmCs from_bytes implementation * WIP update ProofCmCs roundtrip tests * WIP update prepare_blind_sign * update prepare_blind_sign * WIP update blind_sign * update blind_sign * update BlindedSignature and try_from * update BlindedSignature unblind * update BlindedSignature to_bytes * move elgamal encrypto to elgamal and manage imports * add verification keys for g1 method * upadate tests to work with Pedersen commitments * unused remove pedersen.rs * update error message * fix proof_cm_cs_bytes_roundtrip test * Move generation of commitment openings into prepare blind signature function * Edits * Extende the verification key; remove validator's secret key from the unblind function * Update the unblind function throughout the whole nymcoconut repo * Fix broken tests * Run cargo clippy and fmt * Add benchmark measurements * Add more detailed printouts * Change byte printout * Update benchmarks * add public attributes as part of the commitment * update bytes order comment for ProofCmCs * check proof_cm_cs_bytes_roundtrip test and remove TODO * remove irrelevant prints in blind signature tests * remove inappropriate function to get betas_g1 * remove irrelevant prints in verification * Remove print statement and add additional checks on the verification key * Run clippy * Fix coconut call in validator-api * Update dependend packages * Update the input to the obtain partial credential function * Fix the verification key bytes calculation * Run cargo fmt on keygen.rs * Run cargo fmt for validator-api * Run cargo fmt for credentials * Replace concat with chain * Remove unneccessary mut * Run cargo fmt * fix type conversion Co-authored-by: aniampio <anna.piotrowska.15@ucl.ac.uk>
44 lines
958 B
TOML
44 lines
958 B
TOML
[package]
|
|
name = "nymcoconut"
|
|
version = "0.5.0"
|
|
authors = ["Jedrzej Stuczynski <andrew@nymtech.net>", "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"] }
|
|
itertools = "0.10"
|
|
digest = "0.9"
|
|
rand = "0.8"
|
|
thiserror = "1.0"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
bs58 = "0.4.0"
|
|
sha2 = "0.9"
|
|
|
|
[dependencies.ff]
|
|
version = "0.10"
|
|
default-features = false
|
|
|
|
[dependencies.group]
|
|
version = "0.10"
|
|
default-features = false
|
|
|
|
[dev-dependencies]
|
|
criterion = { version="0.3", features=["html_reports"] }
|
|
doc-comment = "0.3"
|
|
|
|
[dev-dependencies.bincode]
|
|
version = "1"
|
|
|
|
[[bench]]
|
|
name = "benchmarks"
|
|
harness = false
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[target.'cfg(target_env = "wasm32-unknown-unknown")'.dependencies]
|
|
getrandom = { version="0.2", features=["js"] }
|