## Formal Verification - Add TLA+ specs for UTXO conservation (formal/tla/UTXOConservation.tla) - Add TLA+ specs for GHOSTDAG ordering (formal/tla/GHOSTDAGOrdering.tla) - Add mathematical proof of DAA convergence (formal/proofs/) - Document Kani verification approach (formal/kani/) ## Bug Bounty Program - Add SECURITY.md with vulnerability disclosure process - Add docs/BUG_BOUNTY.md with $500-$100,000 reward tiers - Define scope, rules, and response SLA ## Web Wallet Dilithium3 WASM Integration - Build WASM module via Docker (498KB optimized) - Add wasm-crypto.ts lazy loader for Dilithium3 - Add createHybridSignatureLocal() for full client-side signing - Add createHybridSignatureSmart() for auto-mode selection - Add Dockerfile.wasm and build scripts ## Security Review ($0 Approach) - Add .github/workflows/security.yml CI workflow - Add deny.toml for cargo-deny license/security checks - Add Dockerfile.security for audit container - Add scripts/security-audit.sh for local audits - Configure cargo-audit, cargo-deny, cargo-geiger, gitleaks
16 lines
501 B
Bash
Executable file
16 lines
501 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
DATA_DIR="${SYNOR_DATA_DIR:-/data/synor}"
|
|
NETWORK="${SYNOR_NETWORK:-testnet}"
|
|
GENESIS_MARKER="$DATA_DIR/chainstate/GENESIS"
|
|
|
|
# Initialize node if not already initialized
|
|
if [ ! -f "$GENESIS_MARKER" ]; then
|
|
echo "Initializing Synor node for network: $NETWORK"
|
|
synord --data-dir "$DATA_DIR" --network "$NETWORK" init --network "$NETWORK"
|
|
echo "Node initialized successfully"
|
|
fi
|
|
|
|
# Execute the provided command
|
|
exec synord --data-dir "$DATA_DIR" --network "$NETWORK" "$@"
|