Skip to content

Commit

Permalink
Merge branch 'main' into client-server-api
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Feb 15, 2023
2 parents aa39d7a + 6022f00 commit 2539dfc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion ferveo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ name = "benchmarks"
path = "benches/bench_main.rs"
harness = false


[profile.release]
opt-level = 3
lto = true
1 change: 0 additions & 1 deletion ferveo/benches/benchmarks/pvdkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pub fn setup_dkg(
tau: 0,
security_threshold: shares_num / 3,
shares_num,
retry_after: 2,
},
&me,
keypairs[validator],
Expand Down
6 changes: 6 additions & 0 deletions ferveo/src/dkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ pub struct Params {
pub shares_num: u32,
}

#[derive(Clone, Debug, Eq, PartialEq)]
pub enum PvssScheduler {
Wait,
Issue,
}

#[derive(Debug, Clone)]
pub enum DkgState<E: PairingEngine> {
Sharing { accumulated_shares: u32, block: u32 },
Expand Down
3 changes: 3 additions & 0 deletions tpke/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ readme = "README.md"
bench = false

[features]
default = ["api", "serialization"]
test-common = []
api = []
serialization = []

[dependencies]
hex = "=0.4.3"
Expand Down
4 changes: 3 additions & 1 deletion tpke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ pub use hash_to_curve::*;
pub use key_share::*;
pub use refresh::*;

// TODO: Turn into a crate features
#[cfg(feature = "api")]
pub mod api;

#[cfg(feature = "serialization")]
pub mod serialization;

#[derive(Debug, Error)]
Expand Down

0 comments on commit 2539dfc

Please sign in to comment.