Skip to content

Commit

Permalink
serdes PK SK
Browse files Browse the repository at this point in the history
  • Loading branch information
omershlo committed Jun 1, 2020
1 parent 632ebeb commit 2a8fa3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "class_group"
version = "0.4.15"
version = "0.4.16"
authors = ["omershlo <[email protected]>"]
edition = "2018"
links = "libpari"
Expand Down
3 changes: 2 additions & 1 deletion src/primitives/cl_dl_public_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ impl CLGroup {
PK(group_element)
}
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PK(BinaryQF);
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct SK(BigInt);

impl From<SK> for BigInt {
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/polynomial_comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ mod tests {
#[test]
fn test_commit_open() {
// sample coef vector
for _ in 1..15 {
for _ in 1..2 {
let mut coef_vec: Vec<FE> = Vec::new();
let mut i = 0;
while i < 10 {
Expand Down

0 comments on commit 2a8fa3b

Please sign in to comment.