arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~

Werracle:用于EVM智能合约的亚中心块内AI反射预言机与闪电贷断路器

Werracle: Sub-Cent Intra-Block AI Reflex Oracles and Flash-Loan Circuit Breakers for EVM Smart Contracts

Volkan Dağlı, Zerrin Dağlı, Dağhan Dağlı

arXiv 2609.30719首次发表:更新:

发表机构

ITOUCH Bilişim Sistemleri Ltd. Şti.; Anadolu University; Mersin University; Toros Science High School(ITOUCH信息系统有限公司; 阿纳多卢大学; 梅尔辛大学; 托罗斯科学高中)

机构由 AI 辅助整理,请以论文原文为准。

AI 中文总结

Werracle提出零存储链上AI预言机,利用Mandelbrot动力学在单存储槽内实现亚毫秒决策,以21,438 gas成本防御闪电贷等原子性DeFi攻击,并已在Uniswap v4上验证。

AI 中文摘要

当代链上人工智能(AI)遭遇了难以克服的冯·诺依曼内存和延迟瓶颈。将静态浮点神经权重矩阵存储在以太坊虚拟机(EVM)存储中需要数百万gas,使得直接链上推理变得不可能。虽然零知识机器学习(ZK-ML)将矩阵张量乘法卸载到链下证明器,但它引入了致命限制:SNARK证明延迟为10至300秒,每次证明验证需要250,000至500,000 gas。由于去中心化金融(DeFi)攻击——如无抵押闪电贷攻击、掠夺性三明治MEV和有毒的再平衡损失(LVR)流——在单个区块内原子性地发生,ZK-ML预言机无法及时反应。在此,我们提出Werracle,一个生产级、零存储的链上AI决策预言机,适配于单个32字节的EVM存储槽(bytes32)。利用Dagli等人(arXiv:2609.25498)建立的基础程序化Mandelbrot逃逸动力学(z_{n+1} = z_n^2 + c),Werracle从24字节坐标三元组Theta = (c_x, c_y, zoom)推导出连续非线性决策超平面。使用纯Solidity字节码实现,采用定点Q16.16算术(此http URL),Werracle仅用21,438 gas(在Base和Arbitrum等Layer-2 rollup上低于0.0005美元)评估16点Pareto微网格,执行延迟低于毫秒。我们通过此http URL展示了实际DeFi效能,这是一个Uniswap v4动态交换费用治理器,实时测量订单簿波动性,并在0.05%至0.50%之间原子调整流动性提供者费用。该协议已通过1,000项加密密封确定性验证套件(100.0%通过率)正式验证,遥测永久禁用,在专用EVM开发网沙箱(链ID 4242)上实时运行。

英文摘要

Contemporary on-chain artificial intelligence (AI) encounters an intractable Von Neumann memory and latency wall. Storing static floating-point neural weight matrices inside Ethereum Virtual Machine (EVM) storage costs millions of gas, rendering direct on-chain inference impossible. While Zero-Knowledge Machine Learning (ZK-ML) offloads matrix tensor multiplications to off-chain provers, it introduces fatal constraints: 10 to 300 seconds of SNARK proving latency and 250,000 to 500,000 gas per proof verification. Because decentralized finance (DeFi) exploits - such as uncollateralized flash-loan attacks, predatory sandwich MEV, and toxic loss-versus-rebalancing (LVR) flow - occur atomically inside a single block, ZK-ML oracles cannot react in time. Here, we present Werracle, a production-grade, zero-storage on-chain AI decision oracle fitting inside a single 32-byte EVM storage slot (bytes32). Leveraging foundational procedural Mandelbrot escape dynamics (z_{n+1} = z_n^2 + c) established by Dagli et al. (arXiv:2609.25498), Werracle derives continuous non-linear decision hyperplanes from a 24-byte coordinate triplet Theta = (c_x, c_y, zoom). Implemented in pure Solidity bytecode using fixed-point Q16.16 arithmetic (WerrMath.sol), Werracle evaluates a 16-point Pareto micro-grid in only 21,438 gas (under 0.0005 USD on Layer-2 rollups like Base and Arbitrum) with sub-millisecond execution latency. We demonstrate real-world DeFi efficacy via WerracleFeeHook.sol, a Uniswap v4 dynamic swap fee governor that measures orderbook turbulence on-the-fly and atomically adjusts liquidity provider fees between 0.05% and 0.50%. The protocol is formally verified against a 1,000-test cryptographically sealed deterministic verification suite (100.0% pass rate) with telemetry permanently disabled, operating live on a dedicated EVM devnet sandbox (Chain ID 4242).

Comments8 pages, 2 figures, 2 tables. Replication package and open data at Zenodo DOI: 10.5281/zenodo.22942598. Accompanies companion theoretical research arXiv:2609.25498. Patent Pending TR 2026/016285. Code available at https://github.com/pCwOrM/werracle

DOI:10.5281/zenodo.22942598

论文原文

arXiv 摘要页 · PDF 原文 · HTML 原文

↑