-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathCargo.toml
More file actions
71 lines (60 loc) · 2.11 KB
/
Copy pathCargo.toml
File metadata and controls
71 lines (60 loc) · 2.11 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
[package]
name = "qweb3"
version = "1.1.0"
edition = "2021"
rust-version = "1.74"
description = "Official Rust client for Quantova, the post-quantum Layer-1 blockchain (the Rust counterpart of qweb3.js and qweb3.py)."
license = "BUSL-1.1"
repository = "https://github.com/Quantova/qweb3.rs"
homepage = "https://quantova.org"
keywords = ["quantova", "post-quantum", "blockchain", "web3", "sdk"]
categories = ["cryptography::cryptocurrencies", "api-bindings"]
[dependencies]
# JSON-RPC transport
ureq = { version = "2.9", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# hashing / encoding
sha3 = "0.10" # SHA3-256 (chain hash)
tiny-keccak = { version = "2.0", features = ["keccak"] } # keccak-256 (QVM Solidity ABI)
hex = "0.4" # contract/0x addresses + node-form encoding
# error handling
thiserror = "1.0"
# Post-quantum signatures — the EXACT same cores as qweb3.js / @quantova/falcon-wasm
# and the Quantova node (sp-core), so a mnemonic yields a byte-identical address and
# valid signatures across all SDKs. Pure-Rust, no native liboqs, deterministic from
# the seed. Falcon-512 → fn-dsa; Dilithium2/ML-DSA-44 → fips204; SPHINCS+ SHAKE-128s
# → fips205. Keygen is seeded with ChaCha20 (Falcon) / the raw seed (Dilithium) /
# blake2_256-derived components (SPHINCS+), matching the runtime exactly.
fn-dsa = "0.3"
fips204 = "0.4"
fips205 = "0.4"
rand_chacha = "0.3"
rand_core = "0.6"
blake2 = "0.10"
zeroize = "1"
# Mnemonic → 32-byte mini-secret (PBKDF2-HMAC-SHA512 over BIP-39 entropy, matches js).
bip39 = "2.0"
pbkdf2 = "0.12"
hmac = "0.12"
sha2 = "0.10"
[features]
# Post-quantum keygen + signing are ALWAYS available now (pure-Rust, no native libs).
# `pq` is kept as a no-op alias so existing `--features pq` builds keep working.
default = []
pq = []
[[example]]
name = "address"
path = "examples/address.rs"
[[example]]
name = "connect"
path = "examples/connect.rs"
[[example]]
name = "abi_selectors"
path = "examples/abi_selectors.rs"
[[example]]
name = "qns_resolve"
path = "examples/qns_resolve.rs"
[[example]]
name = "transfer"
path = "examples/transfer.rs"