CN107798538A - One kind transaction accounting method and client - Google Patents

One kind transaction accounting method and client Download PDF

Info

Publication number
CN107798538A
CN107798538A CN201710884311.2A CN201710884311A CN107798538A CN 107798538 A CN107798538 A CN 107798538A CN 201710884311 A CN201710884311 A CN 201710884311A CN 107798538 A CN107798538 A CN 107798538A
Authority
CN
China
Prior art keywords
block chain
client
transaction
target room
data
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.)
Pending
Application number
CN201710884311.2A
Other languages
Chinese (zh)
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710884311.2A priority Critical patent/CN107798538A/en
Priority to PCT/CN2017/108067 priority patent/WO2019061630A1/en
Publication of CN107798538A publication Critical patent/CN107798538A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses one kind transaction accounting method and client.Present invention method includes:When the client in target room produces the first transaction, client has the first block chain of the first transaction record according to preset original block chain generation record;First block chain is sent to other clients in institute's target room by client, with other described client synchronization the first block chains;When client receives the statistics transaction record instruction that server issues, client extracts transaction data from the first block chain and is sent to the service, to cause transaction data that all clients in server statistics target room report, transaction data most legal in target room is determined.The embodiment of the present invention need not be recorded, check and counted for the All Activity in target room, server, can greatly be mitigated the calculating pressure of server, also more be met non-stop layer thought.

Description

One kind transaction accounting method and client
Technical field
The present invention relates to video display arts field, more particularly to a kind of transaction accounting method and client.
Background technology
At present, net cast is live using internet and stream media technology progress.Live platform is in order to strengthen its income And the interaction between increase spectators, current live platform have reward mechanism of beating, spectators can beat award some presents of main broadcaster with Represent the support to main broadcaster's content.Current live Platform Server can record each transaction and carry out core to each transaction It is right.
But at present in some cases, server also can leaky (bug), also result in final transaction and ask Topic, so needing a kind of management method independent of this central authority of server, the statistical method of non-stop layer is carried out, with The method that a verification is carried out to every transaction, while whether the transaction record that can also verify server is problematic.
The content of the invention
The embodiments of the invention provide one kind transaction accounting method and client, to solve every friendship in live platform at present Easy server be required to participate in the overall process record and verification, excessively reliance server the problem of.
In a first aspect, this application provides one kind merchandise accounting method, this method includes:
When the client in live platform target room produces the first transaction, the client is according to preset original block Chain generation record has the first block chain of first transaction record;
The first block chain is sent to other clients in the target room by the client, with it is described its First block chain described in his client synchronization;
When the client receives the statistics transaction record instruction that the server issues, the client is from described Transaction data is extracted in first block chain and is sent to the service, to cause all of target room described in the server statistics The transaction data that client reports, determine transaction data most legal in the target room.
Further, methods described also includes:
When the client produces the second transaction again, generating record according to the first block chain has described second to hand over The the second block chain easily recorded;
The second block chain is sent to other clients in the target room by the client, with it is described its Second block chain described in his client synchronization.
Further, methods described also includes:
The client receives the 3rd block chain that destination client is sent in the target room, the 3rd block chain The destination client generates when producing transaction;
The client preserves the 3rd block chain chain, to preserve in the client in the target room All Activity data.
Further, methods described also includes:
The client is when receiving the 3rd block chain that destination client is sent in the target room, described in verification The legitimacy of 3rd block chain.
Further, the first block chain includes the block number of block chain, the cryptographic Hash of previous block chain, calculating newly Key values, timestamp, block chain performance data and the current block chain cryptographic Hash of current time of block chain needs, the block Chain performance data includes the room number in the target room, user's mark of the client, the mark of the client and The current transaction data of client.
Second aspect, the application provide a kind of client, and the client includes:
First generation module, for live platform target room client produce first transaction when, according to preset Original block chain generation record has the first block chain of first transaction record;
First sending module, for other clients being sent to the first block chain in the target room, with In the first block chain described in other described client synchronizations;
Second sending module, for receiving the statistics transaction record instruction that the server issues in the client When, extraction transaction data is sent to the service from the first block chain, to cause target described in the server statistics The transaction data that all clients in room report, determine transaction data most legal in the target room.
Further, the client also includes:
Second generation module, for when the client produces the second transaction again, being given birth to according to the first block chain There is the second block chain of second transaction record into record;
3rd sending module, for other clients being sent to the second block chain in the target room, with In the second block chain described in other described client synchronizations.
Further, the client also includes:
Receiving module, for receiving the 3rd block chain that destination client is sent in the target room, the 3rd area The block chain destination client generates when producing transaction;
Preserving module, for preserving the 3rd block chain chain, to preserve the target room in the client Interior All Activity data.
Further, the first block chain includes the block number of block chain, the cryptographic Hash of previous block chain, calculating newly Key values, timestamp, block chain performance data and the current block chain cryptographic Hash of current time of block chain needs, the block Chain performance data includes the room number in the target room, user's mark of the client, the mark of the client and The current transaction data of client.
The third aspect, the present invention also provide a kind of client, including:Memory, processor and is stored in the memory Computer program that is upper and can running on the processor, wherein, can be with during computer program described in the computing device Realize any described method in first aspect.
Fourth aspect, the present invention also provide a kind of computer-readable recording medium, are stored thereon with computer program, the journey Any described method in first aspect is realized when sequence is executed by processor.
For the embodiment of the present invention when the client in target room produces the first transaction, client is according to preset original block Chain generation record has the first block chain of the first transaction record;First block chain is sent to its in institute's target room by client His client, with other described client synchronization the first block chains;The statistics transaction that server issues is received in client During recording instruction, client extracts transaction data from the first block chain and is sent to the service, to cause server statistics mesh The transaction data that all clients in mark room report, determines transaction data most legal in target room.The embodiment of the present invention In when a client is merchandised in target room, one can be generated and record the new block chain for having the transaction, and this is new Block chain is sent to other clients in target room so that the transaction record of all clients is synchronous in target room, right All Activity in target room, server need not be recorded, check and counted, and can greatly mitigate the calculating of server Pressure, also more meet non-stop layer thought.
Brief description of the drawings
Fig. 1 is one embodiment schematic diagram of transaction accounting method in the embodiment of the present invention;
Fig. 2 be shown in Fig. 1 on the basis of the embodiment of the present invention in merchandise another embodiment schematic diagram of accounting method;
Fig. 3 be shown in Fig. 1 on the basis of the embodiment of the present invention in merchandise another embodiment schematic diagram of accounting method;
Fig. 4 is one embodiment schematic diagram of client in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram of client in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of client in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of client in the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
The (if present)s such as term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing It is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that the number so used According to can exchange in the appropriate case, so as to the embodiments described herein can with except the content for illustrating or describing herein with Outer order is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover non-exclusive bag Contain, for example, containing the process of series of steps or unit, method, system, product or equipment is not necessarily limited to what is clearly listed Those steps or unit, but may include not listing clearly or intrinsic for these processes, method, product or equipment Other steps or unit.
In the embodiment of the present invention, server i.e. server corresponding to live platform, client can be user terminal, example Such as mobile phone, tablet personal computer intelligent terminal, target room be live platform on main broadcaster establish direct broadcasting room, destination client be into Enter the client of the target direct broadcasting room.Block chain be it is a kind of sequentially in time by data block by sequentially be connected in a manner of combine Into a kind of linked data structure, and the distributed account book that can not be distorted He can not forge ensured in a manner of cryptography.
Referring to Fig. 1, the one embodiment for checking method of being merchandised in the embodiment of the present invention includes:
S101, when the client in target room produces the first transaction, client generates according to preset original block chain Record has the first block chain of the first transaction record;
In the present embodiment, each client in live platform target room preserves original block in original state Chain, when the client in target room is not merchandised once, i.e., the block chain for newly including this transaction data can be generated, and Other clients being synchronized in the target room are sent, make it that all clients have all recorded the target in the target room All Activity data in room.
First block chain is sent to other clients in target room by S102, client, with same in other clients Walk the first block chain;
S103, when client receives the statistics transaction record instruction that server issues, client is from the first block chain Middle extraction transaction data is sent to the service, to cause number of deals that all clients in server statistics target room report According to determining transaction data most legal in target room.
For the embodiment of the present invention when the client in target room produces the first transaction, client is according to preset original block Chain generation record has the first block chain of the first transaction record;First block chain is sent to its in institute's target room by client His client, with other described client synchronization the first block chains;The statistics transaction that server issues is received in client During recording instruction, client extracts transaction data from the first block chain and is sent to the service, to cause server statistics mesh The transaction data that all clients in mark room report, determines transaction data most legal in target room.The embodiment of the present invention In when a client is merchandised in target room, one can be generated and record the new block chain for having the transaction, and this is new Block chain is sent to other clients in target room so that the transaction record of all clients is synchronous in target room, right All Activity in target room, server need not be recorded, check and counted, and can greatly mitigate the calculating of server Pressure, also more meet non-stop layer thought.
In some embodiments of the invention, as shown in Fig. 2 method can also further include in the embodiment of the present invention:
S104, when client produces the second transaction again, according to the first block chain generate record have it is described second transaction Second block chain of record;
The second block chain is sent to other clients in target room by S105, client, with it is described other Client synchronization the second block chain.
So, when new transaction occurs again, client is new the of the first block chain generation of the generation before Two block chains, record has second transaction record in the second block chain, and is synchronized to other clients, so can guarantee that target Transaction data synchronization in room.
In other embodiments of the invention, as shown in figure 3, method can also include in the embodiment of the present invention:
S106, client receive the 3rd block chain that destination client is sent in target room;
Wherein, the 3rd block chain is that destination client generates when producing and merchandising, specifically, in the target room It is interior, when not merchandised after the synchronous second block chain in destination client, then the 3rd block chain be the destination client according to The generation of second block chain, record has the transaction record of destination client this time in the 3rd block chain.
S107, client preserve the 3rd block chain chain, to preserve in the client in the target room All Activity data.
Specifically, client preserves the 3rd block chain, that is, it instead of the second block chain preserved before so that in client Save newest transaction record all in target room.
Further client can also update the block chain of preservation, make when other clients are merchandised in the present embodiment Obtain client and preserve newest transaction record all in target room all the time.
In the embodiment of the present invention, the first block chain, the second block chain, the 3rd block chain, data structure It is identical;
The data structure include the block number of block chain, previous block chain cryptographic Hash, calculate new block chain needs Key values, the timestamp of current time, block chain performance data and current block chain cryptographic Hash, the block chain performance data bag The room number in the target room is included, user's mark, the mark of the client and the client of the client are currently handed over Easy data.
Original block chain, original block chain is due to being first block chain, and the block number of original block chain is 0, timestamp It is then current time, the hash values of a upper block chain are 0.
Specifically, in the embodiment of the present invention, above-mentioned data structure is implemented as follows:
Struct BlockData{
Int64index;
String previousHash;
Int64;
String;
String data;
String hash;
}
Wherein, index is used for representing the block number of block chain, is incremented by generally since 0;PreviousHash represents previous The HASH values of block chain;Timestamp represents timestamp;Key represents to calculate the key values that new block chain needs;Data is then represented The splicing (i.e. above-mentioned block chain performance data) of some data, the content of this data field is then according to complete required for block chain Into function designed by, be directed to the embodiment of the present invention, data can include the room number in target room, user's mark of client Knowledge, the mark of client and the current transaction data of client.When transaction beats reward main broadcaster for user, the current number of deals of client The present full amount currently having according to can further include client, the current present quantity for beating reward, that currently merchandises beats reward Person user identifies uid, and the reception currently merchandised beats reward person user and identifies uid, the value after being encrypted before current time stamp;Hash tables Show the hash values of the content of this current block chain.After the design for having this block chain, newly produced when server receives client , then can be by being verified to the data of the inside after raw block chain.
The algorithm that new block chain generates in block chain, block chain initial first are devised in the embodiment of the present invention simultaneously It is that server generates (such as the first block chain), server can be issued to the client in live platform target room, then should The client in target room receives after original block chain, it is necessary to which algorithm generates next block chain.It is implemented as follows:First The data structure of a upper block chain is got, next block chain is then the data progress according to a upper block chain Generation.
In the embodiment of the present invention, above-mentioned steps S104 generates record according to the first block chain has second transaction to remember Second block chain of record can specifically include:
According to the block number of the first block chain plus 1, the block number of the second block chain is obtained;
Obtain current time;
The cryptographic Hash of the first block chain is calculated, the cryptographic Hash as previous block chain in the second block chain;
Obtain the room number in the target room, user's mark of the client, the mark of the client and current Second transaction data, obtain the second block chain performance data;
To the block number of the second block chain, current time, the cryptographic Hash of the first block chain and second block Chain performance data carries out Hash calculation, obtains the cryptographic Hash of the second block chain;
According to the block number of the second block chain, current time, the cryptographic Hash of the first block chain, second block The cryptographic Hash of chain and the second block chain performance data, according to the second block chain described in the data structure building.
Specifically, in the embodiment of the present invention, it is assumed that the name of a upper block chain is prevblock, newly-generated block The name of chain is newblock, and the process for specifically generating new block chain is as follows:
(1) block number of new block chain is calculated.
Newblock.index=prevblock.index+1;
The block number of i.e. new block chain is that current block number adds 1.
(2) timestamp of new block chain is calculated.
Newblock.timestamp=time ();
The timestamp of new block chain is then to obtain the current time.
(3) the hash values of a upper block chain for new block chain are calculated.
Newblock.previousHash=prevblock.hash;
The hash values of a upper block chain for new block chain are then the hash of the upper block chain obtained.
(4) the key values of a upper block chain for new block chain are calculated.
Newblock.key=prevblock.key;
The key values of a upper block chain for new block chain are then the key of the upper block chain obtained.
(5) new block chain performance data is calculated.
Still exemplified by beating the live platform room main broadcaster of reward.
Newblock.data=giftnum+senduid+givegiftnum+receiveuid
Wherein giftnum is then the surplus of the present quantity of active client, and senduid is then the use of active client Family identifies uid, and givegiftnum is then the present quantity for beating reward, and receiveuid is then the uid for the client for being beaten reward.
Newblock.data=AES.encrypt (Newblock.data, Newblock.key);
The data data of new block chain are then to be used together AES AES by all of the above data to be carried out to data Further encryption, wherein the key values that the key values used, which are then servers, to be issued.Certain AES can also use more Complicated AES.
(6) the hash values of new block chain are calculated.
Newblock.hash=HASH (index+previousHash+timestamp+data+key);
The hash values of new block chain be then have new block chain index fields and previousHash fields and Timestamp fields and data fields and key fields.
In the embodiment of the present invention, Hash corresponding to cryptographic Hash (HASH) algorithm is unified, and the HASH algorithms can be SHA-256 Algorithm, naturally it is also possible to be other HASH algorithms, such as SHA-1 etc., be not construed as limiting herein.
So far, the algorithm that a new block chain is generated by a block chain is achieved that by above-mentioned steps.And this In inventive embodiments, when client generates the second block chain by receiving the first block chain, i.e., realized using above-mentioned steps.
In the embodiment of the present invention, either client or server, first all can be right when it receives a block chain Block chain carries out legitimacy verifies, to judge whether current block chain is legal, to prevent hacker from forging block chain, or Block chain transmits the factor such as changed in a network.So each block chain is required for carrying out completeness check.Therefore, it is of the invention Method can further include in embodiment:
The client is when receiving the 3rd block chain that destination client is sent in the target room, described in verification The legitimacy of 3rd block chain.
In the embodiment of the present invention, the step of client verifies to the block chain received, can specifically include:Assuming that The name of a upper block chain is prevblock, and the name that then have received a newly-generated block chain is newblock.
(1) first determine whether its index is correct.
Newblock.index!=prevblock.index+1;
If the block number of new block chain is not the block number plus 1 of a upper block, illustrate that new block chain does not conform to Method, directly return to block chain error information.
(2) the hash values of block chain are judged.
Newblock.previousHash!=prevblock.hash
Think if hash value of the hash values not equal to a upper block chain of a upper block chain for new block chain New block chain is illegal, directly returns to block errors information.
(3) the hash values of new block chain are judged.
The hash values of new block chain are the hash results of the whole data of new block chain.
HASH(Newblock.index+Newblock.previousHash+Newblock.timestamp+ Newblock.data+Newblock.key)!=Newblock.hash;
If the hash values of the data of the whole block chain of new block chain are not equal to new block chain hash values, then it is assumed that New block chain is illegal, directly returns to block chain error information.
(4) the data values of new block chain are judged.
Data are encrypted by AES for the data values of new block chain.Then can ciphertext data in this step To judge the legitimacy of data.
Newblock.data=AES.decrypt (Newblock.data, Newblock.key);
So as to obtain original data data after now data fields are decrypted, it can be then learnt from data Giftnum, senduid, givegiftnum, receiveuid, it may then be made whether that giftnum is greater than Givegiftnum's.
The embodiment of client in the embodiment of the present invention is described below.
Referring to Fig. 4, for one embodiment schematic diagram of client in the embodiment of the present invention, the client includes:
First generation module 401, for when the client in the target room produces the first transaction, according to it is preset just Beginning block chain generation record has the first block chain of first transaction record;
First sending module 402, for other clients being sent to the first block chain in the target room, With in the first block chain described in other described client synchronizations;
Second sending module 403, refer to for receiving the statistics transaction record that the server issues in the client When making, extraction transaction data is sent to the service from the first block chain, to cause mesh described in the server statistics The transaction data that all clients in mark room report, determines transaction data most legal in the target room.
Further, as shown in figure 5, the client also includes:
Second generation module 404, for when the client produces the second transaction again, according to the first block chain Generation record has the second block chain of second transaction record;
3rd sending module 405, for other clients being sent to the second block chain in the target room, With in the second block chain described in other described client synchronizations.
Further, as Fig. 6, the client also include:
Receiving module 406, the 3rd block chain sent for receiving destination client in the target room, the described 3rd The block chain destination client generates when producing transaction;
Preserving module 407, for preserving the 3rd block chain chain, to preserve the target in the client All Activity data in room.
Further, the first block chain includes the block number of block chain, the cryptographic Hash of previous block chain, calculating newly Key values, timestamp, block chain performance data and the current block chain cryptographic Hash of current time of block chain needs, the block Chain performance data includes the room number in the target room, user's mark of the client, the mark of the client and The current transaction data of client.
A kind of client is also provided in the embodiment of the present invention, refers to Fig. 7, the client includes:
Memory 701, processor 702 and is stored in the computer that can be run on the memory and on the processor Program 703, wherein, the processor 702 can realize above-mentioned transaction accounting method when performing the computer program 703.
It should be noted that the client that the application is related to include but is not limited to be:Mobile terminal (mobile phone, smart mobile phone, PAD, notebook computer etc.), fixed terminal (computer).
For convenience of description, the part related to the embodiment of the present invention is illustrate only, particular technique details does not disclose, please With reference to present invention method part.Memory 701 can be used for storage computer program 703, and above computer program includes Software program, module and data, processor 702 perform the computer program 703 for being stored in memory 701 by running, so as to Perform various function application and the data processing of client.
In specific implementation process, memory 701 can be used for storage software program and module, processor 702 to pass through Operation is stored in the software program and module of memory 701, so as to perform at the various function application and data of client Reason.Memory 701 can mainly include storing program area and storage data field, wherein, storing program area can storage program area, extremely Application program (such as game class application program, chat class application program) needed for few One function etc.;Storage data field can deposit Storage uses created data (game configuration data, voice data) etc. according to client.In addition, memory 701 can wrap High-speed random access memory is included, nonvolatile memory, for example, at least disk memory, a flash memories can also be included Part or other volatile solid-state parts.Processor 702 is the control centre of client, is connected using various interfaces and circuit The various pieces of whole client are connect, by running or performing the software program and/or module that are stored in memory 701, with And the data being stored in memory 701 are called, the various functions and processing data of client are performed, so as to be carried out to client Integral monitoring.Optionally, processor 702 may include one or more processing units;Preferably, processor 702 can integrate application Processor, wherein, application processor mainly handles operating system, user interface and application program etc..
The embodiment of the present invention also provides a kind of computer-readable recording medium, wherein, the computer-readable recording medium can Have program stored therein, the part or all of step of the transaction accounting method described in above method embodiment is included when the program performs Suddenly.
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, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. one kind transaction accounting method, it is characterised in that methods described includes:
When the client in live platform target room produces the first transaction, the client is given birth to according to preset original block chain There is the first block chain of first transaction record into record;
The first block chain is sent to other clients in the target room by the client, with other described visitors Synchronous the first block chain in family end;
When the client receives the statistics transaction record instruction that the server issues, the client is from described first Transaction data is extracted in block chain and is sent to the service, to cause all clients in target room described in the server statistics The transaction data reported is held, determines transaction data most legal in the target room.
2. according to the method for claim 1, it is characterised in that methods described also includes:
When the client produces the second transaction again, generating record according to the first block chain has second transaction to remember Second block chain of record;
The second block chain is sent to other clients in the target room by the client, with other described visitors Synchronous the second block chain in family end.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The client receives the 3rd block chain that destination client is sent in the target room, and the 3rd block chain is institute State destination client and producing what is generated during transaction;
The client preserves the 3rd block chain chain, to preserve the institute in the target room in the client There is transaction data.
4. according to the method for claim 3, it is characterised in that methods described also includes:
The client is when receiving the 3rd block chain that destination client is sent in the target room, verification the described 3rd The legitimacy of block chain.
5. according to the method for claim 1, it is characterised in that the first block chain includes the block number, preceding of block chain The cryptographic Hash of one block chain, the timestamp for calculating key values, current time that new block chain needs, block chain performance data and Current block chain cryptographic Hash, the block chain performance data include the room number in the target room, the user of the client Mark, the mark of the client and the current transaction data of the client.
6. a kind of client, it is characterised in that the client includes:
First generation module, for when the client in live platform target room produces the first transaction, according to preset initial Block chain generation record has the first block chain of first transaction record;
First sending module, for other clients being sent to the first block chain in the target room, with institute State the first block chain described in other client synchronizations;
Second sending module, for when the client receives the statistics transaction record instruction that the server issues, from Transaction data is extracted in the first block chain and is sent to the service, to cause target room described in the server statistics The transaction data that all clients report, determine transaction data most legal in the target room.
7. client according to claim 6, it is characterised in that the client also includes:
Second generation module, for when the client produces the second transaction again, being generated and being remembered according to the first block chain Record has the second block chain of second transaction record;
3rd sending module, for other clients being sent to the second block chain in the target room, with institute State the second block chain described in other client synchronizations.
8. client according to claim 6, it is characterised in that the client also includes:
Receiving module, for receiving the 3rd block chain that destination client is sent in the target room, the 3rd block chain The destination client generates when producing transaction;
Preserving module, for preserving the 3rd block chain chain, to preserve in the client in the target room All Activity data.
9. client according to claim 6, it is characterised in that the first block chain include block chain block number, The cryptographic Hash of previous block chain, calculate key values, the timestamp of current time, block chain performance data that new block chain needs And current block chain cryptographic Hash, the block chain performance data include the room number in the target room, the use of the client Family mark, the mark of the client and the current transaction data of the client.
A kind of 10. client, it is characterised in that including:Memory, processor and is stored on the memory and can be described The computer program run on processor, wherein, claim 1 can be realized described in the computing device during computer program To 5 any described methods.
CN201710884311.2A 2017-09-26 2017-09-26 One kind transaction accounting method and client Pending CN107798538A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710884311.2A CN107798538A (en) 2017-09-26 2017-09-26 One kind transaction accounting method and client
PCT/CN2017/108067 WO2019061630A1 (en) 2017-09-26 2017-10-27 Transaction accounting method, and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710884311.2A CN107798538A (en) 2017-09-26 2017-09-26 One kind transaction accounting method and client

Publications (1)

Publication Number Publication Date
CN107798538A true CN107798538A (en) 2018-03-13

Family

ID=61532141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710884311.2A Pending CN107798538A (en) 2017-09-26 2017-09-26 One kind transaction accounting method and client

Country Status (2)

Country Link
CN (1) CN107798538A (en)
WO (1) WO2019061630A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694522A (en) * 2018-07-06 2018-10-23 中国银行股份有限公司 A kind of data analysing method and device
CN109118185A (en) * 2018-07-12 2019-01-01 腾讯音乐娱乐科技(深圳)有限公司 Numeric value transfer and device
CN109903193A (en) * 2019-01-17 2019-06-18 平安城市建设科技(深圳)有限公司 The distribution method of commission, device, equipment and storage medium in house prosperity transaction
CN110060151A (en) * 2018-11-27 2019-07-26 阿里巴巴集团控股有限公司 A kind of business execution method and device
CN110675149A (en) * 2019-09-23 2020-01-10 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032882A (en) 2018-12-29 2019-07-19 阿里巴巴集团控股有限公司 Card method and apparatus are deposited based on block chain
CN110992175A (en) * 2019-10-30 2020-04-10 成都摩宝网络科技有限公司 Asynchronous accounting and transaction separation method and system based on message middleware
CN111199486B (en) * 2020-01-02 2024-05-14 腾讯科技(深圳)有限公司 Data processing method, device and storage medium based on blockchain network
CN113886267A (en) * 2021-10-25 2022-01-04 锐凌无线通讯科技(深圳)有限公司 Software system detection method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209947A (en) * 2015-05-07 2016-12-07 中兴通讯股份有限公司 The data processing method of a kind of decentration autonomy organization and system
CN106452785A (en) * 2016-09-29 2017-02-22 财付通支付科技有限公司 Block chain network, branch node and block chain network application method
CN106506146A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 Based on the Transaction Information method of calibration of block chain technology, apparatus and system
CN106503589A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 The method of calibration of block chain Transaction Information correctness, apparatus and system
US20170177898A1 (en) * 2015-12-16 2017-06-22 International Business Machines Corporation Personal ledger blockchain
CN106982203A (en) * 2017-01-06 2017-07-25 中国银联股份有限公司 The ATM network system and its information processing method of robust based on block chain technology
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9679276B1 (en) * 2016-01-26 2017-06-13 Stampery, Inc. Systems and methods for using a block chain to certify the existence, integrity, and/or ownership of a file or communication
CN106411901B (en) * 2016-10-08 2018-01-23 北京三未信安科技发展有限公司 A kind of digital identity mark management method and system
CN106790431B (en) * 2016-12-05 2020-11-27 同济大学 Cloud manufacturing service transaction information recording system and method based on block chain
EP3461060A4 (en) * 2016-12-23 2019-07-24 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Block of blockchain generation method, device, node, and signature device and system
CN107147735B (en) * 2017-05-12 2020-08-11 北京博晨技术有限公司 Distributed account book system based on hierarchical structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209947A (en) * 2015-05-07 2016-12-07 中兴通讯股份有限公司 The data processing method of a kind of decentration autonomy organization and system
US20170177898A1 (en) * 2015-12-16 2017-06-22 International Business Machines Corporation Personal ledger blockchain
CN106452785A (en) * 2016-09-29 2017-02-22 财付通支付科技有限公司 Block chain network, branch node and block chain network application method
CN106506146A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 Based on the Transaction Information method of calibration of block chain technology, apparatus and system
CN106503589A (en) * 2016-10-26 2017-03-15 北京瑞卓喜投科技发展有限公司 The method of calibration of block chain Transaction Information correctness, apparatus and system
CN106982203A (en) * 2017-01-06 2017-07-25 中国银联股份有限公司 The ATM network system and its information processing method of robust based on block chain technology
CN107124278A (en) * 2017-03-30 2017-09-01 腾讯科技(深圳)有限公司 Method for processing business, device and data-sharing systems

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694522A (en) * 2018-07-06 2018-10-23 中国银行股份有限公司 A kind of data analysing method and device
CN108694522B (en) * 2018-07-06 2023-05-09 中国银行股份有限公司 Data analysis method and device
CN109118185A (en) * 2018-07-12 2019-01-01 腾讯音乐娱乐科技(深圳)有限公司 Numeric value transfer and device
CN110060151A (en) * 2018-11-27 2019-07-26 阿里巴巴集团控股有限公司 A kind of business execution method and device
CN111899104A (en) * 2018-11-27 2020-11-06 创新先进技术有限公司 Service execution method and device
US11223692B2 (en) 2018-11-27 2022-01-11 Advanced New Technologies Co., Ltd. Service execution methods and apparatuses
CN111899104B (en) * 2018-11-27 2023-12-01 创新先进技术有限公司 Service execution method and device
CN109903193A (en) * 2019-01-17 2019-06-18 平安城市建设科技(深圳)有限公司 The distribution method of commission, device, equipment and storage medium in house prosperity transaction
CN110675149A (en) * 2019-09-23 2020-01-10 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and storage medium
CN110675149B (en) * 2019-09-23 2024-03-05 腾讯科技(深圳)有限公司 Block chain-based data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2019061630A1 (en) 2019-04-04

Similar Documents

Publication Publication Date Title
CN107798538A (en) One kind transaction accounting method and client
WO2020042792A1 (en) Blockchain-based transaction consensus processing method and apparatus, and electronic device
CN111914027B (en) Block chain transaction keyword searchable encryption method and system
CN107480990A (en) Block chain bookkeeping methods and device
EP2774313B1 (en) Electronic content distribution based on secret sharing
CN108776929A (en) Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN107317672A (en) A kind of light weight terminating machine block catenary system
CN107948736A (en) A kind of audio and video preservation of evidence method and system
CN106815722A (en) Information processing method and device based on block chain
CN109165957A (en) Invoice data method of charging out, system and relevant device based on block chain
CN107181599A (en) The storage of route location data confidentiality and sharing method based on block chain
CN107679149A (en) A kind of data processing method and server
CN107454110A (en) A kind of data verification method and server
CN108241517A (en) A kind of method for upgrading software, client and electronic equipment
CN107801059A (en) A kind of method for authenticating and server
CN107623865A (en) A kind of data verification method and server
CN108764966A (en) Advertisement placement method, block chain node device and relevant device
CN107465698A (en) A kind of data verification method and server
TW202101350A (en) Method and device for cross-chain transmission of authenticable message based on processing module
CN110399717A (en) Key acquisition method and device, storage medium and electronic device
CN108876384A (en) A kind of processing method and processing device of transaction data
CN107682328A (en) A kind of data verification method and client
CN110148003A (en) A kind of carbon emissions trading method and system
CN109513207A (en) Processing method, device, storage medium, processor and the server of game asset
CN107528855A (en) A kind of data verification method and server

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313