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 Oct 28, 2024
1 parent 418af51 commit 1a7db5d
Show file tree
Hide file tree
Showing 18 changed files with 3,083 additions and 65 deletions.
19 changes: 18 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,35 @@ 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.dev]
opt-level = 1
debug = true

[profile.dev.package."*"]
opt-level = 3

[profile.release]
# debug = true
opt-level = "z"
debug = true
lto = true
strip = true
incremental = true

[profile.bench]
debug = true

[profile.artifact]
inherits = "release"

[dependencies]
anyhow = { version = "1.0.75", features = ["backtrace"] }
async-trait = "0.1.74"
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
38 changes: 38 additions & 0 deletions crates/gossip/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "gossip"
version = "0.1.0"
edition = "2021"

[dependencies]
crypto = { path = "../crypto" }
color-eyre = "0.6.2"
futures = "0.3"
ahash = "0.8"
anyhow = "1.0"
serde = { version = "1.0", features = ["derive"] }
libp2p = { version = "0.54.1", features = [
"gossipsub",
"mdns",
"autonat",
'identify',
"noise",
"kad",
"macros",
"ping",
"tcp",
"tokio",
'upnp',
"yamux",
] }
multiaddr = "0.18"
libp2p-swarm-test = "0.4"
tokio = { version = "1.25.0", features = [
"macros",
"rt-multi-thread",
"signal",
] }
tracing = "0.1"
sha2 = "0.10.8"

[features]
mdns = []
Loading

0 comments on commit 1a7db5d

Please sign in to comment.