Random number generation method and device based on blockchain, and storage medium

The invention discloses a random number generation method and device based on blockchain, and a storage medium. The random number generation method comprises the steps: acquiring a plurality of randomnumbers generated by all nodes of a block chain, wherein the random numbers are generated by the nod...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: XIAO XUE, LUO SEN, JIANG MINGRUN, WANG WEIBING, LI ZHAOCHUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a random number generation method and device based on blockchain, and a storage medium. The random number generation method comprises the steps: acquiring a plurality of randomnumbers generated by all nodes of a block chain, wherein the random numbers are generated by the nodes of the block chain through the following steps: responding to the fact that a random number generation request is received, obtaining a timestamp for generating the random number request; randomly generating a random number with a preset digit according to the timestamp; in response to the obtained random number, initiating a transaction request to a smart contract of the blockchain; obtaining at least one target random number from a plurality of random numbers based on the smart contract and the initiation time of the transaction request; and generating a trusted random number based on at least one target random number. Through the random number generation method and device, the randomnumber can be purposefully