Skip to content

Commit

Permalink
feat: add the test_vlc_net submodule to demos
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-chen2050 committed Sep 24, 2024
1 parent f37ca6b commit ebeaca1
Show file tree
Hide file tree
Showing 13 changed files with 930 additions and 44 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ members = [
"crates/vrf",
"crates/crypto",
"crates/enclaves",
"crates/gossip",
"crates/types",
"demos/test_conflict",
"demos/coll_tx",
"demos/vlc_dag",
"demos/tee_vlc",
"demos/test_vlc_net",
]

[profile.release]
Expand Down
5 changes: 5 additions & 0 deletions crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ The crates folder of Chronos includes core functional code crates and utility li
- This module provides some common utilities of TEE (Trusted Execution Environment) Enclaves.
- For examples: AWS nitro enclave, Mircosoft Azure, Intel SGX, etc.

## [gossip](./gossip/)

- This module provides the Gossip network toolkit for customizing a specified parameter.
- It implements a basic gossip network using libp2p. It currently supports discovery via mdns and bootnodes.

## [crypto](./crypto/)

- Some common crypto utilities, signatures, verify, and hash functions for elliptic curve.
Expand Down
14 changes: 14 additions & 0 deletions crates/gossip/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "gossip"
version = "0.1.0"
edition = "2021"

[dependencies]
color-eyre = "0.6.2"
futures = "0.3"
libp2p = { version = "0.54.1", features = ["gossipsub", "mdns", "noise", "macros", "ping", "tcp", "tokio", "yamux"] }
tokio = { version = "1.25.0", features = ["macros", "rt-multi-thread", "signal"] }
tracing = "0.1"

[features]
mdns = []
1 change: 1 addition & 0 deletions crates/gossip/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod network;
Loading

0 comments on commit ebeaca1

Please sign in to comment.