Skip to content

Commit

Permalink
feat: early persistent storage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyF0uR committed Nov 11, 2024
1 parent 858a09d commit 796bf68
Show file tree
Hide file tree
Showing 14 changed files with 696 additions and 241 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.vscode/
.idea/
.idea/
**/.cesiumdb/
36 changes: 4 additions & 32 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions crates/cesium-crypto/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ pub fn generate_id() -> Vec<u8> {
result
}

pub fn generate_id_slice() -> [u8; PUB_BYTE_LEN] {
let id = generate_id();
id.try_into().unwrap()
}

pub fn generate_id_from_data(data: &[u8]) -> String {
let mut hasher = sha3::Sha3_384::new();
hasher.update(data);
Expand Down
5 changes: 4 additions & 1 deletion crates/cesium-nebula/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ publish = false

[dependencies]
cesium-crypto.workspace = true
cesium-storage.workspace = true
selenide-runtime.workspace = true
once_cell.workspace = true

[dev-dependencies]
tokio.workspace = true
Loading

0 comments on commit 796bf68

Please sign in to comment.