This commit enables full wallet recovery from BIP-39 mnemonics by implementing deterministic Dilithium3 key derivation using HKDF-SHA3-256 with domain separation. Changes: - crates/synor-crypto-wasm: Implement deterministic Dilithium keygen - Use HKDF with info="synor:dilithium:v1" for key derivation - Enable pqc_dilithium's crypto_sign_keypair via dilithium_kat cfg flag - Add proper memory zeroization on drop - Add tests for deterministic key generation - apps/web: Update transaction signing for hybrid signatures - Add signTransactionHybrid() for Ed25519 + Dilithium3 signatures - Add createSendTransactionHybrid() for quantum-resistant transactions - Update fee estimation for larger hybrid signature size (~5.5KB/input) - Maintain legacy Ed25519-only functions for backwards compatibility - WASM module: Rebuild with deterministic keygen - Update synor_crypto_bg.wasm with new implementation - Module size reduced to ~470KB (optimized) - Documentation updates: - Update mobile wallet plan: React Native -> Flutter - Add testnet-first approach note - Update explorer frontend progress to 90%
13 lines
492 B
TOML
13 lines
492 B
TOML
# Cargo configuration for Synor blockchain
|
|
#
|
|
# This file configures the Rust build system with project-specific settings.
|
|
|
|
# Enable pqc_dilithium's internal key generation for deterministic Dilithium keys
|
|
# This allows us to generate Dilithium keypairs from a seed (mnemonic-derived)
|
|
# which is essential for wallet recovery.
|
|
[build]
|
|
rustflags = ["--cfg", "dilithium_kat"]
|
|
|
|
# WASM target-specific settings for web wallet
|
|
[target.wasm32-unknown-unknown]
|
|
rustflags = ["--cfg", "dilithium_kat"]
|