- Add SYNOR_BOOTSTRAP_PEERS env var for runtime seed node configuration - Implement secrets provider abstraction for faucet wallet key security (supports file-based secrets in /run/secrets for production) - Create WASM crypto crate foundation for web wallet (Ed25519, BIP-39) - Add DEPLOYMENT.md guide for testnet deployment - Add SECURITY_AUDIT_SCOPE.md for external security audit preparation - Document seed node deployment process in synor-network Security improvements: - Faucet now auto-detects /run/secrets for secure key storage - CORS already defaults to specific origins (https://faucet.synor.cc) - Bootstrap peers now configurable at runtime without recompilation
52 lines
1.1 KiB
TOML
52 lines
1.1 KiB
TOML
[package]
|
|
name = "synor-crypto-wasm"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "WASM-compatible cryptography for Synor web wallet"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
# WASM bindings
|
|
wasm-bindgen = "0.2"
|
|
js-sys = "0.3"
|
|
|
|
# Classical cryptography (pure Rust, WASM compatible)
|
|
ed25519-dalek = { version = "2.1", default-features = false, features = ["rand_core"] }
|
|
rand = { version = "0.8", default-features = false, features = ["std_rng"] }
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
# Hashing (pure Rust)
|
|
sha3 = "0.10"
|
|
blake3 = "1.5"
|
|
|
|
# Key derivation (pure Rust)
|
|
hkdf = "0.12"
|
|
pbkdf2 = { version = "0.12", features = ["simple"] }
|
|
hmac = "0.12"
|
|
|
|
# BIP-39
|
|
bip39 = { package = "tiny-bip39", version = "1.0" }
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde-wasm-bindgen = "0.6"
|
|
|
|
# Utilities
|
|
hex = "0.4"
|
|
zeroize = { version = "1.7", features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
[features]
|
|
default = []
|
|
# Enable when we have WASM-compatible Dilithium
|
|
pqc = []
|
|
|
|
[profile.release]
|
|
# Optimize for size in WASM
|
|
lto = true
|
|
opt-level = "s"
|