synor/docs/PLAN
Gulshan Yadav 3041c6d654 feat(crypto-wasm): add deterministic Dilithium3 key derivation and hybrid signatures
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%
2026-01-10 05:34:26 +05:30
..
PHASE0-Foundation Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE1-NodeIntegration Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE2-CLIWallet Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE3-NetworkBootstrap Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE4-SmartContracts Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE5-Governance Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE6-QualityAssurance Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
PHASE7-ProductionReadiness feat(crypto-wasm): add deterministic Dilithium3 key derivation and hybrid signatures 2026-01-10 05:34:26 +05:30
README.md Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
VALIDATION_REPORT.md Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30

Synor Development Plan

Structured milestone documentation for the Synor quantum-secure blockchain

Phase Overview

Phase Name Status Milestones
0 Foundation Complete 2
1 Node Integration Complete 2
2 CLI Wallet Complete 2
3 Network Bootstrap Complete 2
4 Smart Contracts Complete 2
5 Governance Complete 2
6 Quality Assurance Complete 3
7 Production Readiness 🔄 In Progress 3

Directory Structure

docs/PLAN/
├── README.md (this file)
├── PHASE0-Foundation/
│   ├── 01-Milestone-01-CoreTypes.md
│   └── 01-Milestone-02-Cryptography.md
├── PHASE1-NodeIntegration/
│   ├── 01-Milestone-01-ServiceWiring.md
│   └── 01-Milestone-02-GenesisChain.md
├── PHASE2-CLIWallet/
│   ├── 01-Milestone-01-WalletCrypto.md
│   └── 01-Milestone-02-CLICommands.md
├── PHASE3-NetworkBootstrap/
│   ├── 01-Milestone-01-TestnetDeployment.md
│   └── 01-Milestone-02-NetworkHardening.md
├── PHASE4-SmartContracts/
│   ├── 01-Milestone-01-ContractSDK.md
│   └── 01-Milestone-02-ContractTooling.md
├── PHASE5-Governance/
│   ├── 01-Milestone-01-DAOLaunch.md
│   └── 01-Milestone-02-GovernanceFeatures.md
├── PHASE6-QualityAssurance/
│   ├── 01-Milestone-01-Benchmarks.md
│   ├── 01-Milestone-02-Testing.md
│   └── 01-Milestone-03-Optimization.md
├── PHASE7-ProductionReadiness/
│   ├── 01-Milestone-01-Security.md
│   ├── 01-Milestone-02-MainnetLaunch.md
│   └── 01-Milestone-03-Ecosystem.md

Validation Strategy

Each milestone includes:

  • Tasks: Specific implementation requirements
  • Files: Source files to create/modify
  • Validation Commands: Commands to verify implementation
  • Validation Agents: Automated agents for code review
  • Security Checks: Security-specific validations
  • Compliance: Regulatory compliance requirements

Running Validations

# Run all unit tests
cargo test --workspace

# Run integration tests
cargo test --workspace --test '*'

# Run benchmarks
cargo bench --workspace

# Security audit with cargo-audit
cargo audit

# Code coverage
cargo tarpaulin --workspace --out Html

# Lint with clippy
cargo clippy --workspace -- -D warnings

Agent-Based Validation

Agent Purpose Trigger
code-reviewer Code quality and patterns After milestone completion
silent-failure-hunter Error handling validation After error-related changes
pr-test-analyzer Test coverage analysis Before PR merge
type-design-analyzer Type system validation After type changes

Last updated: January 7, 2026