A growing number of products use layer 2 solutions to expand the capabilities of primary blockchains like Ethereum, where computation is off-loaded from the root chain, and the results are published to it in bulk. Those include optimistic and zero-knowledge rollups, information oracles, and app-specific chains. This work presents an analysis of layer 2 blockchain strategies determining the optimal times for publishing transactions on the root chain. There is a trade-off between waiting for a better layer 1 gas price and the urgency to finalize layer 2 transactions. We present a model for the problem that captures this trade-off, generalizing previous works, and we analyze the properties of optimal publishing strategies. We show that such optimal strategies hold a computable simple form for a large class of cost functions.
翻译:越来越多的产品采用二层解决方案来扩展以太坊等主链的功能,将计算任务从根链卸载(off-load)后批量发布结果。这些方案包括乐观与零知识卷叠(rollups)、信息预言机(oracles)以及应用专用链。本研究针对二层区块链策略展开分析,以确定在根链上发布交易的最佳时机。该策略需权衡等待更优的一层(layer 1)Gas 价格与完成二层交易紧迫性之间的关系。我们提出了一个能刻画此权衡的模型,该模型泛化了前人工作,并分析了最优发布策略的性质。结果表明,对于一大类成本函数而言,此类最优策略均具有可计算的简洁形式。