Skip to content

Commit

Permalink
Hydration (#145)
Browse files Browse the repository at this point in the history
* Added DataStore struct to act as an injection point for persistence

* Add IntoKey for Datastore

* Tidy up writer API

* Apply Checkpoint API

* Formatting

* Setup features

* Add hydration

* Tidy up names

* Add Hydration for Sortition

* Add docs

* Update docs

* Formatting

* Update packages/ciphernode/router/src/committee_meta.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Simplify DataStore Api

* Apply first draft of repositories to data storage

* Setup repositries struct for finding repositories

* Formatting and make constructor public

* Enable easy access to repositories

* Formatting

* Refactor test case to add new test

* Add test for hydration

* Formatting

* Remove sleeps

* Add option input to data location

* Add data-location to integration test

* Extract event reader and add shutdown channel

* Tidy up shutdown

* Tidy up shutdown

* Tidy up shutdown

* Formatting

* Move clone down the into stack

* Format

* Remove comment

* Formatting

* Log error

* Avoid cloning

* Add strings as constants

* Sort out strings and references

* Use Cow string as will be utf8

* Add comment

* Remove clone

* update docs

* Add context to sled db error

* Remove clone

* Update comments

* Update types

* Remove unwrap

* Add comment

* Formatting

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: ktdlr <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent c30f1b4 commit 399813d
Show file tree
Hide file tree
Showing 49 changed files with 2,531 additions and 789 deletions.
137 changes: 124 additions & 13 deletions packages/ciphernode/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/ciphernode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ num = "0.4.3"
rand_chacha = "0.3.1"
rand = "0.8.5"
serde = { version = "1.0.208", features = ["derive"] }
sled = "0.34.7"
sha2 = "0.10.8"
tokio = { version = "1.38", features = ["full"] }
tracing = "0.1.37"
Expand Down
3 changes: 3 additions & 0 deletions packages/ciphernode/aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ edition = "2021"
[dependencies]
actix = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
bincode = { workspace = true }
async-trait = { workspace = true }
enclave-core = { path = "../core" }
fhe = { path = "../fhe" }
sortition = { path = "../sortition" }
data = { path = "../data" }
tracing = { workspace = true }
9 changes: 6 additions & 3 deletions packages/ciphernode/aggregator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
mod plaintext_aggregator;
mod publickey_aggregator;

pub use plaintext_aggregator::*;
pub use publickey_aggregator::*;
pub use plaintext_aggregator::{
PlaintextAggregator, PlaintextAggregatorParams, PlaintextAggregatorState,
};
pub use publickey_aggregator::{
PublicKeyAggregator, PublicKeyAggregatorParams, PublicKeyAggregatorState,
};
Loading

0 comments on commit 399813d

Please sign in to comment.