CN109753269A - Random digit generation method, device, equipment and the storage medium of block chain - Google Patents

Random digit generation method, device, equipment and the storage medium of block chain Download PDF

Info

Publication number
CN109753269A
CN109753269A CN201910093971.8A CN201910093971A CN109753269A CN 109753269 A CN109753269 A CN 109753269A CN 201910093971 A CN201910093971 A CN 201910093971A CN 109753269 A CN109753269 A CN 109753269A
Authority
CN
China
Prior art keywords
block
business transaction
seed
random number
transactions requests
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910093971.8A
Other languages
Chinese (zh)
Other versions
CN109753269B (en
Inventor
荆博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910093971.8A priority Critical patent/CN109753269B/en
Publication of CN109753269A publication Critical patent/CN109753269A/en
Application granted granted Critical
Publication of CN109753269B publication Critical patent/CN109753269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses random digit generation method, device, equipment and the storage mediums of a kind of block chain.When being executed by block chain node, this method may include: to obtain business transaction request, and handled, and business transaction data are added to and are initiated in block;If the business transaction request is needed using random number, in the generation period of result block, receives and request associated seed transactions requests with the business transaction;Wherein, the result block is the subsequent block for initiating block, and the seed transactions requests are provided by the business participant that the business transaction is requested;According to the kind substring in the seed transactions requests, random number is generated based on setting random algorithm;Service processing result is generated according to the random number and business transaction request, is added in the result block.The technical solution of the embodiment of the present invention improves the public credibility for generating block chain random number, improves the safety of random number.

Description

Random digit generation method, device, equipment and the storage medium of block chain
Technical field
The present embodiments relate to computer data memory technology more particularly to a kind of generating random number sides of block chain Method, device, equipment and storage medium.
Background technique
In the transactions requests of block chain network processing, some transactions requests needs to generate during processing at random Number, the transactions requests are handled based on the random number of generation.
In the prior art, when block generate node when needing to generate random number, can to dedicated for generate random number Centralization service organization request, a random number is obtained, to complete the processing of affairs using random number.
Since the random number of traditional block chain network is generated by centralization service organization, public credibility is poor, and There are security breaches, so as to cause the random number of generation, there are various unsafe problems.
Summary of the invention
The embodiment of the present invention provides random digit generation method, device, equipment and the storage medium of a kind of block chain, to be promoted The public credibility for generating block chain random number, improves the safety of random number.
In a first aspect, being held the embodiment of the invention provides a kind of random digit generation method of block chain by block chain node Row, this method comprises:
Business transaction request is obtained, and is handled, business transaction data are added to and are initiated in block;
If the business transaction request is needed using random number, in the generation period of result block, reception and institute It states business transaction and requests associated seed transactions requests;Wherein, the result block be initiate block subsequent block, described kind Subtransaction request is provided by the business participant that the business transaction is requested;
According to the kind substring in the seed transactions requests, random number is generated based on setting random algorithm;
Service processing result is generated according to the random number and business transaction request, is added to the result block In.
Second aspect, the embodiment of the invention also provides a kind of random digit generation methods of block chain, by business participant It executes, this method comprises:
Business transaction request is sent to block chain network, business transaction request is handled with request, and by business transaction Data, which are added to, to be initiated in block;
It is sent to block chain network and requests associated seed transactions requests with the business transaction, to request in result block The generation period in, according in the seed transactions requests kind substring generate random number, and according to the random number with And the business transaction request generates service processing result, is added in the result block;Wherein, the result block is hair Play the subsequent block of block.
The third aspect, the embodiment of the invention also provides a kind of generating random number devices of block chain, are configured at block chain In node, which includes:
Service request obtains module, for obtaining business transaction request, and is handled, business transaction data are added Into initiation block;
Seed request receiving module, if needed for business transaction request using random number, in result block The generation period in, receive and request associated seed transactions requests with the business transaction;Wherein, the result block is to initiate The subsequent block of block, the seed transactions requests are provided by the business participant that the business transaction is requested;
Random number generation module, for being calculated at random based on setting according to the kind substring in the seed transactions requests Method generates random number;
Result treatment adding module, for generating business processing knot according to the random number and business transaction request Fruit is added in the result block.
Fourth aspect, the embodiment of the invention also provides a kind of generating random number devices of block chain, are configured at business ginseng With side, which includes:
Service request sending module handles the business for sending business transaction request to block chain network with request Transactions requests, and business transaction data are added to and are initiated in block;
Seed request sending module requests associated kind of subtransaction with the business transaction for sending to block chain network Request is generated random with requesting in the generation period of result block according to the kind substring in the seed transactions requests Number, and service processing result is generated according to the random number and business transaction request, it is added in the result block; Wherein, the result block is the subsequent block for initiating block.
5th aspect, the embodiment of the invention also provides a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the random digit generation method of the block chain as described in any embodiment of that present invention.
6th aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the random digit generation method of the block chain as described in any embodiment of that present invention when the program is executed by processor.
The technical solution of the embodiment of the present invention, when processing needs to request using the business transaction of random number, block chain link Kind substring in the seed transactions requests for the business participant node transmission that point is requested by business transaction, generates random Number, and then complete the processing operation of subsequent business transaction request.The random number for solving the generation of centralization service organization exists respectively The unsafe problem of kind improves the safety of random number to promote the public credibility for generating block chain random number.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the random digit generation method for block chain that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the random digit generation method of block chain provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart of the random digit generation method for block chain that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow chart of the random digit generation method for block chain that the embodiment of the present invention four provides;
Fig. 5 is a kind of signaling diagram of the random digit generation method for block chain that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural block diagram of the generating random number device for block chain that the embodiment of the present invention six provides;
Fig. 7 is a kind of structural block diagram of the generating random number device for block chain that the embodiment of the present invention seven provides;
Fig. 8 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the random digit generation method for block chain that the embodiment of the present invention one provides, the present embodiment It is applicable to block chain node processing and needs the case where requesting using the business transaction of random number, wherein block chain node can be with It is the block generation node in block chain network;Other nodes being also possible in block chain network, it is such as raw currently without block At the arbitrary node of permission.
This method can be executed by the generating random number device or equipment of the block chain being configured in block chain node, should Hardware can be used in device and/or the mode of software is realized, and can be integrated in the electronic equipment of carrying block chain link point, this method Specifically comprise the following steps:
S101 obtains business transaction request, and is handled, and business transaction data are added to and are initiated in block.
Wherein, business transaction request is the transactions requests for needing just complete treatment process by random number, specifically may be used To be related to the business of any function.Business transaction request may include initiating transactions requests, can further include response Transactions requests.Initiation transactions requests can be the affairs that Business Initiator is generated based on business intelligence contract and initiation data and ask It asks, which can be the collection of programs for realizing the business, it can provide interactive interface in the business intelligence contract, The different content for initiating data and response data is provided for user, to generate each specific transactions requests.For example, if initiating Transactions requests are that transactions requests are initiated in guess, then the request can be guess initiator and be based on guessing intelligent contract and formulate this Secondary guess related data (e.g., the topic of guess, model answer, guess option, guess by the time, guess initiator information, Guess reward etc.) generate guess initiate transactions requests.Correspondingly, response transactions request, which can be service response side, is based on business The transactions requests that intelligent contract, the transactions requests to be responded (as initiated transactions requests) and response data generate.For example, if ringing Answer transactions requests for guess response transactions request, then the request can be guess responder and be based on guess intelligent contract, guess hair It plays the guess just sent and initiates transactions requests and response data (such as guess answer, guess response time and guess responder's letter Breath etc.) generate guess response transactions request.Optionally, business intelligence contract can also be respectively initiate, response formed it is different Intelligent contract separately includes the rule for how generating and initiating transactions requests, and how to generate the rule of response transactions request.
Business transaction data need to be added to the data stored in block after referring to processing business transactions requests, generally comprise The partial data of business transaction request itself and generation.The block of storage service Transaction Information, hair can be referred to by initiating block Playing block can be one, be also possible to continuous or discontinuous multiple.
Illustratively, after block chain node obtains business transaction request, i.e., business transaction request is handled, it can Choosing, which can be treatment process included before generating random number.Business transaction request is handled, is obtained To business transaction data, business transaction data are added to and initiate optionally, to can be the business transaction number that will be obtained in block According to be added to it is one or more initiate in blocks, the business transaction due to being related to a business request to have it is multiple, and by Different participants is initiated in different time, so business transaction data are likely stored in multiple and different initiation blocks.
Optionally, in the embodiment of the present invention, after business transaction data are added in initiation block by block chain node, also Initiation block added with business transaction data can be sent to block chain network.So that other nodes in block chain network To initiate block in data synchronize, verify or other operation.
S102, if business transaction request is needed using random number, in the generation period of result block, reception and industry The business associated seed transactions requests of transactions requests.
Wherein, as a result block is the subsequent block for initiating block, is the last one initiation if initiating block has multiple The subsequent block of block, with initiate block be different block, wherein the data stored be business transaction request, by random The final service processing result that number influences.The result block can be a block, be also possible to multiple blocks.As a result block Generating the period can refer to after business transaction data to be added to initiation block, and need according to random number process business thing Business request, obtains corresponding period when this service processing result.Optionally, as a result generation period of block, it can be hair Side is played before initiating business transaction request, by the height of result block or time (the 3rd day after such as initiating the request, or The 100th block etc. after initiating request) it is recorded in business transaction request;It is also possible to block chain node processing business affairs During request, determining according to the regulation of intelligent contract, for example, providing in intelligent contract, in preset time period, (such as 1 is small When) in be not received by and initiate the associated response transactions of transactions requests and request, it is determined that reach the knot of the initiation transactions requests Fruit block generates the period.
Seed transactions requests are provided by the business participant that business transaction is requested.The business participant of business transaction request It may include: that the initiator of the generation initiation transactions requests in business transaction request and/or at least one generation response transactions are asked The responder asked.The seed transactions requests that the business participant of business transaction request provides are according to seed text string generation.It can Choosing, for one's own profit, according to business development process, malice changes kind of a substring to business participant in order to prevent, from And directly interfere the generation of random number as a result, can be the Transaction Information for requiring business participant during obtaining business development Before, seed transactions requests are pre-generated.For example, being initiated when business participant is to generate the initiator for initiating transactions requests Side can generate seed transactions requests before generating initiation transactions requests, and be localized storage, and kind subtransaction is asked The Transaction Identifier asked is added in the initiation transactions requests of generation, subsequent to be just sent to block chain network.It is thus anti-well The subsequent development process according to business of business participant is stopped, malice changes asking for the kind substring in seed transactions requests Topic.
Optionally, if needed during handling business transaction request using random number, in the life of result block At in the period, receives and request associated seed transactions requests with business transaction, specifically, in the present embodiment, with business transaction Request associated seed transactions requests to include at least following several: 1) initiator in business participant send with initiate affairs Request associated seed transactions requests;2) what the responder in business participant sent requests associated seed thing with response transactions Business request.
Optionally, whether associated method is requested to have much with business transaction in the seed transactions requests that receive of judgement, To this present embodiment without limiting.For example, it may be determining the seed transactions requests by the seed transactions requests received Then it is compared, if unanimously, illustrating this step by corresponding Transaction Identifier with the Transaction Identifier in business transaction request In the seed transactions requests that receive and the business transaction obtained in S101 request be associated with;It can also be business participant and send seed When transactions requests, while the Transaction Identifier of the corresponding business transaction request of the seed transactions requests is also sent, at this time block chain link Point can pass through the affairs of the Transaction Identifier for judging to receive in this step and its business transaction received in S101 request It identifies whether unanimously, if unanimously, illustrating that the seed transactions requests received in this step are related to business transaction request.
Optionally, after determining that the business transaction request needs using random number, further includes: notice business transaction is asked The business participant asked provides seed transactions requests.It is corresponded to specifically, can be block chain node and generate business transaction request Seed obtain transactions requests be sent in block chain network, business participant node receive the seed obtain transactions requests Afterwards, by its it is pre-generated request associated seed transactions requests to be sent to block networking network with business transaction, block chain at this time Node can be in the generation period of result block, and receive the offer of business participant requests associated seed with business transaction Transactions requests.
It should be noted that business participant node sends the trigger condition of seed transactions requests not to block chain network Be defined in receive the transmission of block chain node seed obtain transactions requests after, just triggering offer seed transactions requests can be with It is business participant node when reaching preset condition, automatic trigger provides seed transactions requests, for example, it may be business participates in Square nodal test reaches business specified in business transaction request by the time or when needing to generate random number, and triggering provides kind Subtransaction request;It can also be business participant node in the industry for receiving the storage of the block chain network transmission participant node When the initiation block of the corresponding Transaction Information of transactions requests of being engaged in, i.e. triggering provides seed transactions requests etc..
Optionally, business participant does not send kind when block chain node needs to receive seed transactions requests in order to prevent Subtransaction request, or send mistake seed transactions requests the case where occur, block chain node can receive business When participating in sending business transaction request in direction block chain network, mortgage element is carried out to the account of business participant and is freezed, if When block chain node needs to receive seed transactions requests, it is not received by the kind of business participant transmission within a preset period of time Subtransaction request, or receive the seed transactions requests of mistake, then the mortgage element freezed is deducted from the account of business participant. The advantages of this arrangement are as follows being constrained the business participant for providing seed transactions requests, generating random number ring ensure that The confidence level in border.
S103 generates random number based on setting random algorithm according to the kind substring in seed transactions requests.
Wherein, character string needed for kind substring can be generation random number, this kind of substring can be by number And/or English alphabet is constituted.Setting random algorithm be it is preset, for generating the related algorithm or rule of random number.
Optionally, block chain node is after receiving and requesting associated seed transactions requests with business transaction, to the seed Transactions requests are handled, and wherein included kind of substring is obtained, according to the kind substring of acquisition, based on the random calculation of setting Method generate random number, specifically, can be by kind of substring according to setting random algorithm carry out related computing, generate with Machine number.Wherein, the random number of generation can be one, be also possible to multiple.
Optionally, in embodiments of the present invention, according to the kind substring in seed transactions requests, based on the random calculation of setting Method generates the process of random number, can also be and calls random number intelligence contract, according to the kind substring in seed transactions requests, Random number is generated based on setting random algorithm.Wherein, which can be due up how to generate random number Method and rule can be based on common recognition mechanism and set what random algorithm generated.Specifically, from seed transactions requests After obtaining kind of substring, the random number intelligence contract is called, the kind substring that will acquire is as random number intelligence contract Parameter;According to the parameter of the random number intelligence contract, random number intelligence contract is executed, this processing business transactions requests is obtained Required random number.
Optionally, in embodiments of the present invention, in order to improve generation random number safety, according to seed transactions requests In kind substring, based on setting random algorithm generate random number during, can also be call random number intelligence contract, According to the kind substring in seed transactions requests and the block-identified of block is initiated, is generated based on setting random number algorithm random Number.It can not be distorted due to initiating the block-identified of block, to ensure that the safety of generating random number.Optionally, should It is block-identified to can also be the block-identified of other blocks in addition to initiating block, to this embodiment of the present invention without limit It is fixed.
S104 generates service processing result according to random number and business transaction request, is added in result block.
Wherein, service processing result, which can be, requests the final process result obtained after handling to business transaction, should Processing result needs just to can be generated according to random number.
Optionally, after generating random number, according to the random number of generation, then S101 processes business transaction data Journey continues with business transaction request, obtains service processing result, and finally obtained service processing result is added to knot In fruit block.For example, if business transaction request initiates transactions requests for guess, according to the random number generated in S103, then S101 initiates the guess treatment process of transactions requests, continues with guess and initiates transactions requests, determines this guess result Obtained guess result is added to the guess and initiates affairs by (such as prize winner information, bonus distribution condition, prize-winning answer) It requests in corresponding result block.Optionally, it can be the service processing result that will be obtained to be added in current block, add at this time Current block added with service processing result is result block.
Optionally, the number of the random number generated in S103 in the embodiment of the present invention can be one, can also have multiple. When the random number of generation is multiple, when generating service processing result according to random number and business transaction request, can be makes Service processing result is generated with multiple random numbers.For example, if business transaction request initiates request for guess, when competing for this Guessing, the correctly guess responder that guesses is more multimodal, 3 random numbers can be generated, such as 1,5,8, at this point, correctly each for guessing Guess responder, is ranked up according to its time for sending guess response transactions request, the responder for the serial number 1 that sorts is arranged For the first prize, second prize is set by the responder for the serial number 5 and 15 that sorts, the responder for the serial number 8,18,28 that sorts is set It is set to third prize.
Optionally, in the embodiment of the present invention, after service processing result is added in result block by block chain node, also Result block added with service processing result can be sent to block chain network.So that other nodes in block chain network Data in result block are synchronized, verify or other operation.
It should be noted that requesting business transaction the process handled, including two portions in the embodiment of the present invention Point: first part S101 executes the relevant treatment operations participated in business transaction request without random number, obtains business transaction Data are added to the process initiated in block;Second part is S104, after generating random number, according to the random number pair of generation Business transaction request continues with, and generates service processing result, the process being added in result block.
It should be noted that the block chain node in the embodiment of the present invention, which can be block, generates node, it is also possible to remove Block generates other nodes other than node.It is to be introduced for block generates node that above-described embodiment, which is by block chain node, , if block chain node is other nodes, other nodes are also to execute the above process to generate random number, are completed raw to block It is verified at the Transaction Information that the request of node processing business transaction generates.Above-mentioned acquisition business thing is executed specifically, can be Business data, and handled, it is that the business transaction data initiated in block are carried out according to business transaction data after processing at this time Verifying receives the business transaction data initiated in block and is added in the block chain of the node if being verified;Execute it is above-mentioned such as It needs in the request of fruit business transaction using random number, is then generated in the period in block chain, received associated with business transaction request Seed request, according to seed request in kind substring, based on setting random algorithm generate random number;According to random number and Business transaction request generate service processing result, be at this time according to the service processing result of generation to the business in result block at Reason result is verified, if being verified, the service processing result in reception result block is added in the block chain of the node.
The random digit generation method of block chain provided in this embodiment needs to ask using the business transaction of random number in processing When asking, the seed character in seed transactions requests that the business participant node that block chain node is requested by business transaction is sent String generates random number, and then completes the processing operation of subsequent business transaction request.Solve centralization service organization generation with There are various unsafe problems for machine number, and provide kind of a substring by business participant, and block chain node is at the business of generation It is not know this kind of substring before reason result, so block chain node is constrained to fake;It is provided due to business participant Kind substring is pre-generated before block chain node processing business Transaction Information, provides seed word so also constraining The business participant for according with string cannot replace kind of a substring according to number one, improve the public letter for generating block chain random number Power improves the safety of random number.
Further, in embodiments of the present invention, according to the kind substring in the seed transactions requests, based on setting Before random algorithm generates random number, the seed transactions requests received can also be verified, it is specific: according to business thing The seed Transaction Identifier carried in business request, verifies the seed transactions requests.Wherein, business participant is generating industry When transactions requests of being engaged in, the Transaction Identifier of pre-generated seed transactions requests is carried in business transaction request, block chain link Point is after receiving business transaction request, so that it may uniquely determine the business transaction and request corresponding seed transactions requests Transaction Identifier, when block chain node is after receiving the seed transactions requests of business participant transmission, the kind that can will receive The seed Transaction Identifier carried in Transaction Identifier and business transaction request in subtransaction request is compared, thus to receiving The seed transactions requests of initiator are verified, if comparison result is consistent, are illustrated to be proved to be successful, can be continued to execute S103, According to the kind substring in the seed transactions requests received, random number process is generated based on setting random algorithm.It sets in this way Setting is advantageous in that, avoids the business participant of business transaction request for number one, according to the hair of business procession Exhibition, modifies pre-generated seed transactions requests and is sent to block chain node, with what is intervened the process for generating random number It happens, improves the random number safety and confidence level of generation.
Embodiment two
Fig. 2 is a kind of flow chart of the random digit generation method of block chain provided by Embodiment 2 of the present invention, this method with Based on previous embodiment, specifically gives when to receive and request associated seed transactions requests with business transaction and according to seed Kind substring in transactions requests generates the concrete condition introduction of random number based on setting random algorithm.As shown in Fig. 2, should Method includes:
S201 obtains business transaction request, and is handled, and business transaction data are added to and are initiated in block.
S202, if business transaction request is needed using random number, according to the block interval of business transaction request configuration Or the block interval configured according to preset rules, wait the block interval of setting quantity up to the generation period of result block.
Wherein, block interval can refer to the block height initiated between block and result block, such as can be and initiate area The quantity (M) for the block being spaced between block and result block is also possible to initiate specifically to be spaced between block and result block Time.The business participant that block interval can be initiation business transaction request is pre-configured in business transaction request, For example, being divided into 10 blocks between presetting block in business transaction request;It is also possible to block chain link point according to intelligent contract In preset rules configurations, for example, provided in intelligent contract, be divided between block initiate block to business the correspondence when the time Next block between interval.Setting quantity can be according to the determination of block interval, for example, if being divided into 1 area between block Block, then set quantity as 1, if being divided into 1 hour between block, set quantity as business transaction data are added to initiate block it Afterwards, in one hour, the quantity of the block generated including initiating block.Optionally, setting quantity can be at least one.
Illustratively, if business transaction request is needed using random number, first according to business transaction request in configure Block interval or the block interval configured according to preset rules, determine the setting quantity for needing to wait, and then wait setting quantity Block interval, the generation period until reaching result block, in the generation period of result block, just can receive business ginseng Associated seed transactions requests are requested with business transaction with what is just provided.
Optionally, it when setting quantity as one, can be after being added to business transaction data and initiating in block, It waits a block interval to reach result block and generates the period, is i.e. next block of initiation block is the generation for reaching result block Period illustrates that result block and the last one initiation block are adjacent blocks;If setting quantity as at least two, can be from It initiates block to count, waits at least two block intervals to reach result block and generate the period.
S203 is received in the generation period of result block and is requested associated seed transactions requests with business transaction.
S204 generates random number based on setting random algorithm according to the kind substring in seed transactions requests.
Optionally, if set quantity as one, according to the kind substring in seed transactions requests, based on setting with When machine algorithm generates random number, the block mark of block is can be according to the kind substring in seed transactions requests and initiated Know, random number is generated based on setting random algorithm;If set quantity as at least two, according to the kind in seed transactions requests Substring can be when generating random number based on setting random algorithm according to the kind substring in seed transactions requests, with And the centre block is block-identified, generates random number based on setting random algorithm;It is also possible to according to seed transactions requests In kind substring, initiate block block-identified and described centre block it is block-identified, based on setting random algorithm Generate random number.Specifically, according to kind of a substring, block-identified, based on the method that setting random number algorithm generates random number, Can be by kind of substring and it is block-identified according to setting random algorithm carry out related computing, generate random number;May be used also To be to call random number intelligence contract, according to kind of a substring, block-identified, random number is generated based on setting random number algorithm, It such as can be kind of a substring, the block-identified parameter as random number intelligence contract, execute random number intelligence contract, obtain This random number generated.
Optionally, centre block refers to that the block of generation can be with during waiting the block interval of setting quantity It is the block initiated between block and result block.The data stored in centre block may be associated with business transaction request Data when such as business transaction request to initiate transactions requests, can be the processing initiation with the associated data of transactions requests are initiated The response data that transactions requests associated response transactions generate when requesting;It is also likely to be to request unrelated data with business transaction, Other unrelated transactions requests, the Transaction Information of generation are requested with business transaction as handled.
If generating random number uses the block mark for being stored with the centre block for requesting associated data with business transaction Know, is then likely to occur the case where business participant that business transaction is requested carries out malicious interference to the generating process of random number.Example Such as, the guess responder A in guess participant, which is repeated several times, participates in a certain guess initiation transactions requests, then guess responder A The response data that the storage in centre block can be controlled all is that its own participates in the data responded when guess, due to block mark Knowledge be generated according to the data stored in block, so, at this time guess responder A can control to obtain the area of centre block Block identification, and then interfere the generation result of random number.In order to avoid such case appearance, it may be stipulated that: if setting quantity as extremely Few two, in initiating the centre block between block and result block, there need to be at least one centre block and be not present and industry (there is at least one centre block, the Transaction Information and business stored in the centre block in the associated data of transactions requests of being engaged in Transactions requests are unrelated).And according to the kind substring in seed transactions requests, random number is generated based on setting random algorithm When, can be according in seed transactions requests kind substring and at least one with business transaction request is not associated with completely Centre block it is block-identified, based on setting random algorithm generate random number.Specifically, can be from all centre blocks It is middle to obtain at least one and the completely not associated centre block of business transaction request, calculate the block-identified of the centre block, root According in seed transactions requests kind substring and at least one and business transaction request completely not associated centre block It is block-identified, random number is generated based on setting random algorithm.
In the present embodiment, it is not present there are at least one centre block and requests associated data with business transaction, it can be with Deliberately control, for example, it may be random number intelligence contract of the block chain node according to local disposition, recognize whether with Business transaction requests completely not associated centre block, and if it exists, then according to the kind substring in seed transactions requests, and At least one requests the block-identified of completely not associated centre block with business transaction, is generated based on setting random algorithm random Number.Optionally, at least one centre block is not present the phenomenon that requesting associated data with business transaction and is also possible to be natural shape At, without carrying out control deliberately, as soon as such as one may may be generated within 0.3 second quickly because generating the speed of a block Block, therefore in the associated response transactions request of processing business transactions requests, be not have when generating each block with Business transaction requests associated data to be acquired and store within a block, for example, if business transaction request initiates request for guess, The guess is initiated to announce answer after providing 1 day in request, within this 1 day time, produces hundreds of thousands block, but participates in Responder of this guess is unlikely to be guessing at every moment, it is impossible to each block in several ten thousand blocks In have guess answer.Or defined guess deadline to guess was announced between the time, interval is longer, that just necessarily has Centre block is not store data relevant to guess.
S205 generates service processing result according to random number and business transaction request, is added in result block.
The random digit generation method of block chain provided in an embodiment of the present invention needs the business thing using random number in processing When business request, after initiating block, wait the centre block of setting quantity up to the generation period of result block, then pass through industry The kind substring being engaged in the seed transactions requests that participant node is sent, and the middle area with business transaction request onrelevant Block it is block-identified, random number is generated based on setting random algorithm, and then complete the processing operation of subsequent business transaction request.It adopts With centre block, the block-identified generation random number of unrelated centre block is especially requested with business transaction, avoids business The case where participant malicious interference generating random number, further improve the safety of generating random number process.
Embodiment three
Fig. 3 be the embodiment of the present invention three provide a kind of block chain random digit generation method flow chart, this method with Based on previous embodiment, show in particular when business transaction request for initiate transactions requests when, how to execute block chain with The concrete condition introduction of machine number generation method.As shown in figure 3, this method comprises:
S301 obtains business transaction request, and is handled, and business transaction data are added to and are initiated in block.
Optionally, for the business transaction request in the present embodiment first to initiate transactions requests, initiator is based on business intelligence Contract and initiation data generate after initiating transactions requests, which is sent to block chain network, block chain network Node (such as block generation node) receives the initiation transactions requests, and is handled, and the initiation of the initiation transactions requests is obtained Data, which are added to, to be initiated in block.After other nodes (i.e. responder) in block chain receive business transaction request, if thinking It participates in and initiates in transactions requests, then can be based on business intelligence contract, according to the initiation transactions requests and response data, generate Response transactions request, and response transactions request is sent to block chain network, (such as block generates section to block chain node at this time Point) response transactions request is received, and handled, the response data for obtaining response transactions request also adds as Transaction Information It is added to and initiates in block.
Illustratively, guess initiator is based on the intelligent contract of guess initiation and guess initiates data generation guess and initiates affairs Request, and guess initiation transactions requests are sent to block chain network.Block generates node and receives guess initiation thing at this time Business request, and handled, obtain the initiation data that transactions requests are initiated in the guess, such as topic of guess, model answer, guess Option, guess are added to by time, guess initiator information, guess reward etc. to be initiated in block.If other in block chain After node receives guess initiation transactions requests, it is desirable to participate in this time guessing, the node is exactly a responder at this time, can base Intelligent contract is responded in guess, transactions requests are initiated according to the guess received and its response data of guessing generates guess response Transactions requests are sent to block chain network, and block generates node and receives guess response transactions request at this time, are handled, are obtained To the guess response data in guess response transactions request, answer of such as guessing, time, the guess side's information of guessing are added to hair It rises in block.
Optionally, the number for initiating block can be one or more, and recording respectively in one or more blocks is also hair Play the initiation data of transactions requests and the response data of at least one response transactions request.
S302, if business transaction request is needed using random number, in the generation period of result block, reception and industry The business associated seed transactions requests of transactions requests.
Wherein, the business participant for providing the business transaction request of the seed transactions requests includes one or more;It is more A business participant includes the initiator and at least one responder of business transaction request.Initiator and recipient can generate Associated seed transactions requests are requested with business transaction, are asked as the seed transactions requests of initiator's generation can be with business transaction The associated seed transactions requests of initiation transactions requests in asking;The seed transactions requests that responder generates can be and business transaction Response transactions in request request associated seed transactions requests.
Optionally, in the present embodiment, block chain node is in the generation period of result block, receive with business thing It may be the seed transactions requests that initiator and/or responder send that associated seed transactions requests are requested in business.Wherein, each business Participant send seed transactions requests time can be consistent, be also possible to it is different, if each participant is not sent simultaneously Seed transactions requests, then can be one receiving time of regulation, and each business participant needs are sent within the scope of the receiving time Its seed transactions requests.
S303 generates random number based on setting random algorithm according to the kind substring in seed transactions requests.
It optionally, can when generating random number based on setting random algorithm according to the kind substring in seed transactions requests To be the seed transactions requests sent according to initiator and/or responder, processing obtains kind of a substring, then according to seed thing Kind substring in business request generates random number based on setting random algorithm.Specifically, how according to seed in the present embodiment Kind substring in transactions requests can be with the various embodiments described above class based on the method that setting random algorithm generates random number Seemingly, this is no longer repeated.
S304 obtains initiation data according to transactions requests are initiated, at least one sound according to associated by initiation transactions requests Transactions requests are answered to obtain response data;
Optionally, it is stored in and initiates in block due to initiating data and response data.So according to transactions requests are initiated It obtains and initiates data, it, can be with when according to initiating at least one response transactions request response data associated by transactions requests Be traversal each initiate block, check wherein whether to be stored with and initiate the corresponding initiation data of transactions requests, and/or with initiation At least one response transactions associated by transactions requests request corresponding response data, if so, then obtain the initiation data and/or Response data.
S305 runs the business intelligence contract of business transaction request according to data, response data and random number is initiated, with Service processing result is generated, is added in result block.
Wherein, business intelligence contract can be due up method and the rule for how carrying out service processing result analytic operation Then, can be based on common recognition mechanism and business process rule generation, business process rule can be business transaction request in The create-rule for this processing result for including is also possible to block chain network and predefines for different business transaction requests Rule.Optionally, the business disposed on the business intelligence contract and business participant node affixed one's name in the middle part of block chain node is initiated Or it responds intelligent contract and can be the same intelligent contract.
Optionally, according to data, response data and random number is initiated, the business intelligence contract of business transaction request is run, To generate service processing result, it is added in result block, can be will initiate data, response data and random number as business The parameter of intelligent contract runs business intelligence contract according to the parameter of the business intelligence contract, obtains the request of this business transaction Service processing result, then will obtain the service processing result and be added in block.For example, if initiating data is that guess is initiated Data are initiated in the guesses of transactions requests, and response data be the guess response data that response data requests of guessing, random number 8, then Guess is initiated into data, guess response data and random number 8 as intelligent contract parameter of guessing, according to the guess intelligence contract Parameter runs the guess intelligence contract, and obtaining the service processing result that transactions requests are initiated in this guess is: all guesses are correct Responder according to guess time sequencing sequence after, the responder for being ordered as number band 8 is the side of prize-winninging, such as the 8th, 18,28 It is a etc., and above-mentioned guess processing result is written in result block.
The random digit generation method of block chain provided in an embodiment of the present invention needs the business thing using random number in processing When business request, in multiple seed transactions requests of the block chain node by initiator and responder's transmission in business participant Kind substring generates random number, and requests associated initiation data, response data and random number according to business transaction is initiated, Operation business intelligence contract obtains service processing result, completes the processing operation of entire business transaction request.In block chain link During point generates random number, block generates mutually to be restricted between node and Business Initiator, service response side three, is guaranteed The credibility of generating random number environment, improves the safety of generating random number process.
Example IV
Fig. 4 is a kind of flow chart of the random digit generation method for block chain that the embodiment of the present invention four provides, the present embodiment How the business participant of being applicable to assists block chain node processing to need the case where requesting using the business transaction of random number, In, business participant can be the initiator for initiating business transaction request, be also possible to respond the responder of business transaction request. Business participant can be the node in block chain network, may not be the node in block chain network, but can pass through Node in block chain network participates in block chain network.This method can by be configured at business participant block chain with Machine number generating means or equipment execute, which can be used hardware and/or the mode of software is realized, and can be integrated in supporting region In the electronic equipment of block chain node.
It should be noted that the business transaction request of the block chain node processing of the various embodiments described above is in the present embodiment Business participates in what block chain network in direction was sent, kind subtransaction needed for the block chain node of the various embodiments described above generates random number Business in request and the present embodiment participates in what block chain network in direction was sent, and the block chain node of the various embodiments described above is only Have and interacted with the business participant node of the present embodiment, can just complete the business transaction request to needing using random number Processing.
As shown in figure 4, specifically comprising the following steps:
S401 generates seed transactions requests and is localized storage.
Optionally, when business participant generates seed transactions requests, it can be the regulation according to seed intelligence contract, at random One group of kind substring is generated, seed intelligence contract is then run, that is, produces seed transactions requests.Wherein, seed intelligently closes It about can be the specific rules for being specified how to generate seed transactions requests.Optionally, seed intelligence contract can also be with business The business intelligence contract that participant generates business transaction request is the same intelligent contract.
It should be noted that the seed transactions requests that business participant generates are asked in block chain node processing business affairs During asking, when needing to generate random number, it is just sent to block chain network, but business participant is according to industry in order to prevent The development process for transactions requests of being engaged in generates and is conducive to the seed transactions requests of number one, and business participant is needed to block Chain network generates seed transactions requests before sending business transaction request, since the seed transactions requests generated at this time do not need It is sent to block chain network at once, so, the seed transactions requests of generation first can be stored in local.
The Transaction Identifier of seed transactions requests is added in business transaction request by S402.
The development process that business participant is requested according to business transaction in order to prevent is distorted pre-generated kind subtransaction and is asked It asks, guarantees the safety of generating random number, business participant can be first when generating business transaction request according to pre-generated Seed transactions requests, calculate seed transactions requests Transaction Identifier, by the Transaction Identifier be added to business transaction request in, this For sample block chain node when receiving business transaction request, which requests corresponding seed transactions requests just to uniquely determine , business participant can not also request corresponding seed transactions requests distort the business transaction.
Optionally, according to pre-generated seed transactions requests, the method for calculating the Transaction Identifier of seed transactions requests can It is many to have, to this present embodiment without limiting.For example, it may be adding to seed transactions requests according to certain algorithm Close signature, the Transaction Identifier by obtained signature as the seed transactions requests;It can also be in generation seed transactions requests Kind substring encrypted according to certain algorithm, using obtained encrypted result as the affairs mark of the seed transactions requests Know.
Optionally, by the Transaction Identifier of seed transactions requests, when being added in business transaction request, it can be business participation Side generates business thing based on business intelligence contract, business datum and seed Transaction Identifier when generating business transaction request Business request;It is also possible to after generating business transaction request based on business intelligence contract and business datum, then by seed transactions requests Transaction Identifier be directly appended in the request of generated business transaction, obtain final business transaction request.It can also be and adopt The Transaction Identifier of seed transactions requests is added in business transaction request in other ways, to this present embodiment without limit It is fixed.
Optionally, in the embodiment of the present invention, the business participant of business transaction request includes one or more;When business is joined When with side being one, the initiator or responder of business transaction request can be, it is multiple described when business participant is multiple Business participant includes the initiator and at least one responder of business transaction request;Wherein the business transaction request includes hair Play transactions requests or response transactions request.
S403 sends business transaction request to block chain network, to request processing business transactions requests, and by business transaction Data, which are added to, to be initiated in block.
Illustratively, business participant can send the business transaction to block chain network after generating business transaction feelings and asking Request and is handled with requesting the block chain node in block chain network to receive business transaction request, and by business transaction Data, which are added to, to be initiated in block.
Optionally, area is initiated since the business transaction data that processing business transactions requests generate are stored in by block chain node In block, and the service processing result that processing business Transaction Information generates is stored in result block, and result block and initiation Block is not the same block, and as a result block is the block after initiating block, so, if the business transaction is asked It asks and needs using random number, then block chain node is needed according to the block interval of business transaction request configuration or according to default The block interval of rule configuration waits the block interval of setting quantity up to the generation period of the result block.It at this time can be with It is to be configured with block interval in the business transaction request that Business Initiator generates, is divided between the block and initiates block arrival result Block height between block.Wherein, the setting quantity at block interval can be one, be also possible to multiple, it is preferred that block Interval sets quantity as at least two.It initiates at least two centre blocks between block and result block, at least one The associated data requested with the business transaction is not present in centre block.It may is that this is by controllable formation, can also To be self-assembling formation, introduction is had been carried out to this above-described embodiment, this is repeated no more.
S404 sends to block chain network and requests associated seed transactions requests with business transaction, to request in fruiting area In the generation period of block, random number is generated according to the kind substring in seed transactions requests, and according to random number and business Transactions requests generate service processing result, are added in result block.
Wherein, as a result block is the subsequent block for initiating block.As a result block can be the next block for initiating block, Can also initiate block between across at least one centre block.
Optionally, business participant node is sent pre-generated in the generation period of result block to block chain network Request associated seed transactions requests with business transaction, to request the block chain node in block chain network to receive the seed After transactions requests, according in character string, random number being generated based on setting random algorithm, then according to generation in seed transactions requests Random number and business transaction request generate service processing result, be added in result block.
Optionally, in the embodiment of the present invention, business participant node sends to block chain network and closes with business transaction request The trigger condition of the seed transactions requests of connection has very much, to this present embodiment without limiting.It can be and receive block chain link When the notice for the offer seed transactions requests that point is sent, triggers to block chain network and send seed transactions requests;It is also possible to When the treatment process for the business transaction request that participant generates is needed using random number, business participant can be to block chain node pair The treatment process of business transaction request is monitored, if monitoring reaches the generation period of result block, can be triggered to block Chain network sends seed transactions requests;Specifically, can be according to the block interval of business transaction request configuration or according to default The block interval of rule configuration, after the initiation block for storing business transaction data for receiving the transmission of block chain node, etc. The block interval of quantity to be set is up to the generation period of result block, can be from trend when reaching the generation period of result block Block chain network sends seed transactions requests.
The random digit generation method of block chain provided in this embodiment, business participant generate seed transactions requests in advance, And the Transaction Identifier of seed transactions requests is added in business transaction request, business transaction request is sent to block chain network, It is requested in the block chain network node processing business transaction, when needing to generate random number, then to block chain network sends pre- Mr. At seed transactions requests so that block chain node according to the kind substring in the seed transactions requests, generates random number, into And complete the processing operation of subsequent business transaction request.Block chain link point is constrained by business participant, prevents block chain node It fakes when generating random number, improves the public credibility for generating block chain random number, improve the safety of random number.
Embodiment five
Fig. 5 is a kind of signaling diagram of the random digit generation method for block chain that the embodiment of the present invention five provides;The present embodiment Based on foregoing embodiments, provide a kind of preferred embodiment, the preferred embodiment be block chain node and guess initiator and Guess responder interacts, and by the random number that itself is generated, and then completes the case where initiating guess transactions requests processing. As shown in figure 5, this method comprises:
S501, guess initiator generate seed transactions requests and are localized storage.
It should be noted that in the present embodiment, (such as block chain node, guess initiator's node and guess are rung each node Answer Fang Jiedian) portion of requiring affixes one's name to the intelligent contract of guess in advance, and the effect of guess initiator's node deployment guess intelligence contract is: Guess, which is generated, based on the guess intelligence contract initiates transactions requests.The effect of the block chain node deployment guess intelligence contract is: The processing that transactions requests are initiated in guess is carried out based on the guess intelligence contract.Guess responder's node deployment guess intelligence contract Effect be: based on the guess intelligence contract response guess initiate transactions requests, and then generate response guess transactions requests.
Optionally, it if guess initiator wants to initiate once to guess, needs first according to intelligent contract (guess intelligence of guessing In contract include seed transactions requests create-rule) regulation, one group of kind substring is randomly generated, such as " abc123 ", so Afterwards according to kind of a substring is generated, the guess intelligence contract is run, generates seed transactions requests, and the kind subtransaction of generation is asked The local for being stored in guess initiator is asked, the seed transactions requests that guess initiator generates are that the guess of its secondary initiation is corresponding Seed transactions requests, i.e. the guess of its secondary initiation initiates the corresponding seed transactions requests of transactions requests.
Illustratively, intelligent contract of guessing can be a user program client, can be by a main program and Multiple subprograms are constituted.When the initiator A that guesses wants to initiate guess, start the guess intelligence contract, into intelligent contract of guessing Interface inputs the kind substring " abc123 " that generates at random at the interface, at this time the guess intelligence contract will automatic running, And seed transactions requests are generated, and the seed transactions requests of generation are locally stored.
The Transaction Identifier of seed transactions requests is added to guess and initiated in transactions requests by S502, guess initiator, and to Block chain network sends guess and initiates transactions requests.
Optionally, in order to constrain the seed transactions requests that guess initiator distorts S501 generation, guess initiator needs root According to the seed transactions requests generated in S501, the Transaction Identifier of the seed transactions requests is calculated, is asked generating initiation affairs of guessing When asking, the Transaction Identifier of calculated seed transactions requests is added to the guess and is initiated in transactions requests.
Illustratively, guess initiator A can continue after generating seed transactions requests in intelligent contract circle of guessing Face, clicks Transaction Identifier and calculates key, guess at this time intelligent contract will automatic running, and generate the affairs of seed transactions requests Mark, then guess initiator A the interface input this guess topic, model answer, guess option, guess by when Between, guess initiator information, the information such as guess reward, click guess transactions requests and generate key, guess intelligent contract at this time just Meeting automatic running generates the guess comprising Transaction Identifier and initiates transactions requests.The initiator A that guesses can be incited somebody to action by its device end The guess of generation initiates request and is sent to block chain network, so that each node in block chain network is received and responded.
S503, block chain node receives guess and initiates transactions requests, and is handled, and the initiation data that will guess are added to It initiates in block.
Illustratively, block chain node receives guess and initiates after requesting, can be based on the guess intelligence disposed on its node Energy contract is initiated request to the guess and is handled, and obtains guess initiation data (such as the topic of guess, model answer, guess choosing Item, guess are by time, guess initiator information, guess reward etc.), it is added in current block, is added with guess at this time The current block for initiating data is to initiate block.
S504, guess responder generate seed transactions requests, are originally localized storage.
Optionally, if other nodes in block chain receive the guess transactions requests that guess initiator A is sent, if thinking This guess is participated in, which is exactly guess responder's node, optionally, transactions requests are initiated for a guess, It is corresponding guess responder number can be 0, one or more.The number of guess responder can be basis and actually want to Participate in the number determination of the node side of the guess.
Illustratively, by taking a guess responder as an example, when guess responder B desires to participate in what guess initiator A was sent When transactions requests are initiated in guess, the method that seed transactions requests can be generated using guess initiator A, to generate guess response The corresponding seed transactions requests of transactions requests, it is same not send first, and it is stored in local.
The Transaction Identifier of seed transactions requests is added in guess response transactions request by S505, guess responder, and to Block chain network sends guess response transactions request.
Optionally, equally, the seed transactions requests generated in S504 are distorted in order to constrain guess responder, guess responder It needs to calculate the Transaction Identifier of seed transactions requests according to the seed transactions requests generated in S504, is generating response thing of guessing When business request, the Transaction Identifier of calculated seed transactions requests is added in guess response transactions request.
Illustratively, after transactions requests are initiated in the guess that guess responder B receives that guess initiator A is sent, it is determined Answer of guessing then at intelligent contract interface of guessing clicks guess key, guess at this time intelligent contract will automatic running, and The Transaction Identifier for generating seed transactions requests, subsequently into guess response interface, guess responder B inputs responder at the interface The information such as information (such as name, phone, mailbox), guess answer, guess time, click guess response transactions request, which generates, presses Key, at this point, guess intelligent contract will automatic running, generate the guess response transactions comprising Transaction Identifier and request.Guess response The guess respond request of generation can be sent to block chain network by its device end by square B, so that block link network node connects It receives and is responded.
S506, block chain node receives guess response transactions request, and is handled, and the response data that will guess is added to It initiates in block.
It illustratively, can be based on its section after block chain node receives the guess response transactions request that guess responder sends The guess intelligence contract disposed on point handles guess respond request, obtains guess response data (such as responder's information, competing Have a guess at the answer, time of guessing etc.), it is added in current block, the current block at this time added with guess response data equally can be with To initiate block.Optionally, the number for initiating block can be one, be also possible to it is multiple, specific number according to guess ring The number of the side of answering and response data number and determine, optionally, if to initiate block be multiple, first initiations block and As a result the initiation block between block can be used as centre block.
Optionally, block chain node can also increase localization process during processing guess response transactions request Process, in order to the subsequent calculating for quickly carrying out guess result.For example, it may be a counter is arranged to carry out result block The timing in period is generated, if reaching result block generates the period, the guess for illustrating that transactions requests are initiated in this guess has been cut Extremely, not in response guess response transactions request;It can also be that the guess responder of transactions requests is initiated in this guess of statistics response Number, each answer of statistics, guess time etc.;It can also be that statistic record has the mark of block etc. of guess response data.
S507, if guess initiates transactions requests and needs to be guessed using random number and initiated the transmission of direction block chain network The associated seed transactions requests of transactions requests are initiated with guess, guess response direction block chain network is sent and guess response transactions Request associated seed transactions requests.
Illustratively, if guess initiates transactions requests and needs guess initiator and guess responder's meeting using random number When reaching the trigger condition of seed transactions requests transmission, seed transactions requests are sent to block chain network, specifically, guess hair Rise direction block chain network send be and guess initiate the associated seed transactions requests of transactions requests;Guess response direction block What chain network was sent is to request associated seed transactions requests with guess response transactions.
Optionally, guess initiator and guess responder have reached trigger condition above-described embodiment of seed transactions requests It is introduced, this is no longer repeated.Optionally, if trigger condition is to receive the offer seed thing of block chain node transmission Be engaged in request notice when, trigger to block chain network send seed transactions requests, then before this step, it is also possible to include: as Fruit block chain node determines that the ginseng that transactions requests need that guess is then notified to initiate transactions requests using random number is initiated in the guess Seed transactions requests are provided with side (i.e. guess initiator and guess responder).
S508, if guess initiates transactions requests and needs to be initiated affairs transactions requests using random number according to guess and matched The block interval set or the block interval configured according to preset rules wait the block interval of setting quantity up to result block The period is generated, in the generation period of result block, block chain node, which is received, initiates the associated seed thing of transactions requests with guess Business requests and requests associated seed transactions requests with guess response transactions.
Wherein, quantity is set as at least two, in the centre block initiated between block and the result block, until A few centre block, which is not present, requests associated data with the business transaction.
S509, block chain node initiate the kind subtransaction carried in transactions requests and guess response transactions request according to guess Mark, verifies the seed transactions requests received.
Illustratively, block chain node calculates the Transaction Identifier of all seed transactions requests received, then will guess The seed Transaction Identifier carried in transactions requests is initiated, the Transaction Identifier of the seed transactions requests sent with guess initiator carries out Compare, if unanimously, the seed transactions requests for illustrating that guess initiator sends are proved to be successful;It will be taken in guess response transactions request The seed Transaction Identifier of band is compared, if unanimously, illustrating competing with the guess responder transmission seed Transaction Identifier belonging to it The seed transactions requests for guessing that responder sends are proved to be successful.
S510, if being proved to be successful, block chain node calls random number intelligence contract, according to the kind in seed transactions requests Substring and centre block it is block-identified, random number is generated based on setting random algorithm.
Illustratively, block chain node calls random number intelligence after being proved to be successful to the seed transactions requests received Contract, according to the block mark of kind substring and the centre block unrelated with guess transactions requests in seed transactions requests Know, random number is generated based on setting random number algorithm.
S511, block chain node initiate transactions requests according to guess and obtain guess initiation data, initiate affairs according to guess At least one associated guess response transactions request guess response data of request.
Illustratively, due to during localization process, having counted record guess hair before block chain node Play the block-identified of data and the block-identified of response data of guessing, so, request lookup can be initiated according to guess at this time The block-identified of initiation data of guessing for storing the guess and initiating request of preceding statistics, then searching has this block-identified Block, and then obtain guess and initiate data;Similarly, the storage of statistics guess before being searched according to guess respond request responds The guess response data of request it is block-identified, then search have the block-identified block, and then obtain guess number of responses According to.
S512, block chain node initiate data, guess response data and random number according to guess, and affairs are initiated in operation guess The guess intelligence contract of request is added in result block with generating guess processing result.
Illustratively, due in intelligent contract of guessing it has been specified that how to handle to obtain guess processing result, root at this time Data, guess response data and random number are initiated according to guess, the guess intelligence contract of transactions requests, the contract are initiated in operation guess The correct responder that guesses will be determined according to pre-set program code, and then determined based on random number prize-winning each Responder and its corresponding reward element.
Optionally, in the present embodiment, block chain node, can be with when receiving each responder and sending guess response transactions request Certain excitation element (such as 0.1 integral) is deducted as guess qualification expense from each responder's account, and by the excitation element of deduction It is added to guess promoter account;It is being corresponded to according to determining guess as a result, providing its awards to prize-winning each guess responder Reward element (such as the first prize 10 integrate, second prize 5 integrate, third prize 2 integrate) when, can from guess promoter account deduct Corresponding reward element, and it is added to each prize-winning guess responder's account.Optionally, block chain node can be from guess qualification Certain excitation element is obtained as administration fee in expense and guess bonus.
The random digit generation method of block chain provided in an embodiment of the present invention.Block chain node guesses in processing and initiates request During, by being interacted with guess initiator and guess participant, kind of a substring is obtained, generates random number, in turn The processing for initiating guess transactions requests is completed, guess processing result is obtained and is added to block.The solution of the present invention is joined by guess It is mutually constrained between person (i.e. guess initiator and guess responder) and block chain node, avoids participant and block chain link The phenomenon that point is played tricks for number one, while can also prevent other nodes from generating by attack means prediction block chain node Random number ensure that on the basis of realizing that the decentralization of block chain network generates random number and generate block chain random number Public credibility and safety.
Embodiment six
Fig. 6 is a kind of structural block diagram of the generating random number device for block chain that the embodiment of the present invention six provides, the device It is configured in block chain node.Wherein, block chain node can be the block in block chain network and generate node;It is also possible to Other nodes in block chain network (such as verifying node).The embodiment of the present invention one can be performed to embodiment three in the device, and The random digit generation method of any one block chain provided by embodiment five has the corresponding functional module of execution method and has Beneficial effect.As shown in fig. 6, the apparatus may include:
Service request obtains module 601, for obtaining business transaction request, and is handled, by business transaction data It is added to and initiates in block;
Seed request receiving module 602, if needed for business transaction request using random number, in fruiting area In the generation period of block, receives and request associated seed transactions requests with the business transaction;Wherein, the result block is hair The subsequent block of block is played, the seed transactions requests are provided by the business participant that the business transaction is requested;
Random number generation module 603, for it is random to be based on setting according to the kind substring in the seed transactions requests Algorithm generates random number;
Result treatment adding module 604, at according to the random number and business transaction request generation business Reason is as a result, be added in the result block.
The generating random number device of block chain provided in this embodiment needs to ask using the business transaction of random number in processing When asking, the seed character in seed transactions requests that the business participant node that block chain node is requested by business transaction is sent String generates random number, and then completes the processing operation of subsequent business transaction request.Solve centralization service organization generation with There are various unsafe problems for machine number, and the public credibility of block chain random number is generated with promotion, improves the safety of random number.
Further, above-mentioned apparatus further include:
Seed requests verification module, the seed Transaction Identifier for being carried in being requested according to the business transaction, to described Seed transactions requests are verified.
Further, above-mentioned apparatus further include:
Module is waited, if needing to ask using random number according to the business transaction for business transaction request The block interval asking the block interval of configuration or configuring according to preset rules waits the block interval of setting quantity until the knot The generation period of fruit block.
Further, the above-mentioned quantity that sets is at least two.
Further, in the centre block between above-mentioned initiation block and the result block, at least one centre block There is no request associated data with the business transaction.
Further, above-mentioned random number generation module 603 is specifically used for:
According in the seed transactions requests kind substring and the centre block it is block-identified, based on setting Determine random algorithm and generates random number.
Further, the business participant for providing the business transaction request of the seed transactions requests includes one or more It is a;Multiple business participants include the initiator and at least one responder of business transaction request;The business transaction is asked It asks including initiating transactions requests or response transactions request.
Further, result treatment adding module 604 is specifically used for:
According to the initiation transactions requests obtain initiate data, according to associated by the initiation transactions requests at least one Response transactions request response data;
According to the initiation data, response data and the random number, the business intelligence of the business transaction request is run Contract is added in the result block with generating service processing result.
Further, above-mentioned initiation block is one or more;The initiation is recorded respectively in multiple initiation blocks Data and at least one response data.
Further, above-mentioned initiation transactions requests are that transactions requests are initiated in guess, and the response transactions request rings for guess Answer transactions requests.
Further, random number generation module 603 is specifically used for:
Random number intelligence contract is called, according to the kind substring in the seed transactions requests, based on the random calculation of setting Method generates random number.
Further, above-mentioned apparatus further include:
Request provides notification module, if needing to notify the industry using random number for business transaction request The business participant for transactions requests of being engaged in provides the seed transactions requests.
Embodiment seven
Fig. 7 is a kind of structural block diagram of the generating random number device for block chain that the embodiment of the present invention seven provides, the device It is configured in business participant.Business participant can be the initiator for initiating business transaction request, be also possible to response business The responder of affairs transactions requests.Business participant can be the node in block chain network, be also possible to not be block link network Node in network, but can be participated in block chain network by the node in block chain network.This hair can be performed in the device The random digit generation method of any one block chain provided by bright example IV to embodiment five, it is corresponding to have execution method Functional module and beneficial effect.As shown in fig. 7, the apparatus may include:
Service request sending module 701 handles the industry for sending business transaction request to block chain network with request Business transactions requests, and business transaction data are added to and are initiated in block;
Seed request sending module 702 requests associated seed with the business transaction for sending to block chain network Transactions requests are generated with requesting in the generation period of result block according to the kind substring in the seed transactions requests Random number, and service processing result is generated according to the random number and business transaction request, it is added to the fruiting area In block;Wherein, the result block is the subsequent block for initiating block.
The generating random number device of block chain provided in this embodiment, business participant generate seed transactions requests in advance, And the Transaction Identifier of seed transactions requests is added in business transaction request, business transaction request is sent to block chain network, It is requested in the block chain network node processing business transaction, when needing to generate random number, then to block chain network sends pre- Mr. At seed transactions requests so that block chain node according to the kind substring in the seed transactions requests, generates random number, into And complete the processing operation of subsequent business transaction request.Block chain link point is constrained by business participant, prevents block chain node It fakes when generating random number, improves the public credibility for generating block chain random number, improve the safety of random number.
Further, above-mentioned apparatus further include:
Seed requests generation module, for generating seed transactions requests and being localized storage;
Adding module is identified, for being added to the business transaction request for the Transaction Identifier of the seed transactions requests In.
Further, it is configured with block interval in above-mentioned business transaction request, is divided into the initiation block between the block Reach the block height between the result block.
Further, above-mentioned block interval sets quantity as at least two.
Further, in the centre block between above-mentioned initiation block and the result block, at least one centre block There is no the associated datas requested with the business transaction.
Further, the business participant of above-mentioned business transaction request includes one or more;Multiple business participate in Side includes the initiator and at least one responder of business transaction request;Business transaction request include initiate transactions requests or Response transactions request.
Embodiment eight
Fig. 8 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides.Fig. 8, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 80 of invention embodiment.The equipment 80 that Fig. 8 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.As shown in figure 8, the equipment 80 is showed in the form of universal computing device. The component of the equipment 80 can include but is not limited to: one or more processor or processing unit 801, system storage 802, connect the bus 803 of different system components (including system storage 802 and processing unit 801).
Bus 803 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 80 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 80 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 802 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 804 and/or cache memory 805.Equipment 80 may further include other removable/not removable Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 806 can be used for read and write can not Mobile, non-volatile magnetic media (Fig. 8 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 8, Ke Yiti For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver It can be connected by one or more data media interfaces with bus 803.System storage 802 may include at least one journey Sequence product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this hair The function of bright each embodiment.
Program/utility 808 with one group of (at least one) program module 807, can store and deposit in such as system In reservoir 802, such program module 807 includes but is not limited to operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 807 usually executes function and/or method in embodiment described in the invention.
Equipment 80 can also be logical with one or more external equipments 809 (such as keyboard, sensing equipment, display 810 etc.) Letter, can also be enabled a user to one or more equipment interact with the equipment communicate, and/or with enable the equipment 80 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 811.Also, equipment 80 can also pass through network adapter 812 and one Or multiple networks (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Fig. 8 institute Show, network adapter 812 is communicated by bus 803 with other modules of equipment 80.It should be understood that although not shown in the drawings, can Other hardware and/or software module are used with bonding apparatus 80, including but not limited to: microcode, device driver, redundancy processing Unit, external disk drive array, RAID system, tape drive and data backup storage system etc..For example, if equipment 80 It is configured in block chain node device, then realizes that the embodiment of the present invention one is any described to embodiment three and embodiment five The random digit generation method of block chain;If equipment 80 is configured at business and participates in method, apparatus, realize the embodiment of the present invention four in fact Apply the random digit generation method of block chain described in example five.
Embodiment nine
The embodiment of the present invention nine also provides a kind of computer readable storage medium, be stored thereon with computer program (or For computer executable instructions), which can be used for executing the random number of any one of the above block chain when being executed by processor Generation method.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the embodiment of the present invention operation Computer program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being implemented by above embodiments to the present invention Example is described in further detail, but the embodiment of the present invention is not limited only to above embodiments, is not departing from structure of the present invention It can also include more other equivalent embodiments in the case where think of, and the scope of the present invention is determined by scope of the appended claims It is fixed.

Claims (22)

1. a kind of random digit generation method of block chain, which is characterized in that executed by block chain node, which comprises
Business transaction request is obtained, and is handled, business transaction data are added to and are initiated in block;
If the business transaction request is needed using random number, in the generation period of result block, receive and the industry The business associated seed transactions requests of transactions requests;Wherein, the result block is the subsequent block for initiating block, the seed thing Business request is provided by the business participant that the business transaction is requested;
According to the kind substring in the seed transactions requests, random number is generated based on setting random algorithm;
Service processing result is generated according to the random number and business transaction request, is added in the result block.
2. the method according to claim 1, wherein according to the kind substring in the seed transactions requests, Before setting random algorithm generation random number, further includes:
According to the seed Transaction Identifier carried in business transaction request, the seed transactions requests are verified.
3. the method according to claim 1, wherein after obtaining business transaction request, further includes:
If business transaction request is needed using random number, according to the block interval of business transaction request configuration or According to the block interval that preset rules configure, wait the block interval of setting quantity up to the generation period of the result block.
4. according to the method described in claim 3, it is characterized in that, the quantity that sets is at least two.
5. according to the method described in claim 4, it is characterized in that, the centre initiated between block and the result block In block, at least one centre block, which is not present, requests associated data with the business transaction.
6. method according to claim 4 or 5, which is characterized in that according to the seed character in the seed transactions requests String, generating random number based on setting random algorithm includes:
According in the seed transactions requests kind substring and the centre block it is block-identified, based on setting with Machine algorithm generates random number.
7. -5 any method according to claim 1, which is characterized in that provide the business transaction of the seed transactions requests The participant of request includes one or more;Multiple participants include initiator and at least one sound of business transaction request Ying Fang;The business transaction request includes initiating transactions requests or response transactions request.
8. the method according to the description of claim 7 is characterized in that being produced according to the random number and business transaction request Raw service processing result, is added in the result block and includes:
It is obtained according to the initiation transactions requests and initiates data, at least one is responded according to associated by the initiation transactions requests Transactions requests obtain response data;
According to the initiation data, response data and the random number, the business intelligence contract of the business transaction request is run, To generate service processing result, it is added in the result block.
9. according to the method described in claim 8, it is characterized in that, the initiation block is one or more;Multiple hairs It rises in block and records the initiation data and at least one response data respectively.
10. according to the method described in claim 9, it is characterized in that, the initiation transactions requests be guess initiate transactions requests, The response transactions request is guess response transactions request.
11. -5 any method according to claim 1, which is characterized in that according to the seed in the seed transactions requests Character string, generating random number based on setting random algorithm includes:
Random number intelligence contract is called, according to the kind substring in the seed transactions requests, is produced based on setting random algorithm Raw random number.
12. -5 any method according to claim 1, which is characterized in that if business transaction request need using After random number, further includes:
If the business transaction request needs that the business participant of the business transaction request is notified to provide using random number The seed transactions requests.
13. a kind of random digit generation method of block chain, which is characterized in that executed by business participant, which comprises
Business transaction request is sent to block chain network, business transaction request is handled with request, and by business transaction data It is added to and initiates in block;
It is sent to block chain network and requests associated seed transactions requests with the business transaction, to request the life in result block At in the period, random number is generated according to the kind substring in the seed transactions requests, and according to the random number and institute It states business transaction request and generates service processing result, be added in the result block;Wherein, the result block is to initiate area The subsequent block of block.
14. according to the method for claim 13, which is characterized in that before sending business transaction request to block chain network, Further include:
It generates seed transactions requests and is localized storage;
It is added to the Transaction Identifier of the seed transactions requests in the business transaction request.
15. according to the method for claim 13, which is characterized in that it is configured with block interval in the business transaction request, It is divided into the initiation block between the block and reaches block height between the result block.
16. according to the method for claim 15, which is characterized in that the block interval sets quantity as at least two.
17. according to the method for claim 16, which is characterized in that between the initiation block and the result block Between in block, the associated data requested with the business transaction is not present at least one centre block.
18. any method of 3-17 according to claim 1, which is characterized in that the business of the business transaction request participates in Side includes one or more;Multiple business participants include the initiator and at least one responder of business transaction request; The business transaction request includes initiating transactions requests or response transactions request.
19. a kind of generating random number device of block chain, which is characterized in that be configured in block chain node, described device includes:
Service request obtains module, for obtaining business transaction request, and is handled, business transaction data are added to hair It rises in block;
Seed request receiving module, if needed for business transaction request using random number, in the life of result block At in the period, receives and request associated seed transactions requests with the business transaction;Wherein, the result block is to initiate block Subsequent block, the business participant that the seed transactions requests are requested by the business transaction provides;
Random number generation module, for being produced based on setting random algorithm according to the kind substring in the seed transactions requests Raw random number;
Result treatment adding module, for generating service processing result according to the random number and business transaction request, It is added in the result block.
20. a kind of generating random number device of block chain, which is characterized in that be configured at business participant, described device includes:
Service request sending module handles the business transaction for sending business transaction request to block chain network with request Request, and business transaction data are added to and are initiated in block;
Seed request sending module requests associated kind of subtransaction to be asked for sending to block chain network with the business transaction It asks, to request in the generation period of result block, random number is generated according to the kind substring in the seed transactions requests, And service processing result is generated according to the random number and business transaction request, it is added in the result block;Its In, the result block is the subsequent block for initiating block.
21. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now random digit generation method of the block chain as described in any in claim 1-12 or 13-18.
22. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The random digit generation method of the block chain as described in any in claim 1-12 or 13-18 is realized when execution.
CN201910093971.8A 2019-01-30 2019-01-30 Random number generation method, device, equipment and storage medium for block chain Active CN109753269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910093971.8A CN109753269B (en) 2019-01-30 2019-01-30 Random number generation method, device, equipment and storage medium for block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910093971.8A CN109753269B (en) 2019-01-30 2019-01-30 Random number generation method, device, equipment and storage medium for block chain

Publications (2)

Publication Number Publication Date
CN109753269A true CN109753269A (en) 2019-05-14
CN109753269B CN109753269B (en) 2021-11-09

Family

ID=66407213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910093971.8A Active CN109753269B (en) 2019-01-30 2019-01-30 Random number generation method, device, equipment and storage medium for block chain

Country Status (1)

Country Link
CN (1) CN109753269B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427782A (en) * 2019-07-23 2019-11-08 杭州云象网络技术有限公司 A kind of random digit generation method based on block chain
CN110780847A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN111125259A (en) * 2019-12-31 2020-05-08 预言机(重庆)科技有限公司 Random seed providing method based on block chain bottom layer
TWI726650B (en) * 2020-03-11 2021-05-01 宏碁股份有限公司 Blockchain random number generating system amd blockchain random number generating method
CN113448541A (en) * 2020-03-26 2021-09-28 宏碁股份有限公司 Block chain random number generation system and block chain random number generation method
CN114338051A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Method, device, equipment and medium for acquiring random number by block chain
CN114422143A (en) * 2022-01-13 2022-04-29 中国平安人寿保险股份有限公司 Artificial intelligence based dynamic data encryption method, device, equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060114988A1 (en) * 2004-11-16 2006-06-01 Cristina Gomila Bit-accurate seed initialization for pseudo-random number generators used in a video system
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
CN108365960A (en) * 2017-12-29 2018-08-03 北京欧链科技有限公司 Random number providing method and device
KR101887964B1 (en) * 2017-04-28 2018-08-13 주식회사 더블체인 Blockchain core server having security ability based on quantum random number, blockchain security method and electronic cash exchange system
CN108665253A (en) * 2018-05-18 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data processing method, device, equipment and the storage medium of block chain network
CN108845790A (en) * 2018-06-20 2018-11-20 胡晓东 A kind of application block chain generates the method and relevant apparatus of credible random number
CN108964905A (en) * 2018-07-18 2018-12-07 胡祥义 A kind of safe and efficient block chain implementation method
CN109002487A (en) * 2018-06-25 2018-12-14 百度在线网络技术(北京)有限公司 A kind of post-processing approach based on copyright registration information, device, equipment and medium
CN109034756A (en) * 2018-06-14 2018-12-18 胡晓东 Block chain digital asset distributing method and relevant apparatus based on random number

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060114988A1 (en) * 2004-11-16 2006-06-01 Cristina Gomila Bit-accurate seed initialization for pseudo-random number generators used in a video system
KR101887964B1 (en) * 2017-04-28 2018-08-13 주식회사 더블체인 Blockchain core server having security ability based on quantum random number, blockchain security method and electronic cash exchange system
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
CN108365960A (en) * 2017-12-29 2018-08-03 北京欧链科技有限公司 Random number providing method and device
CN108665253A (en) * 2018-05-18 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data processing method, device, equipment and the storage medium of block chain network
CN109034756A (en) * 2018-06-14 2018-12-18 胡晓东 Block chain digital asset distributing method and relevant apparatus based on random number
CN108845790A (en) * 2018-06-20 2018-11-20 胡晓东 A kind of application block chain generates the method and relevant apparatus of credible random number
CN109002487A (en) * 2018-06-25 2018-12-14 百度在线网络技术(北京)有限公司 A kind of post-processing approach based on copyright registration information, device, equipment and medium
CN108964905A (en) * 2018-07-18 2018-12-07 胡祥义 A kind of safe and efficient block chain implementation method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427782A (en) * 2019-07-23 2019-11-08 杭州云象网络技术有限公司 A kind of random digit generation method based on block chain
CN110780847A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN110780847B (en) * 2019-10-15 2022-02-25 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN111125259A (en) * 2019-12-31 2020-05-08 预言机(重庆)科技有限公司 Random seed providing method based on block chain bottom layer
CN111125259B (en) * 2019-12-31 2023-08-18 预言机(重庆)科技有限公司 Random seed providing method based on blockchain bottom layer
TWI726650B (en) * 2020-03-11 2021-05-01 宏碁股份有限公司 Blockchain random number generating system amd blockchain random number generating method
CN113448541A (en) * 2020-03-26 2021-09-28 宏碁股份有限公司 Block chain random number generation system and block chain random number generation method
CN113448541B (en) * 2020-03-26 2023-08-01 宏碁股份有限公司 Block chain random number generation system and block chain random number generation method
CN114422143A (en) * 2022-01-13 2022-04-29 中国平安人寿保险股份有限公司 Artificial intelligence based dynamic data encryption method, device, equipment and medium
CN114422143B (en) * 2022-01-13 2023-06-20 中国平安人寿保险股份有限公司 Data dynamic encryption method, device, equipment and medium based on artificial intelligence
CN114338051A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Method, device, equipment and medium for acquiring random number by block chain
CN114338051B (en) * 2022-03-15 2022-06-21 北京百度网讯科技有限公司 Method, device, equipment and medium for acquiring random number by block chain

Also Published As

Publication number Publication date
CN109753269B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN109753269A (en) Random digit generation method, device, equipment and the storage medium of block chain
US11706165B2 (en) Personalized chatbots for inmates
KR102100976B1 (en) Digital assistant processing with stack data structure background
CN111033501B (en) Secure authorization for access to private data in virtual reality
KR102513999B1 (en) Synchronizing access controls between computing devices
CN111355781B (en) Voice information communication management method, device and storage medium
CN109074402A (en) The technology of user's request is responded using natural language machine learning based on example session
CN105814535A (en) In-call virtual assistants
KR20150010988A (en) Session establishment method, server, device, system and apparatus
CN112243526A (en) Voice assisting apparatus and method thereof
US10262551B2 (en) System and method for strategic memory assessment and rehabilitation
US11646033B2 (en) Task completion based on speech analysis
CN104394169B (en) Both sides send personal letter method and server using anonymous way
CN108153420A (en) A kind of information push method, device, server and storage medium
US11514385B2 (en) Agent coaching system
US11495230B2 (en) Predictive analysis system
US20240073320A1 (en) Virtual caller system
US11743380B2 (en) System and method for context aware audio enhancement
CN109615443A (en) User's processing method, device, server and storage medium based on block chain
US11310365B2 (en) Agent action ranking system
CN104598099B (en) A kind of information processing method, device and payment system
US10956115B2 (en) Intelligent exercise music synchronization
WO2020037579A1 (en) Block chain system-based human-machine recognition method and apparatus, and storage medium
US11875372B2 (en) Systems and methods for an interactive online platform
JP6349149B2 (en) Lesson progression system, lesson progression method and lesson progression program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant