Comprehensive security architecture. Cryptographic primitives, 8 defense layers, threat model, rate limiting escalation, and MPC treasury protection.
Built on defense in depth. Multiple independent security layers make sure no single failure can compromise the system.
| Primitive | Library | Usage |
|---|---|---|
| Ed25519 | TweetNaCl | Event signatures, quote signing, release verification, node identity, reveal challenges |
| secp256k1 | @noble/secp256k1 | Bitcoin/Ethereum transaction signing, MPC key shares |
| SHA-256 | @noble/hashes | Content hashing, witness seed derivation, challenge derivation, event IDs |
| HMAC-SHA256 | @noble/hashes | Witness selection seeding, deterministic node assignment |
| AES-256-GCM | Node.js crypto | PSBT encryption (authenticated encryption with associated data) |
| Shamir's Secret Sharing | Custom GF(256) | PSBT key shard distribution (3-of-4 threshold) |
Every cryptographic operation uses audited, well-tested libraries. No custom cryptography. Ed25519 via TweetNaCl (the original djb implementation) and hashing via @noble/hashes (audited, zero-dependency).
The protocol treasury uses multi-party computation (MPC) threshold signatures:
What we protect against:
What we rely on:
Layer 1: Protocol Determinism. Every node computes the same truth independently from the same inputs. No coordinator to compromise, no leader to bribe, no authority to coerce. The protocol package has zero external dependencies and produces identical outputs on every node.
Layer 2: Threshold Attestation. Transactions require 2/3 supermajority witness agreement (TX_ATTESTATION events). Compromising a minority of witnesses achieves nothing. The attestation threshold matches the BFT standard used in the MPC treasury.
Layer 3: Proof of Access. Witnesses must prove real-time blockchain RPC access via chain-specific challenges (5 for BTC, 3 for ETH, 3 for SOL). Challenges query unpredictable historical state. Can't fake attestations by copying other nodes' responses.
Layer 4: Pooled Network Fees. The network share of every fee is paid to the chain's reward pool wallet, which is set by governance (rewardPool.recipients) and not by the node handling the sale. If no pool wallet is configured for a chain, the sale is refused. Each epoch the pool is settled by a deterministic calculation over recorded work that any node can recompute. The lottery seed uses a beacon that is only known after the epoch closes, so nobody can choose it.
Layer 5: MPC Treasury. Treasury funds require 67% threshold multi-party signing. No hot wallet to hack, no single key to steal, no admin override. Weekly epoch batching reduces the signing ceremony attack surface.
Layer 6: Release Verification. Client-side hash verification ensures authentic code delivery. The verification path doesn't trust any single server. Manifest hashes are signed with the foundation's Ed25519 key and verifiable by any node.
Layer 7: Rate Limiting with Gossip Propagation. Multi-tier rate limiting with escalating cooldowns and network-wide ban propagation:
| Violation Level | Cooldown | Scope |
|---|---|---|
| First offense | 5 minutes | Local to the receiving node |
| Second offense | 15 minutes | Local to the receiving node |
| Third offense | 60 minutes | Local to the receiving node |
| Fourth offense | 24 hours + gossip ban | Propagated to ALL nodes in the mesh |
At tier 4, the offending client's identifier is gossiped as a ban event. Every node in the network blocks the client without requiring independent detection.
Layer 8: Governance Safeguards. Parameter changes require node consensus through the governance system. During the beta period, the foundation master node (Node-1) retains veto power to prevent premature or malicious parameter changes. All governance actions are signed protocol events visible in the explorer.
The protocol never takes custody of user assets:
All security-relevant events follow the transparency protocol:
All foundation actions (veto, parameter changes, manual interventions) must be signed protocol events gossiped to all nodes and visible in the explorer. The foundation cannot act in secret. Every action is cryptographically attributable and permanently recorded.