Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some core modules and new features #17

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ members = [
"crates/accumulator",
"crates/vlc",
"crates/cops",
"crates/vrf",
"crates/crypto",
"crates/enclaves",
"crates/types",
"demos/test_conflict",
"demos/coll-tx",
"demos/vlc-dag"
"demos/coll_tx",
"demos/vlc_dag",
"demos/tee_vlc",
]

[profile.release]
Expand All @@ -37,4 +42,3 @@ tokio-util = "0.7.10"
[lib]
name = "chronos"
path = "src/lib.rs"

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 hetu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ The crates folder of Chronos includes core functional code crates and utility li
- The data store maintains a set of key-value pairs.
- It provides causal consistency to clients.

## [enclaves](./enclaves/)

- This module provides some common utilities of TEE (Trusted Execution Environment) Enclaves.
- For examples: AWS nitro enclave, Mircosoft Azure, Intel SGX, etc.

## [crypto](./crypto/)

- Some common crypto utilities, signatures, verify, and hash functions for elliptic curve.

## [vrf](./vrf/)

- This module contains implementations of a [verifiable random function](https://en.wikipedia.org/wiki/Verifiable_random_function), currently only ECVRF.
- VRFs can be used in the consensus protocol for leader election.
21 changes: 21 additions & 0 deletions crates/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "crypto"
version = "0.1.0"
edition = "2021"

[dependencies]
derive_more = "0.99.17"
derive-where = "1.2.7"
bincode = "1.3.3"
serde = { version = "1.0.195", features = ["derive"] }
schnorrkel = { version = "0.11.4", features = ["serde"] }
secp256k1 = { version = "0.29.0", features = ["rand-std", "serde", "recovery"] }
nix = { version = "0.28.0", features = ["socket", "sched", "resource"] }
serde_json = "1.0.114"
sha2 = "0.10.8"
sha3 = "0.10.1"
hex = "0.4.3"
blake2 = "0.10.6"
rand = "0.8.5"
primitive-types = { version = "0.12.2", features = ["serde"] }
anyhow = { version = "1.0.79", features = ["backtrace"] }
Loading
Loading