-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
110 lines (88 loc) · 3.49 KB
/
Cargo.toml
File metadata and controls
110 lines (88 loc) · 3.49 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
[package]
name = "quantus-cli"
version = "1.3.1"
edition = "2021"
authors = ["Quantus Network"]
license = "Apache-2.0"
description = "Command line interface and library for interacting with the Quantus Network"
homepage = "https://quantus.com"
repository = "https://github.com/Quantus-Network/quantus-cli"
keywords = ["blockchain", "cli", "crypto", "quantum", "quantus-network"]
categories = ["api-bindings", "command-line-utilities", "cryptography"]
readme = "README.md"
[lib]
name = "quantus_cli"
path = "src/lib.rs"
[[bin]]
name = "quantus"
path = "src/main.rs"
[dependencies]
# CLI and async runtime
clap = { version = "4.5", features = ["derive"] }
tokio = { version = "1.46", features = ["full"] }
# Serialization and configuration
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
# Error handling
thiserror = "2.0"
# Terminal UI
colored = "3.0"
indicatif = "0.17"
# Additional utilities
sha2 = "0.10"
hex = "0.4"
chrono = { version = "0.4", features = ["serde"] }
dirs = "6.0"
rpassword = "7.4"
# Quantum-Safe Encryption
argon2 = "0.5" # Password-based key derivation (quantum-safe)
rand = "0.9"
aes-gcm = "0.10" # AES-256-GCM (quantum-safe with 256-bit keys)
# Quantus crypto dependencies (aligned with chain)
qp-rusty-crystals-dilithium = { version = "2.4.0" }
qp-rusty-crystals-hdwallet = { version = "2.3.1" }
qp-dilithium-crypto = { version = "0.3.1", features = ["serde"] }
qp-poseidon = { version = "1.4.0" }
# HTTP client for Subsquid queries
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
blake3 = "1.8"
# Force patched version of bytes (RUSTSEC-2026-0007)
bytes = "1.11.1"
# Force patched version of quinn-proto (RUSTSEC-2026-0037)
quinn-proto = "0.11.14"
# Force patched version of rustls-webpki (RUSTSEC-2026-0098, RUSTSEC-2026-0099)
rustls-webpki = "0.103.12"
# Blockchain deps: align with chain workspace; use chain primitives for qp-dilithium-crypto so sp-* versions match
codec = { package = "parity-scale-codec", version = "3.7", features = ["derive"] }
sp-core = { version = "39.0.0" }
sp-runtime = { version = "45.0.0" }
jsonrpsee = { version = "0.24", features = ["client"] }
# Subxt: latest 0.44.x (bug fixes; compatible with sp-core 39 / scale-codec 3.6)
subxt = "0.44"
subxt-metadata = "0.44"
# ZK proof generation (aligned with chain)
anyhow = "1.0"
qp-plonky2 = { version = "1.4.1", default-features = false, features = ["rand", "std"] }
qp-wormhole-circuit = { version = "2.0.1", default-features = false, features = ["std"] }
qp-wormhole-prover = { version = "2.0.1", default-features = false, features = ["std"] }
qp-wormhole-verifier = { version = "2.0.1", default-features = false, features = ["std"] }
qp-wormhole-aggregator = { version = "2.0.1", default-features = false, features = ["rayon", "std"] }
qp-wormhole-inputs = { version = "2.0.1", default-features = false, features = ["std"] }
qp-zk-circuits-common = { version = "2.0.1", default-features = false, features = ["std"] }
qp-wormhole-circuit-builder = { version = "2.0.1" }
[build-dependencies]
hex = "0.4"
qp-poseidon-core = "1.4.0"
qp-wormhole-circuit-builder = { version = "2.0.1" }
[dev-dependencies]
tempfile = "3.8.1"
serial_test = "3.1"
qp-poseidon-core = "1.4.0"
# Optimize build scripts and their dependencies in dev mode.
# This is critical for circuit generation which is CPU-intensive.
# Without this, circuit generation takes ~10 minutes instead of ~30 seconds.
[profile.dev.build-override]
opt-level = 3
[profile.release.build-override]
opt-level = 3