Skip to content

Commit 1b428a8

Browse files
committed
feat: add the test_vlc_net submodule to demos
1 parent 418af51 commit 1b428a8

File tree

17 files changed

+2642
-65
lines changed

17 files changed

+2642
-65
lines changed

Cargo.toml

+18-1
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,35 @@ members = [
1212
"crates/vrf",
1313
"crates/crypto",
1414
"crates/enclaves",
15+
"crates/gossip",
1516
"crates/types",
1617
"demos/test_conflict",
1718
"demos/coll_tx",
1819
"demos/vlc_dag",
1920
"demos/tee_vlc",
21+
"demos/test_vlc_net",
2022
]
2123

24+
[profile.dev]
25+
opt-level = 1
26+
debug = true
27+
28+
[profile.dev.package."*"]
29+
opt-level = 3
30+
2231
[profile.release]
23-
# debug = true
32+
opt-level = "z"
33+
debug = true
34+
lto = true
2435
strip = true
2536
incremental = true
2637

38+
[profile.bench]
39+
debug = true
40+
41+
[profile.artifact]
42+
inherits = "release"
43+
2744
[dependencies]
2845
anyhow = { version = "1.0.75", features = ["backtrace"] }
2946
async-trait = "0.1.74"

crates/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ The crates folder of Chronos includes core functional code crates and utility li
2525
- This module provides some common utilities of TEE (Trusted Execution Environment) Enclaves.
2626
- For examples: AWS nitro enclave, Mircosoft Azure, Intel SGX, etc.
2727

28+
## [gossip](./gossip/)
29+
30+
- This module provides the Gossip network toolkit for customizing a specified parameter.
31+
- It implements a basic gossip network using libp2p. It currently supports discovery via mdns and bootnodes.
32+
2833
## [crypto](./crypto/)
2934

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

crates/gossip/Cargo.toml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[package]
2+
name = "gossip"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
crypto = { path = "../crypto" }
8+
color-eyre = "0.6.2"
9+
futures = "0.3"
10+
ahash = "0.8"
11+
anyhow = "1.0"
12+
serde = { version = "1.0", features = ["derive"] }
13+
libp2p = { version = "0.54.1", features = [
14+
"gossipsub",
15+
"mdns",
16+
"autonat",
17+
'identify',
18+
"noise",
19+
"kad",
20+
"macros",
21+
"ping",
22+
"tcp",
23+
"tokio",
24+
'upnp',
25+
"yamux",
26+
] }
27+
multiaddr = "0.18"
28+
libp2p-swarm-test = "0.4"
29+
tokio = { version = "1.25.0", features = [
30+
"macros",
31+
"rt-multi-thread",
32+
"signal",
33+
] }
34+
tracing = "0.1"
35+
sha2 = "0.10.8"
36+
37+
[features]
38+
mdns = []

0 commit comments

Comments
 (0)