arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.09593cs.DCcs.CR
收藏

Parent-Hash DAG: 链上注册表的常数时间追加成本分析

Parent-Hash DAG: A Cost Analysis of Constant-Time Append for On-Chain Registries

DeFiMind

Ian C. Moore, Fernando Paredes Garcia

AI总结:

本文形式化分析了父哈希有向无环图(PHDAG)的追加操作为O(1) gas成本,并与增量默克尔树(IMT)对比,实验验证了PHDAG的深度不变性和IMT的线性增长,并实现了无信任的注册表重建。

摘要:

溯源树是锚定在公共区块链上的工件注册的追加有向无环图,最近被引入作为运营商门控溯源基础设施的数据底层。其定义性的数据结构模式是父哈希有向无环图(PHDAG),其中每次追加对先前未触及的槽执行恒定数量的存储写入。这种模式此前未被作为独立原语隔离、用显式常数进行形式化边界分析,或与标准替代方案——增量默克尔树(IMT)进行基准测试。我们将PHDAG追加形式化为gas成本中的O(1),与注册表大小和树深度无关,并为IMT开发了一个随机成本模型,其中每次插入成本是叶子索引上的随机变量,推导出其均值和方差的闭式表达式。我们在Base Sepolia上对树深度1到25进行了实证验证。观察到PHDAG在76,276 gas(标准差约6 gas)下深度不变,而IMT成本随深度线性增长。IMT更便宜的交叉点远低于每个调查的生产注册表的深度。我们进一步建立了从公共事件日志中以线性时间进行无信任注册表重建,且无链下依赖。

英文摘要:

Provenance trees are append-only directed acyclic graphs of artifact registrations anchored on a public blockchain, recently introduced as the data substrate of operator-gated provenance infrastructure. Their defining data-structural pattern is a parent-hash directed acyclic graph (PHDAG), in which each append performs a constant number of storage writes to previously-untouched slots. This pattern has not previously been isolated as a standalone primitive, formally bounded with explicit constants, or benchmarked against the standard alternative, the incremental Merkle tree (IMT). We formalize PHDAG append as O(1) in gas cost, independent of registry size and tree depth, and develop a stochastic cost model for IMT in which per-insert cost is a random variable over the leaf index, deriving closed-form expressions for its mean and variance. We validate both analyses empirically on Base Sepolia across tree depths 1 to 25. PHDAG is observed to be depth-invariant at 76,276 gas (standard deviation about 6 gas), while IMT cost grows linearly with depth. The crossover below which IMT is cheaper falls far beneath the depths of every production registry surveyed. We further establish trustless registry reconstruction from public event logs in linear time with no off-chain dependency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑