-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
162 lines (135 loc) · 5.34 KB
/
Cargo.toml
File metadata and controls
162 lines (135 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[workspace]
members = [
"crates/types",
"crates/crypto",
"crates/data-chain",
"crates/storage",
"crates/node",
"crates/consensus",
"crates/execution",
"crates/mempool",
"crates/rpc",
"crates/metrics",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["CipherBFT Contributors"]
license = "MIT"
repository = "https://github.com/decipherhub/cipherbft"
[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec", "rt"] }
async-trait = "0.1"
# ABCI & Tendermint types
tendermint = "0.37"
tendermint-proto = "0.37"
# Serialization
prost = "0.12"
bytes = "1.5"
bincode = "1.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Cryptography
ed25519-consensus = "2.1"
sha2 = "0.10"
sha3 = "0.10"
rand = "0.8"
blst = "0.3"
# Memory security (T001)
zeroize = { version = "1.8", features = ["derive", "aarch64"] }
secrecy = { version = "0.10", features = ["serde"] }
# Encrypted storage - EIP-2335 (T002)
scrypt = "0.11"
aes = "0.8"
ctr = "0.9"
cipher = "0.4"
uuid = { version = "1.7", features = ["v4", "serde"] }
# Mnemonic & HD derivation (T003)
bip39 = "2.1"
tiny-bip39 = "1.0"
bip32 = "0.5"
# secp256k1 (EVM keys)
k256 = { version = "0.13", features = ["ecdsa", "sha256"] }
# OS keychain integration - optional (T004)
keyring = "3.6"
# Password input
rpassword = "7.3"
# Collections
bitvec = "1.0"
# Storage
rocksdb = { version = "0.21", default-features = false, features = ["lz4"] }
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0", default-features = false, features = ["mdbx"] }
reth-db-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0" }
reth-codecs = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0", features = ["return-borrowed"] }
# JSON-RPC (T048 - Reth RPC Implementation)
reth-primitives = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0" }
reth-primitives-traits = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0" }
jsonrpsee = { version = "0.24", features = ["server", "client", "macros"] }
tower = { version = "0.5", features = ["full"] }
tower-http = { version = "0.6", features = ["full"] }
dashmap = "6.1"
# Alloy types (v1.x for reth v1.10.0 compatibility)
# IMPORTANT: serde feature required for proper hex serialization in JSON-RPC responses
alloy-primitives = { version = "1", features = ["serde", "rlp"] }
alloy-rlp = { version = "0.3" }
alloy-rpc-types = { version = "1" }
alloy-rpc-types-eth = { version = "1", features = ["serde"] }
alloy-consensus = { version = "1", features = ["serde"] }
# Networking
futures = "0.3"
# Logging & Metrics
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
prometheus = { version = "0.13", default-features = false }
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# CLI
clap = { version = "4.4", features = ["derive"] }
# Testing
proptest = "1.4"
criterion = { version = "0.5", features = ["html_reports"] }
tempfile = "3.8"
# Utilities
hex = "0.4"
toml = "0.8"
chrono = "0.4"
# Actor framework (used by Malachite)
# NOTE: Must match the version used by informalsystems-malachitebft-engine (0.14.x)
# Using different versions causes type incompatibility with HostRef/ActorRef
ractor = "0.14"
# Borsh serialization (used by Malachite codec)
borsh = { version = "1", features = ["derive", "de_strict_order"] }
# Malachite BFT (gated behind the consensus crate's `malachite` feature)
# NOTE: borsh feature enabled for serialization support
informalsystems-malachitebft-app = { version = "0.5", default-features = false }
informalsystems-malachitebft-app-channel = { version = "0.5", default-features = false }
informalsystems-malachitebft-core-consensus = { version = "0.5", default-features = false, features = ["borsh"] }
informalsystems-malachitebft-core-driver = { version = "0.5", default-features = false }
informalsystems-malachitebft-core-types = { version = "0.5", default-features = false, features = ["borsh"] }
informalsystems-malachitebft-engine = { version = "0.5", default-features = false, features = ["borsh"] }
informalsystems-malachitebft-network = { version = "0.5", default-features = false }
informalsystems-malachitebft-config = { version = "0.5", default-features = false }
informalsystems-malachitebft-sync = { version = "0.5", default-features = false, features = ["borsh"] }
informalsystems-malachitebft-signing-ed25519 = { version = "0.5", default-features = false }
informalsystems-malachitebft-codec = { version = "0.5", default-features = false }
informalsystems-malachitebft-metrics = { version = "0.5", default-features = false }
# Patch Malachite crates with sync failure handling and recovery fixes
# - network: Adds proper OutboundFailure handling to notify the sync layer
# when sync requests fail, enabling retries instead of silent timeouts
# - sync: Adds SkipToHeight effect to allow nodes to skip ahead when peers
# have pruned old blocks and cannot serve the required heights
[patch.crates-io]
informalsystems-malachitebft-network = { path = "vendor/malachitebft-network" }
informalsystems-malachitebft-sync = { path = "vendor/malachitebft-sync" }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.bench]
inherits = "release"