-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
298 lines (266 loc) · 11.2 KB
/
Copy pathCargo.toml
File metadata and controls
298 lines (266 loc) · 11.2 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
#|======================================================================================================================|
#| |
#| ▄▄▄▄ ██▓▄▄▄█████▓ ▄████▄ ▒█████ ██▓ ███▄ █ ▄████ ██░ ██ ▒█████ ██████ ▄▄▄█████▓ ▄████████▄ |
#| ▓█████▄ ▓██▒▓ ██▒ ▓▒▒██▀ ▀█ ▒██▒ ██▒▓██▒ ██ ▀█ █ ██▒ ▀█▒▓██░ ██▒▒██▒ ██▒▒██ ▒ ▓ ██▒ ▓▒ ███▀██▀███ |
#| ▒██▒ ▄██▒██▒▒ ▓██░ ▒░▒▓█ ▄ ▒██░ ██▒▒██▒▓██ ▀█ ██▒ ▒██░▄▄▄░▒██▀▀██░▒██░ ██▒░ ▓██▄ ▒ ▓██░ ▒░ ██████████░ |
#| ▒██░█▀ ░██░░ ▓██▓ ░ ▒▓▓▄ ▄██▒▒██ ██░░██░▓██▒ ▐▌██▒ ░▓█ ██▓░▓█ ░██ ▒██ ██░ ▒ ██▒░ ▓██▓ ░ ██████████░░▒ |
#| ░▓█ ▀█▓░██░ ▒██▒ ░ ▒ ▓███▀ ░░ ████▓▒░░██░▒██░ ▓██░ ░▒▓███▀▒░▓█▒░██▓░ ████▓▒░▒██████▒▒ ▒██▒ ░ ██▀▀██▀▀██░▒ |
#| ░▒▓███▀▒░▓ ▒ ░░ ░ ░▒ ▒ ░░ ▒░▒░▒░ ░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒ ░░▒░▒░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░ ▒ ░░ ▒ ░░▒░▒ ░░▒░ |
#| ▒░▒ ░ ▒ ░ ░ ░ ▒ ░ ▒ ▒░ ▒ ░░ ░░ ░ ▒░ ░ ░ ▒ ░▒░ ░ ░ ▒ ▒░ ░ ░▒ ░ ░ ░ ▒ ░░▒░▒░ ░ |
#| ░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ |
#| ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ |
#| ░ ░ |
#|----------------------------------------------------------------------------------------------------------------------|
#| < B I T C O I N G H O S T > < D E F E N W Y C K E > < R E A D T H E W H I T E P A P E R > |
#|----------------------------------------------------------------------------------------------------------------------|
#| PROJECT: Bitcoin Ghost |
#| REPO: https://github.com/bitcoin-ghost |
#| WEB: https://bitcoinghost.org/ |
#| LICENSE: MIT |
#| FILE: Cargo.toml |
#|======================================================================================================================|
[workspace]
resolver = "2"
members = [
# Core libraries
"crates/ghost-build-info",
"crates/ghost-common",
"crates/ghost-buds",
"crates/ghost-reaper",
"crates/ghost-policy",
"crates/ghost-storage",
"crates/ghost-consensus",
"crates/ghost-accounting",
"crates/ghost-verification",
# Ghost Pay L2
"crates/ghost-keys",
"crates/ghost-lock",
"bins/ghost-lock-signer",
"crates/ghost-entropy",
"crates/wraith-protocol",
"crates/ghost-reconciliation",
# ZK-BFT Infrastructure
"crates/ghost-zkp",
"crates/ghost-mpc",
# Cross-process MPC ceremony contribution harness (test-only, feature-gated)
"crates/mpc-xproc-harness",
# Visual Identity
"crates/ghost-glyph",
# GSP
# Node Binaries
"bins/ghost-pool",
"bins/ghost-stats",
"bins/ghost-cli",
# Wraith coordinator (Wraith Lite v1, single-round atomic CoinJoin)
"bins/wraith-coordinator",
# Decentralised mining-discovery shim (miner-side; verifies the signed node-list checkpoint)
"bins/ghost-miner-proxy",
# Headless setup CLI
"bins/ghost-setup",
# Mobile Apps
"apps/ghost-tap/core",
"apps/ghost-tap/tests/integration",
"apps/ghost-tap/desktop/src-tauri",
# Wraith Wallet (desktop)
"apps/wraith-wallet/core",
"apps/wraith-wallet/ipc",
"apps/wraith-wallet/daemon",
"apps/wraith-wallet/cli",
"apps/wraith-wallet/gui/src-tauri",
# SV2 apps (amalgamated from the former sv2-apps submodule)
"bins/translator-sv2",
"bins/pool-sv2",
"bins/jd-client-sv2",
"bins/jd-server-sv2",
"crates/stratum-apps",
"crates/bitcoin-core-sv2",
"tests/integration-sv2",
]
# Vendored stratum-core (SV2 protocol libs), copied in-tree from
# stratum-mining/stratum @ ab5b17f (dual MIT/Apache — LICENSEs retained) so the
# monorepo is self-contained and forkable in place. It keeps its OWN [workspace]
# (its own dependency versions), so it is EXCLUDED from ours; the SV2 crates depend
# on it by path (vendor/stratum/stratum-core).
exclude = ["vendor/stratum"]
# NOTE: Full Node Wallets (ghost-wallet-cli, ghost-wallet-tui) are built from
# the bitcoin-ghost repository since they require ghostd and ghost-crypto.
# Use scripts/build-all-wallets.sh to build all wallet types.
[workspace.package]
version = "1.11.43"
edition = "2021"
rust-version = "1.88"
authors = ["Bitcoin Ghost Team"]
license = "MIT"
repository = "https://github.com/bitcoin-ghost/ghost"
[workspace.dependencies]
# Internal crates
ghost-build-info = { path = "crates/ghost-build-info" }
ghost-common = { path = "crates/ghost-common" }
ghost-buds = { path = "crates/ghost-buds" }
ghost-reaper = { path = "crates/ghost-reaper" }
ghost-policy = { path = "crates/ghost-policy" }
ghost-storage = { path = "crates/ghost-storage" }
ghost-consensus = { path = "crates/ghost-consensus" }
ghost-accounting = { path = "crates/ghost-accounting" }
ghost-pool = { path = "bins/ghost-pool" }
ghost-verification = { path = "crates/ghost-verification" }
# Ghost Pay L2 crates
ghost-keys = { path = "crates/ghost-keys" }
ghost-entropy = { path = "crates/ghost-entropy" }
ghost-lock = { path = "crates/ghost-lock" }
wraith-protocol = { path = "crates/wraith-protocol" }
wraith-coordinator = { path = "bins/wraith-coordinator" }
ghost-reconciliation = { path = "crates/ghost-reconciliation" }
# ZK-BFT Infrastructure
ghost-zkp = { path = "crates/ghost-zkp" }
ghost-mpc = { path = "crates/ghost-mpc" }
ghost-glyph = { path = "crates/ghost-glyph" }
# GSP crates
# Mobile Apps
ghost-tap-core = { path = "apps/ghost-tap/core" }
# Wraith Wallet
wraith-wallet-core = { path = "apps/wraith-wallet/core" }
wraith-wallet-ipc = { path = "apps/wraith-wallet/ipc" }
# Async runtime
tokio = { version = "1.36", features = ["full"] }
# Cross-platform local IPC: Unix-domain sockets on unix, named pipes on Windows,
# behind one API. Powers the wraithd <-> CLI/GUI transport.
interprocess = { version = "2.2", features = ["tokio"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
# Bitcoin
bitcoin = { version = "0.32", features = ["serde"] }
# BIP-322 generic message signing/verification, from the rust-bitcoin org.
# Pinned: 0.0.x, and it tracks `bitcoin` closely.
bip322 = "0.0.11"
# Cryptography
ed25519-dalek = { version = "2.1", features = ["serde", "rand_core"] }
sha2 = "0.10"
hmac = "0.12"
hkdf = "0.12"
rand = "0.8"
hex = "0.4"
# Database
rusqlite = { version = "0.31", features = ["bundled-sqlcipher"] }
# Caching
lru = "0.12"
# Networking
tmq = "0.5"
axum = { version = "0.7", features = ["ws"] }
http = "1.1"
reqwest = { version = "0.12", features = ["json", "rustls-tls"] }
tower = { version = "0.4", features = ["limit", "timeout"] }
tower-http = { version = "0.5", features = ["cors", "trace", "limit", "timeout"] }
tower_governor = "0.4"
governor = "0.6"
hyper-util = { version = "0.1", features = ["tokio"] }
# TLS (CRIT-API-1)
tokio-rustls = "0.26"
rustls = { version = "0.23", features = ["aws_lc_rs"] }
rustls-pki-types = { version = "1.14", features = ["std"] }
rcgen = "0.13"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Utilities
bytes = "1.11.1"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.7", features = ["v4"] }
parking_lot = "0.12"
once_cell = "1.19"
async-trait = "0.1"
futures = "0.3"
base64 = "0.22"
# Cryptography
snow = "0.9"
aes-gcm = "0.10"
getrandom = "0.2"
scrypt = "0.11"
argon2 = "0.5"
# BIP standards
bip39 = "2.0"
bip32 = "0.5"
secp256k1 = { version = "0.29", features = ["rand", "global-context", "serde"] }
# JWT
jsonwebtoken = "9.0"
# WebSocket
tokio-tungstenite = { version = "0.21", features = ["native-tls"] }
futures-util = "0.3"
# Config
config = "0.14"
clap = { version = "4.5", features = ["derive", "env"] }
# TUI
ratatui = "0.30"
crossterm = "0.29"
# Additional crypto
k256 = { version = "0.13", features = ["ecdsa"] }
bellperson = "0.26"
blstrs = "0.7"
chacha20poly1305 = "0.10"
zeroize = { version = "1.7", features = ["derive"] }
subtle = "2.5"
ripemd = "0.1"
x25519-dalek = { version = "2.0", features = ["static_secrets"] }
secrecy = "0.8"
# HTTP
hyper = { version = "1.0", features = ["full"] }
# Unix-specific
libc = "0.2"
# Dev dependencies
tokio-test = "0.4"
proptest = "1.4"
# Encoding
bech32 = "0.11"
bs58 = "0.5"
# FFI
uniffi = "0.27"
# Workspace-level package for integration tests
[package]
name = "bitcoin-ghost-tests"
version.workspace = true
edition.workspace = true
publish = false
[dependencies]
# Internal crates for testing
ghost-common = { workspace = true }
ghost-buds = { workspace = true }
ghost-policy = { workspace = true }
ghost-consensus = { workspace = true, features = ["test-utils", "zk-consensus"] }
ghost-pool = { workspace = true }
ghost-keys = { workspace = true }
ghost-reconciliation = { workspace = true }
ghost-storage = { workspace = true }
ghost-zkp = { workspace = true }
# Test dependencies
tokio = { workspace = true }
parking_lot = { workspace = true }
rand = { workspace = true }
bitcoin = { workspace = true }
tempfile = "3.10"
hex = { workspace = true }
serde_json = { workspace = true }
chrono = { workspace = true }
rusqlite = { workspace = true }
sha2 = { workspace = true }
reqwest = { workspace = true }
tokio-tungstenite = { workspace = true }
futures-util = { workspace = true }
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "load_tests"
path = "tests/load_tests.rs"
[[test]]
name = "cluster_chaos"
path = "tests/cluster_chaos.rs"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
strip = true