diff --git a/src/ccs08.rs b/src/ccs08.rs index 78d8564..0d5f3c9 100644 --- a/src/ccs08.rs +++ b/src/ccs08.rs @@ -10,7 +10,7 @@ extern crate rand; use rand::{thread_rng, Rng}; use super::*; use cl::{KeyPair, Signature, PublicParams, setup}; -use ped92::{CSPublicKey, Commitment}; +use ped92::{CSParams, Commitment}; use pairing::{Engine, CurveProjective}; use ff::PrimeField; use std::collections::HashMap; @@ -25,7 +25,7 @@ This must be computed in a trusted setup. struct ParamsUL { pub mpk: PublicParams, pub signatures: HashMap>, - pub com: CSPublicKey, + pub com: CSParams, kp: KeyPair, // u determines the amount of signatures we need in the public params. // Each signature can be compressed to just 1 field element of 256 bits. @@ -85,7 +85,7 @@ order to get smaller parameters, at the cost of having worse performance. signatures.insert(i.to_string(), sig_i); } - let com = CSPublicKey::setup(rng); + let com = CSParams::setup(rng); return ParamsUL { mpk, signatures, com, kp, u, l }; }