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

添加所有风味:面向dApps和Web3的混合随机数生成器

Adding All Flavors: A Hybrid Random Number Generator for dApps and Web3

University Of Houston(休斯顿大学);Kent State University(肯特州立大学);IoTeX

Ranjith Chodavarapu, Rabimba Karanjai, Xinxin Fan, Weidong Shi, Lei Xu

AI总结:

提出一种混合随机数生成方案,利用TEE物联网设备作为随机源并结合密码学工具聚合,仅需单一诚实源即可保证无偏性,同时降低链上计算复杂度与成本。

摘要:

随机数在许多去中心化应用(dApps)中扮演着至关重要的角色,例如游戏和去中心化金融(DeFi)应用。现有的随机数提供机制大致可分为两类:链上和链下。链上方法通常依赖区块链作为主要输入,且所有计算均由区块链节点完成。这类方法的主要风险在于输入本身容易受到对手的影响。顾名思义,链下方法在生成过程中不涉及区块链节点,并直接将结果分享给dApp。这些机制通常具有较强的安全假设和较高的复杂性。为了缓解这些限制并提供一个允许dApp平衡随机数生成中涉及的不同因素的框架,我们提出了一种混合随机数生成解决方案,该方案利用配备可信执行环境(TEE)的物联网设备作为随机源,随后利用一组密码学工具聚合多个源并获取最终可被dApp消耗的随机数。新方法仅需一个诚实的随机源即可保证最终随机数的无偏性,且用户可配置系统以容忍恶意参与者,这些参与者可能拒绝响应以避免不利结果。我们还提供了一种具体构造,可进一步降低链上计算复杂度,从而在实践中降低该方案的成本。我们评估了计算和gas成本,以证明改进的有效性。

英文摘要:

Random numbers play a vital role in many decentralized applications (dApps), such as gaming and decentralized finance (DeFi) applications. Existing random number provision mechanisms can be roughly divided into two categories, on-chain, and off-chain. On-chain approaches usually rely on the blockchain as the major input and all computations are done by blockchain nodes. The major risk for this type of method is that the input itself is susceptible to the adversary's influence. Off-chain approaches, as the name suggested, complete the generation without the involvement of blockchain nodes and share the result directly with a dApp. These mechanisms usually have a strong security assumption and high complexity. To mitigate these limitations and provide a framework that allows a dApp to balance different factors involved in random number generation, we propose a hybrid random number generation solution that leverages IoT devices equipped with trusted execution environment (TEE) as the randomness sources, and then utilizes a set of cryptographic tools to aggregate the multiple sources and obtain the final random number that can be consumed by the dApp. The new approach only needs one honest random source to guarantee the unbiasedness of the final random number and a user can configure the system to tolerate malicious participants who can refuse to respond to avoid unfavored results. We also provide a concrete construction that can further reduce the on-chain computation complexity to lower the cost of the solution in practice. We evaluate the computation and gas costs to demonstrate the effectiveness of the improvement.

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

↑