CN110519375A - A kind of method and relevant apparatus of synchronizing information - Google Patents

A kind of method and relevant apparatus of synchronizing information Download PDF

Info

Publication number
CN110519375A
CN110519375A CN201910806497.9A CN201910806497A CN110519375A CN 110519375 A CN110519375 A CN 110519375A CN 201910806497 A CN201910806497 A CN 201910806497A CN 110519375 A CN110519375 A CN 110519375A
Authority
CN
China
Prior art keywords
information
random sequence
sequence information
block chain
target
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
CN201910806497.9A
Other languages
Chinese (zh)
Other versions
CN110519375B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910806497.9A priority Critical patent/CN110519375B/en
Publication of CN110519375A publication Critical patent/CN110519375A/en
Application granted granted Critical
Publication of CN110519375B publication Critical patent/CN110519375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F1/00Card games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • A63F13/49Saving the game status; Pausing or ending the game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/75Enforcing rules, e.g. detecting foul play or generating lists of cheating players
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application provides the method and relevant apparatus of a kind of synchronizing information, is capable of providing open and clear information, for carrying out backtracking examination at any time afterwards.This method comprises: first passing through block chain obtains the service requesting information of the first quantity and the random sequence information of the second quantity.Then in the service requesting information of the first quantity, determine the target service solicited message of destination client, then in the random sequence information of the second quantity, determine target random sequence information corresponding with target service solicited message, wherein, target service solicited message is corresponding with sequence of the target random sequence information in the random sequence information of the second quantity in the sequence in the service request of the first quantity.Finally target random sequence information is recorded to block chain and synchronizes storage, so that destination client obtains target random sequence information by block chain.

Description

A kind of method and relevant apparatus of synchronizing information
Technical field
This application involves field of computer technology more particularly to the methods and relevant apparatus of a kind of synchronizing information.
Background technique
With the fast development of computer technology, also increase therewith on terminal device for the business of consumer entertainment, for example, Chess and card games.
When the server of chess and card games receive client transmission deal out the cards solicited message after, it will usually by calculating at random Method is shuffled, specifically, server randomly selects one card from 52 boards, then extracts second from remaining 51 boards Board is opened, and so on, until the extraction of all boards is completed, at this point, available one random sequence information of dealing out the cards of server (sequence of dealing out the cards being made of 52 boards), and the sequence information of dealing out the cards is back to client can be completed and deal out the cards.
However, it is above-mentioned deal out the cards during, deal out the cards sequence information since server is based on random algorithm generation, the sequence of dealing out the cards Column information is not open and clear, when server by malicious attack cause to deal out the cards sequence be tampered when, then can not be to sequence of dealing out the cards Information is recalled.
Summary of the invention
The embodiment of the present application provides the method and relevant apparatus of a kind of synchronizing information, is capable of providing open and clear letter Breath, for carrying out backtracking examination at any time afterwards.
The embodiment of the present application first aspect provides a kind of method of synchronizing information, comprising:
The service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the service requesting information of first quantity, the target service solicited message of destination client is determined;
In the random sequence information of second quantity, determine corresponding with target service solicited message target with Machine sequence information, wherein sequence of the target service solicited message in the service request of first quantity and the mesh It is corresponding to mark sequence of the random sequence information in the random sequence information of second quantity;
The target random sequence information is recorded to the block chain and synchronizes storage, so that the destination client The target random sequence information is obtained by the block chain.
The embodiment of the present application second aspect provides a kind of device of synchronizing information, comprising:
First obtain module, for by block chain obtain the first quantity service requesting information and the second quantity it is random Sequence information;
First determining module, for determining the target of destination client in the service requesting information of first quantity Service requesting information;
Second determining module, in the random sequence information of second quantity, determination to be asked with the target service Seek the corresponding target random sequence information of information, wherein the target service solicited message is asked in the business of first quantity The sequence asked is corresponding with sequence of the target random sequence information in the random sequence information of second quantity;
First logging modle synchronizes storage for recording the target random sequence information to the block chain, So that the destination client obtains the target random sequence information by the block chain.
Based on second aspect, in the embodiment of the present application in the first implementation of second aspect, described device further include:
Generation module, for generating the random sequence information of third quantity;
Second logging modle is synchronized for recording the random sequence information of the third quantity to the block chain Storage, so that remaining server obtains the random sequence information of the third quantity by the block chain;
Second obtains module, for the random sequence information by the block chain the 4th quantity of acquisition, wherein described the The random sequence information of four quantity is remaining described server random sequence information generated;
Merging module, for by the random sequence information of the random sequence information of the third quantity and the 4th quantity It merges, obtains the random sequence information of second quantity;
Third logging modle is synchronized for recording the random sequence information of second quantity to the block chain Storage, to carry out information common recognition.
The first implementation based on second aspect, second of implementation of second aspect in the embodiment of the present application In, the merging module is also used to:
The random sequence information of the random sequence information of the third quantity and the 4th quantity is subjected to duplicate removal;
Remaining random sequence information after duplicate removal is temporally stabbed and is ranked up, the random sequence of second quantity is obtained Information.
Based on second aspect, in the embodiment of the present application in the third implementation of second aspect, described device further include:
Third obtains module, for obtaining the service requesting information of each client by the block chain;
Sorting module is ranked up for temporally stabbing the service requesting information of each client, is obtained described The service requesting information of first quantity;
4th logging modle is synchronized for recording the service requesting information of first quantity to the block chain Storage, to carry out information common recognition.
The third implementation based on second aspect, the 4th kind of implementation of second aspect in the embodiment of the present application In, the service requesting information carries service identification, the service identification and the client for generating the service requesting information End corresponds to, and first determining module is also used to:
Obtain the service identification corresponding with the destination client;
According to the service identification corresponding with the destination client in the service requesting information of first quantity, Determine target service solicited message.
It is any in the 4th kind of mode based on the first of second aspect or second aspect implementation to second aspect One kind, in the embodiment of the present application in the 5th kind of implementation of second aspect, the target service solicited message is described first In the service requesting information of quantity sequence with the target random sequence information second quantity random sequence information In sequence it is identical.
The embodiment of the present application third aspect provides a kind of network equipment, comprising: memory, transceiver, processor and Bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
The service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the service requesting information of first quantity, the target service solicited message of destination client is determined;
In the random sequence information of second quantity, determine corresponding with target service solicited message target with Machine sequence information, wherein sequence of the target service solicited message in the service request of first quantity and the mesh It is corresponding to mark sequence of the random sequence information in the random sequence information of second quantity;
The target random sequence information is recorded to the block chain and synchronizes storage, so that the destination client The target random sequence information is obtained by the block chain;
The bus system is for connecting the memory and the processor, so that the memory and the place Reason device is communicated.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, including instruction, when it is in computer When upper operation, so that computer executes method as described in relation to the first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
The embodiment of the present application provides a kind of method of synchronizing information, this method comprises: first passing through block chain obtains first The random sequence information of the service requesting information of quantity and the second quantity.Then in the service requesting information of the first quantity, really The target service solicited message for the client that sets the goal, then in the random sequence information of the second quantity, determining and target service The corresponding target random sequence information of solicited message, wherein target service solicited message is in the service request of the first quantity It sorts corresponding with sequence of the target random sequence information in the random sequence information of the second quantity.Finally by target random sequence Information records to block chain and synchronizes storage, so that destination client obtains target random sequence information by block chain.On During stating, after server determines target service solicited message in multiple service requesting informations, it can be asked according to target service It asks the sequence of information to determine corresponding target random sequence information in multiple random sequence information, and target random sequence is believed Breath synchronizes storage on block chain, so that the available target random sequence information in destination client, due to target Random sequence information is recorded on block chain, is open and clear information, for carrying out backtracking examination at any time afterwards.
Detailed description of the invention
Fig. 1 is a configuration diagram of information synchronization system in the embodiment of the present application;
Fig. 2 is one schematic diagram of distributed data collection of decentralization in the embodiment of the present application;
Fig. 3 is a schematic diagram of block chain in the embodiment of the present application;
Fig. 4 is a flow diagram of the method for synchronizing information in the embodiment of the present application;
Fig. 5 is server A random sequence information schematic diagram generated in the embodiment of the present application;
The random sequence information schematic diagram that Fig. 6 is merged by server A in the embodiment of the present application;
Fig. 7 is an application examples schematic diagram of the method for synchronizing information in the embodiment of the present application;
Fig. 8 is a structural schematic diagram of the device of synchronizing information in the embodiment of the present application;
Fig. 9 provides a structural schematic diagram of the middle network equipment for the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides the method and relevant apparatus of a kind of synchronizing information, is capable of providing open and clear letter Breath, for carrying out backtracking examination at any time afterwards.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " corresponding to " and their times What is deformed, it is intended that cover it is non-exclusive include, for example, contain the process, method of a series of steps or units, system, Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for The intrinsic other step or units of these process, methods, product or equipment.
It should be understood that the method for synchronizing information provided by the present application is applied to the random scene for generating data, for example, in chess and card In class game, when client opens a gambling party, server is after receiving the solicited message of dealing out the cards that client is sent, to client A random sequence information (sequence of dealing out the cards) is returned to, user practises fraud in order to prevent, needs to guarantee disclosing for random sequence information It is bright.Based on above-mentioned scene, the application realizes a credible and reliable data processing system using the mechanism of block chain, specifically It can be chess/card game to deal out the cards system.
In order to make it easy to understand, this method is applied to information shown in FIG. 1 present applicant proposes a kind of method of synchronizing information Synchronization system, referring to Fig. 1, Fig. 1 is a configuration diagram of information synchronization system in the embodiment of the present application, as shown in Figure 1, Information synchronization system includes terminal device A, terminal device B, terminal device C, server A and server B, wherein terminal device A, terminal device B, terminal device C, server A and server B pass through network connection.Assuming that every server is business service Device, the business service implement body can be chess/card game server.Wherein, each of the embodiment of the present application server can be with The service of dealing out the cards is carried out for the terminal device in some region, for example, being taken when terminal device A and terminal device B carries out server A The region (such as some chess/card game room) of business, and terminal device A and terminal device B open one innings of chess/card game, at this point, Then the service of dealing out the cards is provided for terminal device A and terminal device B by server A.Server A receiving terminal apparatus A and/or terminal are set After the solicited message of dealing out the cards that standby B is issued, then a random sequence information (sequence of dealing out the cards) can be determined, and be synchronized to block chain On, so that terminal device A and/or terminal device B obtain the random sequence information.
It should be noted that terminal device include but be not limited only to tablet computer, laptop, palm PC, mobile phone, Interactive voice equipment and PC (personal computer, PC), herein without limitation.Server can be with independent The server cluster of server either multiple servers composition is realized.
It should be understood that only being schematically illustrated in Fig. 1 with the quantity of two servers and three terminal devices, not to this The quantity of server and terminal device is construed as limiting in the information synchronization system that application embodiment provides.
In order to make it easy to understand, referring to Fig. 2, Fig. 2 is the distributed data collection one of decentralization in the embodiment of the present application A schematic diagram has in going as shown, block chain (BlockChain) may be considered a distributed data record account The distributed data collection mode of the heart, either terminal device, server or Cloud Server, are involved in the record of data, And the data being recorded on block chain cannot be deleted and distort.Block chain technology mainly lets on any number of sections in system Point contains certain time in each data block by a string of data blocks (block) using the associated generation of cryptography method Interior system all information exchanges data, and generates data fingerprint for verifying the validity and link (chain) of its information Next data block.
Based on above-mentioned introduction, referring to Fig. 3, Fig. 3 is a schematic diagram of block chain in the embodiment of the present application, as schemed institute Show, block T, block T+1 and block T+2 are connected in series on same chain (Chian) according to order of occurrence, are entire accounts The log recording of this state change.Block records All Activity and state outcome in a period of time, is to current account book state Primary common recognition.Leading block cryptographic Hash in block is for being associated with previous block, such as the leading block cryptographic Hash of block T+1 For being associated with block T.Transaction in block indicates to lead to the primary change of account book state, for example add once to the operation of account book Add a record of transferring accounts.Metadata for recording specific transaction content, such as exchange hour stamp, transaction cipher-text information and Block length etc..
In realization, it assumes initially that there are a distributed data record account book, this account book only allows to add, not permit Perhaps it deletes.The basic structure of account book bottom is a linear chained list, and chained list is composed in series by block one by one, as shown in figure 3, Subsequent block records the cryptographic Hash of leading block.New data will be added, it is necessary to be put into a new block.And this block Whether (and transaction in block) be legal, can quickly be tested out by way of calculating cryptographic Hash.Any maintenance node is all Possess the record of whole blocks, and can propose a new legal block, however has to pass through certain common recognition mechanism and come pair The block of final choice is reached an agreement.
In the application, the sequence of dealing out the cards (i.e. board spectrum) after shuffling at random, and benefit can be recorded in the transaction of block Realize that a credible and reliable chess/card game is dealt out the cards system with the mechanism of block chain.
In conjunction with above-mentioned introduction, below by from the angle of a certain server in information synchronization system, to information in the application Synchronous method is introduced.Fig. 4 is a flow diagram of the method for synchronizing information in the embodiment of the present application, please refers to figure 4, one embodiment of the method for synchronizing information in the embodiment of the present application, comprising:
401, the service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the present embodiment, server first obtains the service requesting information and the second quantity of the first quantity from block chain Random sequence information, it should be noted that the random sequence information of the service requesting information of the first quantity and the second quantity is All node (including Servers-all and all clients) obtained information after information is known together in block chain.
Wherein, service requesting information can be by the client section time interior service request issued, for example, chess category is swum Request that client was issued in play deal out the cards is used correspondingly, then server is generated within this time for random sequence information In the information of answering service request, for example, the sequence of dealing out the cards that server generates at random in chess and card games.Wherein, server exists The mode that random sequence information is generated in this time can generate random sequence, the code of the algorithm by using random algorithm It is open, guarantee that information transparency is traceable.It should be noted that the service requesting information and random sequence information in the present embodiment are Refer to the information generated within the same time, be used for the mutual response in business, also, in this time, each server is given birth to At random sequence information and each client service requesting information generated, will record to block chain to synchronize and deposit Storage, so that block chain is stored with the service requesting information of the first quantity and the random sequence information of the second quantity.
It should be understood that the quantity of service requesting information is the first quantity in the present embodiment, the quantity of random sequence information is the Two quantity, wherein the first quantity and the second quantity are all larger than equal to 1, and the first quantity and the second quantity can be identical or not Together, herein with no restrictions.
402, in the service requesting information of the first quantity, the target service solicited message of destination client is determined;
Server after the service requesting information for obtaining the first quantity, can from the service requesting information of the first quantity, Determine the target service solicited message of destination client.Since a server can carry out business for the client in specific region Service, therefore, the client visible which is serviced are destination client.
The service requesting information for the first quantity that block chain is recorded is each client service requesting information generated Set, therefore, server can determine that the destination client of its service is issued in the service requesting information of the first quantity Service requesting information, i.e. target service solicited message.For example, server A can in the service requesting information from the first quantity, Determine its service customer end A issue service requesting information, server B can from the service requesting information of the first quantity, Determine the service requesting information etc. that the client C of its service is issued.
403, in the random sequence information of the second quantity, target stochastic ordering corresponding with target service solicited message is determined Column information, wherein sequence of the target service solicited message in the service request of the first quantity and target random sequence information exist Sequence in the random sequence information of second quantity is corresponding;
Server after obtaining the random sequence information of the second quantity, can from the random sequence information of the second quantity, Determine target random sequence information corresponding with target service solicited message.Specifically, server can be asked according to target service Ask sequence of the information in the service request of the first quantity, determined from the random sequence information of the second quantity corresponding target with Machine sequence information.Optionally, sequence of the target service solicited message in the service request of the first quantity and target random sequence Sequence of the information in the random sequence information of the second quantity is identical.It is still illustrated with above-mentioned example, if block chain stores There are 50 service requesting informations and 80 random sequence information, server A deals out the cards at ordering 50 and determines client in request End A is generated to deal out the cards request row when the 12nd, then selection is arranged in the 12nd hair from ordering 80 sequences of dealing out the cards Board sequence is as the sequence of dealing out the cards for returning to customer end A.
404, target random sequence information is recorded to block chain and synchronizes storage, so that destination client passes through block Chain obtains target random sequence information.
Target random sequence information is then recorded to block chain and is carried out together after determining target random sequence information by server Step storage, so that destination client obtains target random sequence information by block chain.Destination client is random in handplay target It, then can be by target random sequence Information application in corresponding business, for example, customer end A is by server A institute after sequence information The sequence of dealing out the cards returned is applied in pending gambling party.
It, can basis after server determines target service solicited message in multiple service requesting informations in the present embodiment The sequence of target service solicited message determines corresponding target random sequence information in multiple random sequence information, and by target Random sequence information synchronizes storage on block chain, so that the available target random sequence letter in destination client Breath is open and clear information since target random sequence information is recorded on block chain, is looked into for carrying out backtracking at any time afterwards It tests.
Optionally, based on embodiment corresponding to Fig. 4, an optional reality of the method for synchronizing information in the embodiment of the present application It applies in example, before the service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain, the party Method further include:
Generate the random sequence information of third quantity;
The random sequence information of third quantity is recorded to block chain and synchronizes storage, so that remaining server passes through The random sequence information of block chain acquisition third quantity;
The random sequence information of the 4th quantity is obtained by block chain, wherein the random sequence information of the 4th quantity is it Remaining server random sequence information generated;
The random sequence information of third quantity and the random sequence information of the 4th quantity are merged, the second quantity is obtained Random sequence information;
The random sequence information of second quantity is recorded to block chain and synchronizes storage, to carry out information common recognition.
In the present embodiment, the server in block chain can generate (the following letter of random sequence of dealing out the cards at regular intervals Claim random sequence information) generation, during this period of time, at least one random sequence information can be generated in each server, should Information represents the sequence dealt out the cards.It for ease of description, below will (server be to execute this Shen with one of server Please embodiment server) be introduced as example, which generates the stochastic ordering of third quantity in a certain period of time Column information, wherein third quantity less than the first quantity, then the server then by the random sequence information of third quantity record to Block chain synchronizes storage, so that remaining server obtains the random sequence information of third quantity by block chain, needs Illustrate, remaining server is other servers in addition to the server for executing the embodiment of the present application, it is other each Server can also generate a certain number of random sequence information, and summation is the random sequence information of the 4th quantity, and records Storage is synchronized to block chain, therefore, which can obtain the random sequence information of the 4th quantity by block chain, with This analogizes, and each server can obtain other servers random sequence information generated by block chain.
The server obtains the random sequence information of the 4th quantity, then the stochastic ordering for the third quantity that can be generated itself The random sequence information of column information and the 4th quantity merges, and obtains the random sequence information of the second quantity, then second is counted The random sequence information of amount, which is recorded to block chain, synchronizes storage, to carry out information common recognition.It should be noted that remaining is serviced Device can also execute the step of similar above-mentioned merging process, and the random sequence information of the second quantity, all services equally also can be obtained Device and all clients fast implement the random sequence information for being directed to the second quantity information common recognition after, the second quantity it is random Sequence information then can recorde on block chain, so that all nodes carry out open and clear access.
Optionally, based on each embodiment corresponding to Fig. 4, one of the method for synchronizing information can in the embodiment of the present application It selects in embodiment, the random sequence information of third quantity and the random sequence information of the 4th quantity is merged, obtain second The random sequence information of quantity includes:
The random sequence information of the random sequence information of third quantity and the 4th quantity is subjected to duplicate removal;
Remaining random sequence information after duplicate removal is temporally stabbed and is ranked up, the random sequence letter of the second quantity is obtained Breath.
In the present embodiment, the server of the embodiment of the present application is executed by the random sequence information of third quantity and the 4th quantity The mode that merges of random sequence information can be with are as follows: the server local is stored with the random sequence information of third quantity, And remaining server random sequence information generated gradually is obtained from block chain.Since the random sequence information of the 4th quantity is Remaining multiple server random sequence information generated, during this period of time, which can obtain the 4th quantity in batches Random sequence information in partial information (such as obtain another server in period random sequence generated letter Breath, then followed by obtaining another server in period random sequence information generated, until obtain it is all remaining Server random sequence information generated), then by each section obtain random sequence information be locally stored it is random Sequence information compares, and identical information is removed and sorted, and then updates the random sequence information collection of server local storage It closes, until all information of the random sequence information of the 4th quantity are acquired and merge, then available second quantity is random Sequence information.
In order to make it easy to understand, being described further explanation to the above process below in conjunction with Fig. 5 and Fig. 6.Fig. 5 is the application Server A random sequence information schematic diagram generated, Fig. 6 are merged by server A in the embodiment of the present application in embodiment Random sequence information schematic diagram.As shown in figure 5, server A generates 5 random sequence information, server within a certain minute A is recorded to block chain.And server B generates 8 random sequences in this minute, during server is run, The random sequence information on block chain can be constantly obtained, after obtaining server B 8 random sequence information generated, Be locally stored 5 random sequence information and server B 8 random sequence information generated are subjected to duplicate removal, determine that there are 3 A identical information obtains 10 random sequence information, and this 10 random sequence information is temporally stabbed and are arranged after merging (timestamp is each random sequence information time generated to sequence, in the present embodiment, since the precision of timestamp is very high, is appointed It is not the same between the timestamp for two random sequence information of anticipating), it is locally stored is updated to 10 random sequence information at this time. Likewise, can be incited somebody to action if server A has also got server C 6 random sequence information generated in this minute It is compared with 10 random sequence information being locally stored, and after duplicate removal and sorts, and obtains 15 random sequence information.With this Analogize, as shown in fig. 6, up to server A has obtained the random sequence information of other Servers-alls, and complete duplicate removal and row Sequence finally obtains a complete random sequence information aggregate, i.e., the random sequence information of above-mentioned second quantity, then is recorded To block chain, to carry out information common recognition.It should be noted that remaining server, such as server B, server C are similarly held Row is such as the operation of server A, and details are not described herein again.
Optionally, based on each embodiment corresponding to Fig. 4, one of the method for synchronizing information can in the embodiment of the present application It selects in embodiment, before the service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain, This method further include:
The service requesting information of each client is obtained by block chain;
The service requesting information of each client is temporally stabbed and is ranked up, the service request letter of the first quantity is obtained Breath;
The service requesting information of first quantity is recorded to block chain and synchronizes storage, to carry out information common recognition.
In the present embodiment, the service requesting information that the multiple client in the same area is issued can be considered as same Service requesting information has two for example, being located in a certain room that server A is serviced (or in some game subregion etc.) A destination client (respectively customer end A and customer end B) starts a gambling party, then can be considered that two clients have issued Same request of dealing out the cards.Therefore, because there are multiple servers in block chain, each server has corresponded at least one target Client after all clients successively open gambling party within certain time, can generate service request corresponding with each gambling party Information, and record into block chain.
The server of the embodiment of the present application is executed after obtaining all clients service requesting information generated, the service Device, which can temporally stab the partial service solicited message, to be ranked up to get to the service requesting information of the first quantity, then will The service requesting information of first quantity records to block chain and synchronizes storage, to carry out information common recognition.Likewise, remaining is serviced Device can also execute identical operation, after all nodes are completed to know together for the information of the service requesting information of the first quantity, the The service requesting information of one quantity then can recorde on block chain, so that all nodes carry out open and clear access.
Optionally, based on each embodiment corresponding to Fig. 4, one of the method for synchronizing information can in the embodiment of the present application It selects in embodiment, service requesting information carries service identification, and service identification is corresponding with the client of service requesting information is generated, In In the service requesting information of first quantity, determine that the target service solicited message of destination client includes:
Obtain service identification corresponding with destination client;
According to service identification corresponding with destination client in the service requesting information of the first quantity, target service is determined Solicited message.
In the present embodiment, each service requesting information carries service identification, such as gambling party mark, therefore, the gambling party Mark is then corresponding with the client in the gambling party.It, can be with after server obtains the service requesting information of the first quantity First obtain which industry service identification corresponding with destination client determines then in the service requesting information of the first quantity Solicited message of being engaged in has service identification corresponding with destination client, then can determine it as target service solicited message.
For example, there are two target customers in a certain room that server A is serviced (or in some game subregion etc.) End (respectively customer end A and customer end B) opens a gambling party, and what customer end A and/or customer end B were issued at this time deals out the cards Request can carry gambling party mark a.In general, server A is previously provided with multiple gambling party marks, therefore, server A can root The request of dealing out the cards for carrying gambling party mark a is determined in multiple requests of dealing out the cards according to gambling party mark a.Likewise, once it is determined that with taking After dealing out the cards with gambling party mark a requests corresponding sequence of dealing out the cards, then the request that this can be dealt out the cards is determined as being sent to customer end A With the sequence of customer end B.
For a further understanding of, below in conjunction with a concrete application example to the method for synchronizing information in the embodiment of the present application into Row is introduced, and Fig. 7 is an application examples schematic diagram of the method for synchronizing information in the embodiment of the present application, referring to Fig. 7, the application examples Include:
701, each server generates random sequence;
In the application example, random sequence is random sequence of dealing out the cards.
702, all random sequences are temporally stabbed and is ranked up, and be synchronized to block chain, to carry out information common recognition;
703, each gambling party is dealt out the cards request, and block chain is synchronized to;
In the application example, the client in gambling party generates and issues request of dealing out the cards.
704, all nodes summarize request of dealing out the cards, and temporally stamp is ranked up, and are synchronized to block chain, total to carry out information Know;
705, each server obtains the random sequence after sequence and request of dealing out the cards;
706, each server, which determines to deal out the cards with target, requests corresponding random sequence, by the sequence synchronization to block chain.
In the application example, each server can determine the destination client of its server, and then determine that target is dealt out the cards request, And will deal out the cards with target and request corresponding sequence synchronization of dealing out the cards to block chain, so that destination client obtains accordingly from block chain Request of dealing out the cards, for executing gambling party.
It is to be illustrated to what the method for synchronizing information in the embodiment of the present application carried out above, the application will be implemented below The structure and connection relationship of the device of synchronizing information are introduced in example, and Fig. 8 is the device of synchronizing information in the embodiment of the present application A structural schematic diagram, referring to Fig. 8, in the embodiment of the present application the device of synchronizing information one embodiment, comprising:
First obtains module 801, for obtaining the service requesting information and second quantity of the first quantity by block chain Random sequence information;
First determining module 802, in the service requesting information of the first quantity, determining the target industry of destination client Business solicited message;
Second determining module 803, for determining and target service solicited message in the random sequence information of the second quantity Corresponding target random sequence information, wherein sequence and mesh of the target service solicited message in the service request of the first quantity It is corresponding to mark sequence of the random sequence information in the random sequence information of the second quantity;
First logging modle 804 synchronizes storage for recording target random sequence information to block chain, so that mesh It marks client and target random sequence information is obtained by block chain.
Optionally, based on embodiment corresponding to Fig. 8, an optional reality of the device of synchronizing information in the embodiment of the present application It applies in example remittance, the device further include:
Generation module, for generating the random sequence information of third quantity;
Second logging modle synchronizes storage for recording the random sequence information of third quantity to block chain, with So that remaining server obtains the random sequence information of third quantity by block chain;
Second obtains module, for obtaining the random sequence information of the 4th quantity by block chain, wherein the 4th quantity Random sequence information is remaining server random sequence information generated;
Merging module, for closing the random sequence information of third quantity and the random sequence information of the 4th quantity And obtain the random sequence information of the second quantity;
Third logging modle synchronizes storage for recording the random sequence information of the second quantity to block chain, with Carry out information common recognition.
Optionally, based on each embodiment corresponding to Fig. 8, one of the device of synchronizing information can in the embodiment of the present application It selects in embodiment remittance, merging module is also used to:
The random sequence information of the random sequence information of third quantity and the 4th quantity is subjected to duplicate removal;
Remaining random sequence information after duplicate removal is temporally stabbed and is ranked up, the random sequence letter of the second quantity is obtained Breath.
Optionally, based on each embodiment corresponding to Fig. 8, one of the device of synchronizing information can in the embodiment of the present application It selects in embodiment remittance, the device further include:
Third obtains module, for obtaining the service requesting information of each client by block chain;
Sorting module is ranked up for temporally stabbing the service requesting information of each client, obtains the first quantity Service requesting information;
4th logging modle synchronizes storage for recording the service requesting information of the first quantity to block chain, with Carry out information common recognition.
Optionally, based on each embodiment corresponding to Fig. 8, one of the device of synchronizing information can in the embodiment of the present application It selects in embodiment remittance, service requesting information carries service identification, and service identification is corresponding with the client of service requesting information is generated, First determining module 802 is also used to:
Obtain service identification corresponding with destination client;
According to service identification corresponding with destination client in the service requesting information of the first quantity, target service is determined Solicited message.
Optionally, based on each embodiment corresponding to Fig. 8, one of the device of synchronizing information can in the embodiment of the present application It selects in embodiment remittance, sequence of the target service solicited message in the service requesting information of the first quantity and target random sequence are believed The sequence ceased in the random sequence information of the second quantity is identical.
It should be noted that the contents such as information exchange, implementation procedure between each module/unit of above-mentioned apparatus, due to The application embodiment of the method is based on same design, and bring technical effect is identical as the application embodiment of the method, particular content Reference can be made to the narration in embodiment of the method shown in the application is aforementioned, details are not described herein again.
The embodiment of the present application also provides a kind of network equipment, Fig. 9 provides the one of the middle network equipment for the embodiment of the present application A structural schematic diagram, the network equipment 900 can generate bigger difference because configuration or performance are different, may include one or More than one central processing unit (central processing units, CPU) 922 is (for example, one or more are handled Device) and memory 932, one or more storage application programs 942 or data 944 storage medium 930 (such as one or More than one mass memory unit).Wherein, memory 932 and storage medium 930 can be of short duration storage or persistent storage.It deposits Storage may include one or more modules (diagram does not mark) in the program of storage medium 930, and each module may include To the series of instructions operation in the network equipment.Further, central processing unit 922 can be set to and storage medium 930 Communication executes the series of instructions operation in storage medium 930 on the network equipment 900.
The network equipment 900 can also include one or more power supplys 926, one or more wired or wireless nets Network interface 950, one or more input/output interfaces 958, and/or, one or more operating systems 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Based on the network equipment shown in Fig. 9, following steps may be implemented:
The service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the service requesting information of the first quantity, the target service solicited message of destination client is determined;
In the random sequence information of the second quantity, target random sequence letter corresponding with target service solicited message is determined Breath, wherein sequence of the target service solicited message in the service request of the first quantity and target random sequence information are second Sequence in the random sequence information of quantity is corresponding;
Target random sequence information is recorded to block chain and synchronizes storage, so that destination client is obtained by block chain Take target random sequence information.
The embodiment of the present application also provides a kind of computer readable storage medium, including instruction, when it runs on computers When, so that computer executes the method such as above-mentioned synchronizing information.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method of synchronizing information characterized by comprising
The service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the service requesting information of first quantity, the target service solicited message of destination client is determined;
In the random sequence information of second quantity, target stochastic ordering corresponding with the target service solicited message is determined Column information, wherein sequence of the target service solicited message in the service request of first quantity and the target with Sequence of the machine sequence information in the random sequence information of second quantity is corresponding;
The target random sequence information is recorded to the block chain and synchronizes storage, so that the destination client passes through The block chain obtains the target random sequence information.
2. the method for synchronizing information according to claim 1, which is characterized in that described to obtain the first quantity by block chain Service requesting information and the second quantity random sequence information before, the method also includes:
Generate the random sequence information of third quantity;
The random sequence information of the third quantity is recorded to the block chain and synchronizes storage, so that remaining server The random sequence information of the third quantity is obtained by the block chain;
The random sequence information of the 4th quantity is obtained by the block chain, wherein the random sequence information of the 4th quantity For remaining described server random sequence information generated;
The random sequence information of the third quantity and the random sequence information of the 4th quantity are merged, obtained described The random sequence information of second quantity;
The random sequence information of second quantity is recorded to the block chain and synchronizes storage, to carry out information common recognition.
3. the method for synchronizing information according to claim 2, which is characterized in that the stochastic ordering by the third quantity Column information and the random sequence information of the 4th quantity merge, and obtain the random sequence packet of second quantity It includes:
The random sequence information of the random sequence information of the third quantity and the 4th quantity is subjected to duplicate removal;
Remaining random sequence information after duplicate removal is temporally stabbed and is ranked up, the random sequence letter of second quantity is obtained Breath.
4. the method for synchronizing information according to claim 1, which is characterized in that described to obtain the first quantity by block chain Service requesting information and the second quantity random sequence information before, the method also includes:
The service requesting information of each client is obtained by the block chain;
The service requesting information of each client is temporally stabbed and is ranked up, the service request of first quantity is obtained Information;
The service requesting information of first quantity is recorded to the block chain and synchronizes storage, to carry out information common recognition.
5. the method for synchronizing information according to claim 4, which is characterized in that the service requesting information carries business mark Know, the service identification is corresponding with the client for generating the service requesting information, the industry in first quantity In solicited message of being engaged in, determine that the target service solicited message of destination client includes:
Obtain the service identification corresponding with the destination client;
According to the service identification corresponding with the destination client in the service requesting information of first quantity, determine Target service solicited message.
6. according to claim 1 to the method for synchronizing information described in 5 any one, which is characterized in that the target service is asked Ask sequence of the information in the service requesting information of first quantity and the target random sequence information in second number Sequence in the random sequence information of amount is identical.
7. a kind of device of synchronizing information characterized by comprising
First obtains module, for obtaining the service requesting information of the first quantity and the random sequence of the second quantity by block chain Information;
First determining module, for determining the target service of destination client in the service requesting information of first quantity Solicited message;
Second determining module, in the random sequence information of second quantity, the request of the determining and target service to be believed Cease corresponding target random sequence information, wherein the target service solicited message is in the service request of first quantity Sequence it is corresponding with sequence of the target random sequence information in the random sequence information of second quantity;
First logging modle synchronizes storage for recording the target random sequence information to the block chain, so that The destination client obtains the target random sequence information by the block chain.
8. the device of synchronizing information according to claim 7, which is characterized in that described device further include:
Generation module, for generating the random sequence information of third quantity;
Second logging modle is deposited for recording to the block chain to synchronize the random sequence information of the third quantity Storage, so that remaining server obtains the random sequence information of the third quantity by the block chain;
Second obtains module, for obtaining the random sequence information of the 4th quantity by the block chain, wherein the 4th number The random sequence information of amount is remaining described server random sequence information generated;
Merging module, for carrying out the random sequence information of the random sequence information of the third quantity and the 4th quantity Merge, obtains the random sequence information of second quantity;
Third logging modle is deposited for recording to the block chain to synchronize the random sequence information of second quantity Storage, to carry out information common recognition.
9. a kind of network equipment characterized by comprising memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
The service requesting information of the first quantity and the random sequence information of the second quantity are obtained by block chain;
In the service requesting information of first quantity, the target service solicited message of destination client is determined;
In the random sequence information of second quantity, target stochastic ordering corresponding with the target service solicited message is determined Column information, wherein sequence of the target service solicited message in the service request of first quantity and the target with Sequence of the machine sequence information in the random sequence information of second quantity is corresponding;
The target random sequence information is recorded to the block chain and synchronizes storage, so that the destination client passes through The block chain obtains the target random sequence information;
The bus system is for connecting the memory and the processor, so that the memory and the processor It is communicated.
10. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as Method described in any one of claims 1 to 6.
CN201910806497.9A 2019-08-27 2019-08-27 Information synchronization method and related device Active CN110519375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910806497.9A CN110519375B (en) 2019-08-27 2019-08-27 Information synchronization method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910806497.9A CN110519375B (en) 2019-08-27 2019-08-27 Information synchronization method and related device

Publications (2)

Publication Number Publication Date
CN110519375A true CN110519375A (en) 2019-11-29
CN110519375B CN110519375B (en) 2021-08-31

Family

ID=68627892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910806497.9A Active CN110519375B (en) 2019-08-27 2019-08-27 Information synchronization method and related device

Country Status (1)

Country Link
CN (1) CN110519375B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033316A (en) * 2018-07-18 2018-12-18 上海源啟信息科技有限公司 Data processing method, device, system, equipment and storage medium
CN109345238A (en) * 2018-08-31 2019-02-15 杭州复杂美科技有限公司 A kind of card game method and system, equipment and storage medium
CN109726984A (en) * 2018-12-20 2019-05-07 深圳智乾区块链科技有限公司 A kind of processing result generation method and its equipment, storage medium, electronic equipment
KR101996675B1 (en) * 2018-09-06 2019-07-04 강진호 Method for providing sports block chain service
CN109985389A (en) * 2019-04-04 2019-07-09 南京邮电大学 Cards game anti-cheating method and its system based on block chain intelligence contract

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033316A (en) * 2018-07-18 2018-12-18 上海源啟信息科技有限公司 Data processing method, device, system, equipment and storage medium
CN109345238A (en) * 2018-08-31 2019-02-15 杭州复杂美科技有限公司 A kind of card game method and system, equipment and storage medium
KR101996675B1 (en) * 2018-09-06 2019-07-04 강진호 Method for providing sports block chain service
CN109726984A (en) * 2018-12-20 2019-05-07 深圳智乾区块链科技有限公司 A kind of processing result generation method and its equipment, storage medium, electronic equipment
CN109985389A (en) * 2019-04-04 2019-07-09 南京邮电大学 Cards game anti-cheating method and its system based on block chain intelligence contract

Also Published As

Publication number Publication date
CN110519375B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN108282527B (en) Generate the distributed system and method for Service Instance
CN110471986B (en) Bill real name getting method and device based on block chain and electronic equipment
AU2018236722A1 (en) Systems and methods for providing block chain-based multifactor personal identity verification
JP2019106180A (en) Method of operating resource by one of plurality of nodes communicating with one another through network, and computer apparatus operating as any one of plurality of nodes communicating with one another through network
CN110309058A (en) Business end test method, device, computer installation and computer storage medium
CN108492108A (en) Across the chain communication means of block chain, system and computer readable storage medium
CN108961052A (en) Verification method, storage method, device, equipment and the medium of block chain data
CN109598598A (en) Transaction processing method and device, electronic equipment based on block chain
CN107330681A (en) A kind of method and apparatus of exchange hour for being used to determine to merchandise outside block chain chain
CN110009338A (en) Bookkeeping methods and device, electronic equipment based on block chain
CN107491965A (en) A kind of method for building up and device in biological characteristic storehouse
CN109919691A (en) A kind of system of data processing, method and device
CN111125118B (en) Associated data query method, device, equipment and medium
CN110278246B (en) Certificate storage service transfer method, device and equipment for alliance chain
CN105389488A (en) Identity authentication method and apparatus
CN109636395A (en) A kind of across the chain transaction processing system of multi-tiling chain and method
CN110009339A (en) Data processing method and device based on block chain
CN110597922A (en) Data processing method, device, terminal and storage medium
CN109543459A (en) A kind of data deposit card method and apparatus
CN110430194A (en) A kind of method of Information Authentication, the method and device of chess and card Information Authentication
CN108596587A (en) It withdraws deposit checking method, device, electronic equipment, program product and storage medium
CN112417052B (en) Data synchronization method, device, equipment and storage medium in block chain network
CN110225103B (en) Service recommendation method, device and equipment
CN112053151A (en) Behavior determination method and apparatus, storage medium, and electronic device
CN110519375A (en) A kind of method and relevant apparatus of synchronizing information

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