计算机工程2024,Vol.50Issue(1):166-173,8.DOI:10.19678/j.issn.1000-3428.0067050
一种基于Schnorr签名的区块链预言机改进方案
An Improved Scheme for Blockchain Oracle Based on Schnorr Signature
摘要
Abstract
Blockchain oracle is a type of middleware that provides trustworthy guarantee for on-chain data,effectively addressing the trust problem of on-and off-chain data transmission.The current oracle scheme suffers from high cost,low fault tolerance,key leakage,data leakage,signature failure,and other problems.To address these problems,an improved blockchain oracle scheme based on Schnorr threshold aggregation signatures is proposed.First,by introducing a verifiable random function to generate verifiable random numbers,the problem of key leakage caused by duplicate or predictable random numbers in the signing process is addressed.Second,the problem of signature failure caused by the mischief of key distributors during the signing process is addressed by introducing verifiable secret sharing technology.The oracle detects whether the key distributor has committed mischief by verifying key fragments,and subsequently sends a message to all oracles when the oracle smart contract receives t verification failures,reaches a consensus on consistency,and restarts the signature.In addition,in the submission data phase,the oracle is allowed to submit only when its identity is verified,preventing data leakage during the signing process.The scheme also sets up an oracle reputation and incentive mechanism to ensure that the more reputable oracles are involved in signing and receiving rewards within a valid time frame.Experimental results demonstrate that the total time consumed by the scheme does not exceed 200 ms and the gas consumption does not exceed 5×105 wei when the number of oracle nodes is 50,the key distributor is evil and the malicious oracle accounts for approximately 50%of all,which can effectively achieve trusted data on the chain.关键词
区块链预言机/Schnorr签名/门限聚合机制/可验证随机函数/可验证秘密分享Key words
blockchain oracle/Schnorr signature/threshold aggregation mechanism/verifiable random function/verifiable secret sharing分类
信息技术与安全科学引用本文复制引用
崔怀勇,张绍华,李超,戴炳荣..一种基于Schnorr签名的区块链预言机改进方案[J].计算机工程,2024,50(1):166-173,8.基金项目
上海市科技创新行动计划(21511101504) (21511101504)
上海科学院关键共性技术攻关计划(SKY2022005). (SKY2022005)