| tags | cyber, cip |
|---|---|
| crystal-type | entity |
| crystal-domain | cyber |
| status | draft |
security properties and formal guarantees of [[nox]]
SOUNDNESS: Invalid transactions rejected with probability β₯ 1 - 2^(-128)
PRIVACY: Cannot distinguish transactions with same public structure
CONSERVATION: Ξ£(energy) = initial + minted - burned (mathematically enforced)
QUANTUM RESIST: Hash-based security only, ~128-bit post-quantum (Grover limit)
Attack β Defense
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββ
Double Spend β Nullifier set prevents reuse
Inflation β Circuit enforces conservation
Front-Running β Privacy hides transaction contents
Sybil β Focus proportional to stake
DoS β Focus-based metering limits computation
Eclipse β Namespace completeness proofs
Replay β Nonces and nullifiers ensure uniqueness
Forgery β ZK proofs unforgeable without witness
Theorem: nox is Turing-complete. Proof: Construct encoding of arbitrary Turing machine M via patterns 0-4, 9. β
Theorem: nox is confluent. Proof: Orthogonal rewrite system by Huet-Levy (1980). β
Theorem: Cost is identical across all reduction orders and implementations. Proof: By structural induction on formula. β
Theorem:
Theorem: A valid ZK proof implies all circuit constraints are satisfied with probability
Theorem: Same record cannot be spent twice. Proof:
- Each record has unique (nonce, owner_secret) pair
- Nullifier = H(nonce, owner_secret) is deterministic
- Same record β same nullifier
- Nullifier set is append-only
- Transaction rejected if nullifier already in set β
βββββββββββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ
β Operation β Traditional β Blockchain β Database β nox β
β β (RAM model) β (Ethereum) β (SQL/NoSQL) β β
βββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Equality check β O(n) compare β O(n) compare β O(n) compare β O(1) hash β
β Membership proof β O(n) scan β O(log n) MPT β O(log n) indexβ O(logΒ² n) polyβ
β Completeness proof β impossible β impossible β impossible β O(logΒ² n) polyβ
β Computation verify β O(n) re-exec β O(n) re-exec β N/A β O(log n) zhengβ
β Recursive verify β O(n) re-exec β O(n) re-exec β N/A β O(1) composed β
β Privacy + verify β incompatible β incompatible β incompatible β O(1) ZK proof β
βββββββββββββββββββββββΌββββββββββββββββΌββββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Cost determinism β β cache-dep β ~ gas approx β β query-dep β β structural β
β Parallel safety β β explicit β β sequential β β locks β β confluent β
βββββββββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ
see [[cyber/nox]] for the execution model, [[cyber/bbg]] for the ZK privacy architecture, [[zheng]] for proof verification