📜 You are viewing the Classic v1.0 Archive. Experience the new interactive version at Werracle v2.0 (Home) →
● Published on arXiv: 2609.30719 [cs.CR, cs.AI, cs.DC] • Production EVM AI Oracle

On-Chain AI Decision Oracle Inside a Single 32-Byte Slot

Derive instant, deterministic, intra-block decision boundaries (noul, choice, score) natively inside EVM bytecode. Zero tensor matrices. 0 Bytes VRAM. ~19.4k gas.

~19,400
EVM Gas per Inference (< $0.0001 on L2)
1,000 / 1,000
Sealed Tests (100.0% Pass Rate)
1 Slot
Single bytes32 EVM Storage Word
< 1 ms
Intra-Block Flash-Loan Defense Latency
40 Theorems
Machine-Certified Lean 4 (0 sorry, 0 axioms)

⚡ Interactive On-Chain Decision Simulator (Q16.16)

Direct browser execution of WerrMath.sol integer fixed-point arithmetic and 16-point Pareto microgrid dynamics matching the EVM bytecode.

Live EVM Node (api.answerr.me) ChainID: 4242
Presets:
-0.7436
+0.1318
50.0x
0.50
Synthesized Byte (noul): 0x2A (42)
Autonomous Action: PERMIT / EXECUTE
Confidence Score: 0.684
Estimated Gas Cost: 19,420 gas ($0.0006)
Live EVM Node (api.answerr.me): Connecting...
16-Point Pareto Micro-Grid along Mandelbrot Boundary ∂ℳ
● High Escape (Safe / Calm) ● Medium (Turbulence) ● Trapped / Low (Hostile MEV)

📊 Architecture Comparison: Werracle vs ZK-ML & Traditional ML

Why procedural fixed-point dynamical systems solve the EVM Von Neumann memory wall where deep neural networks fail.

Evaluation Dimension Traditional ML on EVM ZK-ML (Zero-Knowledge) ⚡ Werracle (This Work)
EVM Gas Cost per Inference > 15,000,000 gas (Exceeds block) ~350,000 gas (Verifier call) ~19,400 gas (< $0.0001)
Inference Latency Cannot execute within block 10 – 300 seconds (Off-chain proof) < 1 millisecond (Intra-Block Reflex)
On-Chain Storage Footprint Gigabytes (Tensor weights) Kilobytes (Verification keys) 32 Bytes (Single bytes32 Slot)
Intra-Block Flash Loan Defense Impossible Impossible (Proof too slow) Native Atomic Revert (Same Tx)
External Prover / Relayer Dependency Required Mandatory Off-Chain Prover Zero External Dependency (Air-Gapped)
Formal Mathematical Verification Empirical / None Circuit Verification Only 40 Lean 4 Theorems (0 sorry)

🧩 The 32-Byte Single Storage Slot Architecture

All decision coordinates, security nonces, and threshold parameters pack into a single bytes32 EVM storage word. A warm SLOAD costs only 100 gas.

Field Bytes Type Example Packed Value Description
c_x 00 – 07 (8B) int64 (Q16.16) -48735 (-0.7436) Real component coordinate along Mandelbrot edge
c_y 08 – 15 (8B) int64 (Q16.16) +8639 (+0.1318) Imaginary component coordinate along Mandelbrot edge
zoom 16 – 23 (8B) uint64 (Q16.16) 3276800 (50.0x) Resolution scaling and boundary sensitivity
nonce 24 – 27 (4B) uint32 1048576 Anti-replay parameter update nonce
threshold 28 – 29 (2B) uint16 (Q0.16) 32768 (0.500) Normalized action trigger threshold
mode 30 (1B) uint8 1 (DeFi Strict) Governance operational policy flag
active 31 (1B) uint8 1 (Active) Emergency circuit-breaker state

🛡️ Atomic Flash-Loan Defense & Uniswap v4 Dynamic Fees

Halts hostile liquidity drainage within the exact same transaction before block finalization.

Simulate Pool Attack

10,000 ETH
450 ETH
1.2%
Borrow / Reserve Ratio: 4.50%
Triage Status: SAFE_RESERVE
Smart Contract Action: EXECUTE_SWAP

Uniswap v4 Dynamic Fee Curve

Werracle calculates real-time volatility without external oracles, adjusting pool LP fees dynamically between 0.05% and 0.50%.

Deep Liquidity / Calm: 0.05% – 0.15% (500–1500 pips)
Normal Trading Volatility: 0.25% – 0.30% (2500–3000 pips)
Elevated Turbulence / MEV: 0.40% – 0.45% (4000–4500 pips)
Extreme Flash Crash: 0.50% (5000 pips MAX_CAP)
View WerracleFeeHook.sol ↗
● NEAR Hackathon 2026 • Tracks: Unstoppable DeFi & AI Security

🛡️ NEAR Protocol Intents & Aurora EVM Guard

Defending cross-chain NEAR Intents and MPC Chain Signatures with intra-block procedural escape reflex gating (< 1ms, ~21k gas).

⚡ Cross-Chain Intent & Chain Signature Verification Engine

Pre-signing reflex triage suppresses toxic MEV and flash loans before target broadcast.
pcworm.near Aurora Testnet: 1313161555
Clean Intent (Swap)
NOUL = 1 (APPROVED)
Volatility: 25 bps • Latency: 12.6 µs • Gas: 21,438
Action: Chain Signature broadcasted to Base/ETH
Predatory Sandwich MEV
NOUL = 0 (VETOED)
Risk: 75.0% • Latency: 13.1 µs • Gas: 21,438
Action: Signature suppressed; 0 funds lost
Agent Autonomous Commerce
NOUL = 1 (APPROVED)
Sub-Cent API Micropayment • Latency: 6.1 µs
Action: Instant agent-to-agent settlement
🟢 Live Verified Deployments on Aurora Testnet (Ethereum on NEAR):
Werracle.sol: 0x4085673F1e45bf26682CA704b2d09C03d1212cd4
Aurora Explorer ↗
WerracleTripodZMod9.sol: 0x1d7Ae9E1dDDA805539d9e225425804Ef8B9caBaF
Aurora Explorer ↗
Test on Aurora Testnet via Foundry Cast:
cast call 0x4085673F1e45bf26682CA704b2d09C03d1212cd4 "owner()(address)" --rpc-url https://testnet.aurora.dev
📄 Read NEAR Architecture Spec View Explorer ↗ NEAR Hackathon 2026 ↗

📄 Solidity Interface & Quickstart

Integrate Werracle into any EVM protocol with 3 lines of Solidity.

forge install pCwOrM/werracle
// SPDX-License-Identifier: BSL-1.1
pragma solidity ^0.8.20;

import "./IWerracle.sol";

contract ProtectedDeFiProtocol {
    IWerracle public immutable werracle;
    
    constructor(address _werracleAddress) {
        werracle = IWerracle(_werracleAddress);
    }

    function executeSensitiveAction(bytes32 inputState) external payable {
        // Instant intra-block AI triage (< 20,000 gas)
        (bool isAllowed, uint256 score) = werracle.decideChoice{value: msg.value}(inputState);
        
        require(isAllowed, "WERRACLE_DEFENSE_REVERT: Hostile pattern detected");
        
        // Proceed with protected DeFi operation
    }
}

Live Deployed Contracts on Werracle Devnet

Chain ID: 4242 Node: api.answerr.me
WerracleTripodZMod9 (v2.0 Flagship Core - 22.5k Gas)
0x0a95887dBa2783E1E445bB4D3A9a1f7cB3152d04
BlockchainResonanceMatrix (0 SLOAD)
Bytecode Matrix (40 Tokens, 5 Pillars)
Werracle v1.0 Canonical Baseline
0x5FbDB2315678afecb367f032d93F642f64180aa3
WerracleFeeHook (Uniswap v4)
0xdef5Ad647Af159D27cd111007e4CCD1fDE9d4006
🌐 Public RPC: https://api.answerr.me/werracle/rpc ⚡ REST Status: /werracle/status ↗

💎 Protocol Grants & Foundation Wallet

Official receiving address for Ethereum Foundation ESP, Base Ecosystem, NEAR Foundation, Arbitrum, and Web3 VC grants:

Binance Wallet (USDT TRC20 / TRON Network):
TLMhaDJTVYBHBSGJ9nCQGLvqnYFPSBgLJu
Lead Builder: pcworm.near • Corporate Entity: ITOUCH BİLİŞİM SİSTEMLERİ LTD. ŞTİ. (Çukurova Teknokent) • Patent Pending: TR 2026/016285 • Contact: [email protected] • [email protected]
Copied to clipboard!