An Improved Scheme for Blockchain Oracle Based on Schnorr Signature
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.
blockchain oracleSchnorr signaturethreshold aggregation mechanismverifiable random functionverifiable secret sharing