CN108960801A - Transaction record management method, system and storage medium based on block chain technology - Google Patents

Transaction record management method, system and storage medium based on block chain technology Download PDF

Info

Publication number
CN108960801A
CN108960801A CN201711299394.5A CN201711299394A CN108960801A CN 108960801 A CN108960801 A CN 108960801A CN 201711299394 A CN201711299394 A CN 201711299394A CN 108960801 A CN108960801 A CN 108960801A
Authority
CN
China
Prior art keywords
transaction
block chain
transaction record
block
record
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
CN201711299394.5A
Other languages
Chinese (zh)
Other versions
CN108960801B (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.)
Puhua Yunchuang Technology Beijing Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201711299394.5A priority Critical patent/CN108960801B/en
Publication of CN108960801A publication Critical patent/CN108960801A/en
Application granted granted Critical
Publication of CN108960801B publication Critical patent/CN108960801B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a kind of transaction record management methods based on block chain technology, comprising: obtains active user and the transaction id that money transfer transactions generate occurs, the transaction id is cached in the caching of terminal;According to the transaction id that the cache stores up, inquiry whether there is the transaction id on block chain agent node;If it is not, deleting the corresponding transaction id in the caching;The corresponding transaction record of the transaction id being cached in described in acquisition in the caching of the terminal, and active user in block chain network block is obtained by server end polling interface and has confirmed that transaction record.The transaction record management method based on block chain technology in the present invention provides a kind of available user and has confirmed that transaction record administrative mechanism with unacknowledged transaction record, while reducing the memory space requirement of mobile device.The present invention also provides a kind of transaction record management system and computer readable storage medium based on block chain technology.

Description

Transaction record management method, system and storage medium based on block chain technology
Technical field
The present invention relates to technical field of the computer network more particularly to a kind of transaction record management based on block chain technology Method, the transaction record management system based on block chain technology and computer readable storage medium.
Background technique
Block chain (Blockchain) is the distributed data base system participated in by node, and its feature is can not to change, It can not forge, account book system (ledger) can also be understood as.It is a key concept of bit coin, full bit coin The copy of block chain has recorded each transaction of its token (token).By these information, each address can be found, The value that any point is possessed in history.
Block chain be by a string using cryptography methods generate data chunk at, each block contains one The cryptographic Hash (hash) of a block is initially connected to current block from original block (genesis block), forms block chain.Often One block all ensures that and generates after a upper block sequentially in time that otherwise the cryptographic Hash of previous block is unknown 's.These features make the honeysuckle (double-spending) of bit coin extremely difficult.Block chain is the ideal moneys such as bit coin Core innovation.
Realize that a maximum difficult point is exactly the extraction and displaying of transaction record in the technology of mobile wallet.Block chain The transaction of network makes a big difference with traditional transaction, as long as traditional transaction is that the both sides' realization participated in business is transferred accounts, when Preceding transaction just comes into force, not the confirmation of intermediate node.And the transaction of block chain once occurs, it is necessary to first pass through on block chain Miner confirmation, currently just calculate effectively, one transaction start to transaction complete have to last for a period of time, the length of this period User experience can also be had a huge impact.According to traditional block chain technology, each node can save entire block link network The All Activity of network records, and must locally prepare a huge memory space, and 1T may be not enough at present.This backup is handed over The behavior easily recorded can not substantially occur in mobile wallet, this also just determines the transaction record exhibition of mobile wallet simultaneously Show will with it is not quite alike in the stationary computers equipment such as PC.
Currently, how is the transaction record information in mobile wallet for before and after block chain agent node is submitted in transaction Displaying is a very inconvenient thing.The solution the following two kinds scheme mainly proposed:
Scheme one:, after money transfer transactions occur, before miner's node does not confirm transaction, current transaction would not enter block In the particular block of chain, current transaction is not just shown in mobile wallet, until confirmation until currently trading by miner.This way User experience is very bad, user can be allowed to feel no sense of security, and money transfer transactions show and cannot show in time.
After scheme two, money transfer transactions occur, mobile wallet is since original block, one block of every generation, current mobile Currency transaction information is shown in transaction record just from the Transaction Information read in current block in block chain network by wallet It in list, while saving on transaction record to mobile device, causes mobile device memory space largely occupied, and is frequent It is synchronous with block network progress block, it causes network flow use to increase, very detrimental effect is generated to user.And when out Now have occurred and that money transfer transactions confirm that, in this period, mobile wallet is in addition to ceaselessly detecting when trading without miner's node Whether new block generation is had, and whether within a block, other can only cache current transaction in mobile money to current money transfer transactions The local of packet terminal automatically becomes the transaction having been acknowledged in miner's exchange hour after.
Therefore, it is necessary to a kind of new transaction record management method based on block chain technology is provided, it is above-mentioned existing to solve There is the problem of technology.
Summary of the invention
The main purpose of the present invention is to provide a kind of transaction record management method based on block chain technology, it is based on block The transaction record management system and computer readable storage medium of chain technology, it is intended to improve the mobile wallet based on block chain technology The transaction record methods of exhibiting of application, to solve current mobile wallet memory space inadequate, the little technology of mobile terminal flow Problem, while also providing and a kind of being able to solve the mechanism that how transaction record shows when miner's node does not confirm.
To achieve the above object, a kind of transaction record management method based on block chain technology provided by the invention, including Step:
It obtains active user and the transaction id that money transfer transactions generate occurs, and the transaction id is cached in the caching of terminal, In, the corresponding transaction record of each described transaction id, the transaction id includes the unique string code HASH of the transaction Value;
According to the transaction id that the cache stores up, periodically inquiry is on block chain agent node according to the preset time interval It is no that there are the transaction ids;
On the block chain agent node be not present the transaction id when, confirm the corresponding transaction record of the transaction id by Confirmation, deletes the corresponding transaction id in the caching;
On the block chain agent node there are when the transaction id, confirm the corresponding transaction record of the transaction id not yet by Confirmation;
The corresponding transaction record of the transaction id being cached in described in acquisition in the caching of the terminal, and pass through server end poll Active user's has confirmed that transaction record in interface acquisition block chain network block.
Further, the corresponding transaction record of transaction id being cached in the caching of the terminal described in the acquisition, with And by server end polling interface obtain block chain network block in active user the step of having confirmed that transaction record after, Further include:
The corresponding transaction record of transaction id in the caching for being cached in the terminal is shown with corresponding state unconfirmed It is shown on interface in transaction record;
And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
Further, it further comprises the steps of:
The block chain network block is read with corresponding renewal frequency according to the growth rate of the block chain network block In newest block transaction record data, and by the transaction record of the newest block according to being stored in the default of the server end In database of record.
Further, described active user in block chain network block is obtained by server end polling interface to have confirmed that The step of transaction record, comprising:
According to the address of the mobile wallet of the active user and block height parameter, by calling the server end poll What interface obtained active user in the block chain network block has confirmed that transaction record.
Further, the state unconfirmed includes transaction id shape in the confirmation of the block chain agent node The state to be confirmed of state or the transaction id in the block chain agent node;
The committed state includes that the transaction id is confirmed by miner, the transaction of failure, or successfully transaction.
The present invention also provides a kind of transaction record management systems based on block chain technology, comprising:
For obtaining active user the transaction id that money transfer transactions generate occurs for purse transaction cache module, and by the transaction id It is cached in the caching of terminal, wherein the corresponding transaction record of each described transaction id, the transaction id are handed over comprising the pen Easy unique string code HASH value;According to the cache store up transaction id, inquired on block chain agent node whether There are the transaction ids;And when the transaction id is not present on the block chain agent node, confirm that the transaction id is corresponding Transaction record be identified, delete the corresponding transaction id in the caching, and be cached in the terminal described in obtaining The corresponding transaction record of transaction id in caching;And confirm on the block chain agent node there are when the transaction id The corresponding transaction record of the transaction id is not yet identified;
It trades poller module, is had confirmed that for obtaining active user in block chain network block by server end polling interface Transaction record.
Further, the transaction record management system based on block chain technology, further includes:
Transaction record display module, for by the corresponding transaction record of transaction id in the caching for being cached in the terminal with Corresponding state unconfirmed is showed in transaction record and shows on interface;And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
Further, the transaction record management system based on block chain technology, the transaction poller module are also used It is read in the block chain network block in the growth rate according to the block chain network block with corresponding renewal frequency The transaction record data of newest block, and by the transaction record of the newest block according to the default note for being stored in the server end It records in database.
Further, the transaction poller module is also used to the growth rate according to the block chain network block, with right The renewal frequency answered, reads the transaction record data of newest block in the block chain network block, and by the newest block Transaction record according to being stored in the preset recording database of the server end.
Further, the transaction poller module, specifically for the address according to the mobile wallet of the active user with And block height parameter, by calling the server end polling interface to obtain active user in the block chain network block Have confirmed that transaction record.
The present invention also provides a kind of transaction record management system based on block chain technology, including memory, processor and The computer program that can be run on a memory and on a processor is stored, the processor is realized as above when executing described program The step of described in any item transaction record management methods based on block chain technology stated.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, which is characterized in that should It realizes when program is executed by processor such as above-mentioned described in any item transaction record management methods based on block chain technology Step.
In the present invention, it crosses and whether also to inquire the corresponding transaction record of the transaction id on the block chain agent node It is stored on the block chain agent node, the transaction id has been identified with transaction record in timely deletion caching, has been reduced Caching occupies;Meanwhile by server end polling interface obtain block chain network block in active user have confirmed that transaction note Record, mobile terminal only need to store the transaction id of active user being not yet identified, provide a kind of available user and have confirmed that With the transaction record administrative mechanism of unacknowledged transaction record;Block chain network block is obtained from the server end when needed Middle active user's has confirmed that transaction record, reduces the memory space requirement of mobile device.
Detailed description of the invention
Fig. 1 is the schematic network structure of the mobile wallet system based on block chain technology in one embodiment of the invention;
Fig. 2 is the hardware structural diagram of the transaction record management system based on block chain technology in one embodiment of the invention;
Fig. 3 is the hardware module structural representation of the transaction record management system based on block chain technology in one embodiment of the invention Figure;
Fig. 4 is the effect diagram for the specific example that transaction record of the present invention is shown.
Fig. 5 is the effect diagram of another state for the specific example that transaction record is shown in Fig. 4;
Fig. 6 is the method flow diagram of the transaction record management method based on block chain technology in first embodiment of the invention;
Fig. 7 is the method flow diagram of the transaction record management method based on block chain technology in second embodiment of the invention;
Fig. 8 is the method flow diagram of the transaction record management method based on block chain technology in third embodiment of the invention;
Fig. 9 is the method flow diagram of the transaction record management method based on block chain technology in four embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Fig. 1 is please referred to, Fig. 1 is the network of the mobile wallet system based on block chain technology in each embodiment of the present invention Structural schematic diagram, the mobile wallet system include block chain agent node 10, server end end 20 and mobile terminal 30.Its In, operation has the mobile wallet application based on block chain technology on the mobile terminal 30.
The mobile wallet application based on block chain technology, which is one, can be realized block chain ideal money and trades It manages, the client utility of address administration, these mobile wallets are also known as light wallet, the agent node on server end is needed to support The communication between mobile wallet and mobile wallet could be completed, and itself is a independent nodes for traditional pc wallet, no Server itself is needed to provide agency service.
In the mobile wallet grid, the block chain agent node 10 is the AM access module of block chain network, Each block chain agent node 10 can save the All Activity record of entire block chain network, pass through block chain agent node 10 The inquiry to each purse transaction may be implemented, money transfer transactions is submitted to carry out confirming etc. that block chain network is related for miner's node Operation.
The server end 20 is used to provide agent node for the mobile wallet application, realizes between multiple mobile wallets Communication, be stored with transaction record database on the server end 20, can equally save all friendships of entire block chain network Easily record.
Operation has the mobile wallet application based on block chain technology on the mobile terminal 30, and user can pass through the movement Wallet application initiates the business such as transfer accounts, trade, inquiring.
Please also refer to Fig. 2, for the transaction record management system based on block chain technology in each embodiment of the present invention 100 hardware structural diagram.The transaction record management system based on block chain technology can be management transaction record Server end 20 is also possible to be equipped with the mobile terminal 30 of the mobile wallet application based on block chain technology.
The transaction record management system 100 based on block chain technology includes communication module 11, memory 21 and processing The components such as device 31.Wherein, the processor 31 is connect with the memory 21 and the communication module 11 respectively, the memory Computer program is stored on 21, the computer program is executed by processor 30 simultaneously.
Communication module 11 can be connect by network and external equipment, such as with remote scanners.Communication module 11 can connect The request that external communications equipment issues is received, also transmittable event, instruction and information to the external equipment and/or other servers End.The external communications equipment can be other mobile terminals 30, server end 20 or block chain agent node 10.
Memory 20 can be used for storing software program and various data.Memory 20 can mainly include storing program area The storage data area and, wherein storing program area can storage program area etc.;Storage data area can be stored according to based on based on block The trade managing system of chain technology uses created data or information etc..In addition, memory 20 may include that high speed is random Access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other Volatile solid-state part.
Processor 30 is the control centre of transaction record management system, is entirely traded using various interfaces and connection The various pieces of record management system, by running or execute the software program and/or module that are stored in memory 20, and The data being stored in memory 20 are called, the various functions and processing data of transaction record management system are executed.Processor 30 It may include one or more processing units;Preferably, processor 30 can integrate application processor and modem processor, In, the main processing operation system of application processor, user interface and application program etc., modem processor are mainly handled wirelessly Communication.It is understood that above-mentioned modem processor can not also be integrated into processor 30.
Although Fig. 1 is not shown, above-mentioned transaction record management system 100 can also include circuit control module, for Power supply control is realized in power supply connection.
It will be understood by those skilled in the art that based on the transaction record management system knot of block chain technology shown in Fig. 1 Structure does not constitute the restriction to the transaction record management system based on block chain technology, may include more or more than illustrating Few component perhaps combines certain components or different component layouts.
Fig. 3 is please combined together, is the transaction record management system 100 based on block chain technology in one embodiment of the invention Functional module structure schematic diagram.The transaction record management system based on block chain technology can be management transaction record Server end 20 is also possible to be equipped with the mobile terminal 30 of the mobile wallet application based on block chain technology.
The transaction record management system 100 based on block chain technology includes: purse transaction cache module 12 and hands over Easy poller module 22.
Wherein, the purse transaction cache module 12 is used to obtain the transaction id that money transfer transactions generation occurs for active user, And the transaction id is cached in the caching of terminal.Wherein, the corresponding transaction record of each described transaction id, the friendship Easy ID includes the unique string code HASH value of the transaction.
The operation specifically, each pen of user in block chain network transfers accounts, digs mine etc., the transaction that can all generate, often One transaction record generates in block chain, all can include a unique string code, this " unique string code " is referred to as It is exactly that the transaction records corresponding transaction id for hash value of trading;The tool currently traded can be inquired by the transaction id Body information, for example, the side of producing, the side of being transferred to, producing quantity, producing time, transaction hash value etc..
The purse transaction cache module 12 is also used to the transaction id stored up according to the cache, acts on behalf of and saves in block chain Inquiry whether there is the transaction id on point;And when the transaction id is not present on the block chain agent node, institute is confirmed It states the corresponding transaction record of transaction id to be identified, deletes the corresponding transaction id in the caching;And in the block There are when the transaction id, confirm that the corresponding transaction record of the transaction id is not yet identified on chain agent node.
Specifically, the purse transaction cache module 12 loads the transaction id currently stored in the buffer first, then lead to It crosses block chain proxy interface and inquires whether the corresponding transaction record of the transaction id is also protected on the block chain agent node 10 There are on the block chain agent node 10;If it is, confirm that the corresponding transaction record of the transaction id is not yet identified, example Such as, transaction id state or transaction id in the confirmation of the block chain agent node is acted on behalf of in the block chain The state to be confirmed of node;If without finding the corresponding transaction note of the transaction id on the block chain agent node 10 Record, then confirm that the corresponding transaction record of the transaction id has been identified, for example, the transaction id is confirmed by miner, failure Transaction, or successfully transaction, then need to delete transaction id also in the buffer, at this time until All Activity ID has been identified Finish.
Further, the purse transaction cache module 12 is according to the preset time interval periodically in block chain agent node Inquiry whether there is the transaction id on 10.
The purse transaction cache module 12 is also used to obtain the transaction id pair being cached in the caching of the terminal The transaction record answered.
Wherein, the transaction poller module 22, for being obtained in block chain network block by server end polling interface Active user's has confirmed that transaction record.
In the present embodiment, the friendship is inquired on the block chain agent node 10 by purse transaction cache module 12 Whether the easy corresponding transaction record of ID is also stored on the block chain agent node 10, deletes transaction record in time and has been identified The transaction id reduces caching and occupies;Meanwhile it being obtained by the purse transaction cache module 12 and described being cached in the terminal Caching in the corresponding transaction record of transaction id, by the transaction poller module 22 by server end polling interface obtain area Active user's has confirmed that transaction record, mobile terminal only need to store the active user being not yet identified in block chain network block Transaction id, a kind of available user is provided and has confirmed that transaction record administrative mechanism with unacknowledged transaction record;It is needing Active user in block chain network block is obtained from the server end 20 when wanting and has confirmed that transaction record, reduces shifting The memory space requirement of dynamic equipment.
Further, the transaction record management system 100 based on block chain technology further include:
Transaction record display module 32, for by the corresponding transaction record of transaction id in the caching for being cached in the terminal Transaction record is showed in corresponding state unconfirmed to show on interface;And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
Specifically, the transaction record display module 32 starts, respectively when user initiates to send transaction record display request Load the unacknowledged transaction record, i.e., the corresponding transaction record of transaction id in the caching of the described terminal;And it has confirmed that Transaction record, i.e., the transaction record stored in block chain network block.Above-mentioned two pieces of transaction record informations are merged together can View is shown to form a more complete transaction record.
Specifically, please combining Fig. 4 and Fig. 5 together, 4A is the transaction id unconfirmed stored in block chain agent node 10, 4B is the unacknowledged transaction id stored in purse transaction caching, and 4C is the transaction record for including in block in block chain network, 4D is that the transaction record of mobile wallet shows interface (no deal record);When transid:10000 this transaction id is in block chain When being identified in agent node 10, it can be removed from the block chain agent node 10 as shown in figure 5, and in block chain as shown in 5C Corresponding transaction record is generated in network block;Purse transaction cache module 12 is by block chain proxy interface in the area at this time Inquire whether the corresponding transaction record of this transaction id of transid:10000 is also stored in the block on block chain agent node 10 On chain agent node 10, this transaction of transid:10000 at this time not in block chain agent node 10, illustrates current mine Work has been acknowledged this transaction, then increases the transaction record that an ID is 10000 in block chain network at this time, money is deleted as shown in 5B The transaction id of this transid:10000 in packet transaction cache module 12;As shown in 5D, when user initiates to send transaction record When display request, the transaction record of mobile wallet is shown on interface, the preferential transaction record increased in purse transaction caching, i.e., 10001 transaction, then loads the transaction record having been acknowledged from polling routine sequentially in time, while it has also been discovered that Also clear 10000 transaction record is synchronized in purse transaction caching, entire transaction record is just performed such display and dynamic becomes Change.
Further, the transaction poller module 22, specifically for the growth rate according to the block chain network block, With corresponding renewal frequency, the transaction record data of newest block in the block chain network block are read, and will be described newest The transaction record evidence of block is stored in the preset recording database of the server end 20.
Specifically, block chain is formed by connecting sequentially in time by a series of block, include inside each block Several transaction data, the transaction poller module 22 read block chain network area with a preset renewal frequency The transaction record data of newest block in block, and the transaction record of newest block evidence is stored in the server end 20 In preset recording database, it can be stored with newest transaction record database on server end 20, to guarantee to store There is the All Activity of entire block chain network to record.
Further, the transaction poller module 22, specifically for the address according to the mobile wallet of the active user And block height parameter, by calling the server end polling interface to obtain active user in the block chain network block Have confirmed that transaction record.
Optionally, in one embodiment, the transaction record management system 100 based on block chain technology further include:
Transaction inquiry module 42 requests selected friendship to the block chain agent node 10 for responding the inquiry request of user The specifying information easily recorded.Wherein, the specifying information includes but is not limited to the side of producing for being transaction record, the side of being transferred to, produces Quantity produces the information such as time, transaction hash value.
Fig. 6 is please referred to, Fig. 6 is the transaction record management method based on block chain technology in first embodiment of the invention 601 method flow diagram, wherein the terminal of the application transaction record management method 601 based on block chain technology can be The mobile terminal 30 of mobile wallet application based on block chain technology is installed, for example, smart phone, tablet computer, mobile PC Deng.Specifically, the transaction record management method 601 based on block chain technology comprising steps of
Step S1 obtains active user and the transaction id that money transfer transactions generate occurs, and the transaction id is cached in the slow of terminal In depositing, wherein the corresponding transaction record of each described transaction id, the transaction id include the unique string of the transaction Code HASH value.
The operation specifically, each pen of user in block chain network transfers accounts, digs mine etc., the transaction that can all generate, often One transaction record generates in block chain, all can include a unique string code, this " unique string code " is referred to as It is exactly that the transaction records corresponding transaction id for hash value of trading;The tool currently traded can be inquired by the transaction id Body information, for example, the side of producing, the side of being transferred to, producing quantity, producing time, transaction hash value etc..The purse transaction cache module 12, which obtain active user, occurs the transaction id that money transfer transactions generate, and the transaction id is cached in the caching of terminal.
Step 2, the transaction id stored up according to the cache, inquiry whether there is the friendship on block chain agent node Easy ID;
Step S31 confirms the corresponding transaction of the transaction id when the transaction id is not present on the block chain agent node Record has been identified, deletes the corresponding transaction id in the caching;
Step S32, there are when the transaction id, confirm the corresponding transaction note of the transaction id on the block chain agent node Record is not yet identified.
Specifically, the purse transaction cache module 12 loads the transaction id currently stored in the buffer first, then lead to It crosses block chain proxy interface and inquires whether the corresponding transaction record of the transaction id is also protected on the block chain agent node 10 There are on the block chain agent node 10;If it is, confirm that the corresponding transaction record of the transaction id is not yet identified, example Such as, transaction id state or transaction id in the confirmation of the block chain agent node is acted on behalf of in the block chain The state to be confirmed of node;If without finding the corresponding transaction note of the transaction id on the block chain agent node 10 Record, then confirm that the corresponding transaction record of the transaction id has been identified, for example, the transaction id is confirmed by miner, failure Transaction, or successfully transaction, then need to delete transaction id also in the buffer, at this time until All Activity ID has been identified Finish.
Step S4, the corresponding transaction record of transaction id being cached in the caching of the terminal described in acquisition, and pass through Active user's has confirmed that transaction record in server end polling interface acquisition block chain network block.
Specifically, the purse transaction cache module 12 obtains the transaction id pair being cached in the caching of the terminal The transaction record answered;The transaction poller module 22 is obtained in block chain network block by server end polling interface and is currently used Family has confirmed that transaction record.
In the present embodiment, by inquiring the corresponding transaction record of the transaction id on the block chain agent node 10 Whether also it is stored on the block chain agent node 10, deletes transaction record in caching in time and be identified the transaction id, Reduce caching to occupy;Meanwhile described be cached in the caching of the terminal is obtained by the purse transaction cache module 12 The corresponding transaction record of transaction id obtains block chain network area by server end polling interface by the transaction poller module 22 Active user has confirmed that transaction record in block, and mobile terminal only needs to store the transaction id for the active user being not yet identified, Obtain active user in block chain network block from the server end 20 when needed has confirmed that transaction record, reduces The memory space requirement of mobile device, while a kind of available user being provided and has confirmed that friendship with unacknowledged transaction record Easily record administrative mechanism.
Further, in the step S2, the purse transaction cache module 12 is regular according to the preset time interval Inquiry whether there is the transaction id on block chain agent node 10.
Please also refer to Fig. 7, based on the present invention is based on the first embodiment of the transaction record management method of block chain technology, It is proposed the transaction record management method 702 based on block chain technology in second embodiment of the invention, it is in the present embodiment, described Step S1 ~ S4 is identical with the first embodiment, and details are not described herein;Wherein, after the step S4, further includes:
Step S5, by the corresponding transaction record of transaction id in the caching for being cached in the terminal with corresponding shape unconfirmed State is showed in transaction record and shows on interface;
And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
It is understood that the transaction record display module 32 opens when user initiates to send transaction record display request It is dynamic, the unacknowledged transaction record, i.e., the corresponding transaction record of transaction id in the caching of the described terminal are loaded respectively;And Have confirmed that transaction record, i.e., the transaction record stored in block chain network block.Above-mentioned two pieces of transaction record informations are merged into one A more complete transaction record can be formed by, which rising, shows view.
Specifically, please combining Fig. 4 and Fig. 5 together, 4A is the transaction id unconfirmed stored in block chain agent node 10, 4B is the unacknowledged transaction id stored in purse transaction caching, and 4C is the transaction record for including in block in block chain network, 4D is that the transaction record of mobile wallet shows interface (no deal record);When transid:10000 this transaction id is in block chain When being identified in agent node 10, it can be removed from the block chain agent node 10 as shown in figure 5, and in block chain as shown in 5C Corresponding transaction record is generated in network block;Purse transaction cache module 12 is by block chain proxy interface in the area at this time Inquire whether the corresponding transaction record of this transaction id of transid:10000 is also stored in the block on block chain agent node 10 On chain agent node 10, this transaction of transid:10000 at this time not in block chain agent node 10, illustrates current mine Work has been acknowledged this transaction, then increases the transaction record that an ID is 10000 in block chain network at this time, money is deleted as shown in 5B The transaction id of this transid:10000 in packet transaction cache module 12;As shown in 5D, when user initiates to send transaction record When display request, the transaction record of mobile wallet is shown on interface, the preferential transaction record increased in purse transaction caching, i.e., 10001 transaction, then loads the transaction record having been acknowledged from polling routine sequentially in time, while it has also been discovered that Also clear 10000 transaction record is synchronized in purse transaction caching, entire transaction record is just performed such display and dynamic becomes Change.
Please also refer to Fig. 8, based on the present invention is based on the first embodiment of the transaction record management method of block chain technology, It is proposed the transaction record management method 803 based on block chain technology in third embodiment of the invention, it is in the present embodiment, described Step S1 ~ S4 is identical with the first embodiment, and details are not described herein;Wherein, it further comprises the steps of:
Step S6 reads the block link network according to the growth rate of the block chain network block with corresponding renewal frequency The transaction record data of newest block in network block, and the transaction record of newest block evidence is stored in the server end Preset recording database in.
Specifically, block chain is formed by connecting sequentially in time by a series of block, include inside each block Several transaction data, the transaction poller module 22 read block chain network area with a preset renewal frequency The transaction record data of newest block in block, and the transaction record of newest block evidence is stored in the server end 20 In preset recording database, it can be stored with newest transaction record database on server end 20, to guarantee to store There is the All Activity of entire block chain network to record.
Optionally, in one embodiment, in the step S4, the transaction that is cached in described in acquisition in the caching of the terminal The step of ID corresponding transaction record, comprising: according to the address of the mobile wallet of the active user and block height parameter, By calling what the server end polling interface obtained active user in the block chain network block to have confirmed that transaction record.
Optionally, the state unconfirmed includes transaction id state in the confirmation of the block chain agent node, Or the transaction id is in the state to be confirmed of the block chain agent node;
The committed state treasured includes that the transaction id is confirmed by miner, the transaction of failure, or successfully transaction.
Please also refer to Fig. 9, based on the present invention is based on the first embodiment of the transaction record management method of block chain technology, It is proposed the transaction record management method 904 based on block chain technology in fourth embodiment of the invention, it is in the present embodiment, described Step S1 ~ S4 is identical with the first embodiment, and details are not described herein;Wherein, it further comprises the steps of:
Step S7 responds the inquiry request of user, and the specific of selected transaction record is requested to the block chain agent node 10 Information.Wherein, when the specifying information includes but is not limited to the side of producing for being transaction record, the side of being transferred to, produces quantity, produces Between, the transaction information such as hash value.
It is understood that the position of the step S7 and sequence be not limited, user can any step it Before, later or between execute step S7.
Fig. 2 please be recombine, the transaction record management system 100 based on block chain technology in an embodiment of the present invention Including memory 21 and processor 31, computer program is stored on the memory 21, the processor 31 executes the meter The step of transaction record management method based on block chain technology in any of the above-described embodiment is realized when calculation machine program, it is specific to walk Suddenly, details are not described herein.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed The step of transaction record management method based on block chain technology in any of the above-described embodiment may be implemented when executing in device, specifically Step, details are not described herein.
It is understood that in the description of this specification, reference term " embodiment ", " another embodiment ", " other The description of embodiment " or " first embodiment ~ N embodiment " etc. means specific spy described in conjunction with this embodiment or example Sign, structure, material or feature are included at least one embodiment or example of the invention.In the present specification, to above-mentioned The schematic representation of term may not refer to the same embodiment or example.Moreover, the specific features of description, structure, material Or feature can be combined in any suitable manner in any one or more of the embodiments or examples.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It is understood that the above is only a preferred embodiment of the present invention, it is not intended to limit the scope of the invention, It is all to utilize equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is applied directly or indirectly in Other related technical areas are included within the scope of the present invention.

Claims (10)

1. a kind of transaction record management method based on block chain technology, which is characterized in that comprising steps of
It obtains active user and the transaction id that money transfer transactions generate occurs, and the transaction id is cached in the caching of terminal, In, the corresponding transaction record of each described transaction id, the transaction id includes the unique string code HASH of the transaction Value;
According to the transaction id that the cache stores up, inquiry whether there is the transaction id on block chain agent node;
On the block chain agent node be not present the transaction id when, confirm the corresponding transaction record of the transaction id by Confirmation, deletes the corresponding transaction id in the caching;
On the block chain agent node there are when the transaction id, confirm the corresponding transaction record of the transaction id not yet by Confirmation;
The corresponding transaction record of the transaction id being cached in described in acquisition in the caching of the terminal, and pass through server end poll Active user's has confirmed that transaction record in interface acquisition block chain network block.
2. the transaction record management method as described in claim 1 based on block chain technology, which is characterized in that the acquisition institute The corresponding transaction record of transaction id being cached in the caching of the terminal is stated, and area is obtained by server end polling interface In block chain network block active user the step of having confirmed that transaction record after, further includes:
The corresponding transaction record of transaction id in the caching for being cached in the terminal is shown with corresponding state unconfirmed It is shown on interface in transaction record;
And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
3. the transaction record management method as described in claim 1 based on block chain technology, which is characterized in that further include step It is rapid:
The block chain network block is read with corresponding renewal frequency according to the growth rate of the block chain network block In newest block transaction record data, and by the transaction record of the newest block according to being stored in the default of the server end In database of record.
4. the transaction record management method as described in claim 1 based on block chain technology, which is characterized in that described to pass through clothes Device end polling interface of being engaged in obtains the step of having confirmed that transaction record of active user in block chain network block, comprising:
According to the address of the mobile wallet of the active user and block height parameter, by calling the server end poll What interface obtained active user in the block chain network block has confirmed that transaction record.
5. the transaction record management method based on block chain technology as described in any one of claim 1 ~ 4, which is characterized in that
The state unconfirmed includes transaction id state or transaction in the confirmation of the block chain agent node To be confirmed state of the ID in the block chain agent node;
The committed state includes that the transaction id is confirmed by miner, the transaction of failure, or successfully transaction.
6. a kind of transaction record management system based on block chain technology characterized by comprising
For obtaining active user the transaction id that money transfer transactions generate occurs for purse transaction cache module, and by the transaction id It is cached in the caching of terminal, wherein the corresponding transaction record of each described transaction id, the transaction id are handed over comprising the pen Easy unique string code HASH value;According to the transaction id that the cache stores up, according to the preset time interval periodically in area Inquiry whether there is the transaction id on block chain agent node;And the transaction id is not present on the block chain agent node When, confirm that the corresponding transaction record of the transaction id has been identified, deletes the corresponding transaction id in the caching, and obtain The corresponding transaction record of transaction id in the caching for being cached in the terminal;And it is deposited on the block chain agent node In the transaction id, confirm that the corresponding transaction record of the transaction id is not yet identified;
It trades poller module, is had confirmed that for obtaining active user in block chain network block by server end polling interface Transaction record.
7. the transaction record management system as claimed in claim 6 based on block chain technology, which is characterized in that further include:
Transaction record display module, for by the corresponding transaction record of transaction id in the caching for being cached in the terminal with Corresponding state unconfirmed is showed in transaction record and shows on interface;And/or
It active user in block chain network block is obtained by server end polling interface has confirmed that transaction record by described, with Corresponding committed state is showed in transaction record and shows on interface.
8. the transaction record management system as claimed in claim 6 based on block chain technology, which is characterized in that the transaction wheel Module is ask, the growth rate according to the block chain network block is also used to, with corresponding renewal frequency, reads the block chain The transaction record data of newest block in network block, and the transaction record of newest block evidence is stored in the server In the preset recording database at end.
9. the transaction record management system as claimed in claim 6 based on block chain technology, which is characterized in that the transaction wheel Ask module, specifically for according to the mobile wallet of the active user address and block height parameter, described in calling What server end polling interface obtained active user in the block chain network block has confirmed that transaction record.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of transaction record management method based on block chain technology as described in any one of claims 1 to 5 is realized when execution.
CN201711299394.5A 2017-12-08 2017-12-08 Transaction record management method, system and storage medium based on block chain technology Expired - Fee Related CN108960801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711299394.5A CN108960801B (en) 2017-12-08 2017-12-08 Transaction record management method, system and storage medium based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711299394.5A CN108960801B (en) 2017-12-08 2017-12-08 Transaction record management method, system and storage medium based on block chain technology

Publications (2)

Publication Number Publication Date
CN108960801A true CN108960801A (en) 2018-12-07
CN108960801B CN108960801B (en) 2020-05-15

Family

ID=64495347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711299394.5A Expired - Fee Related CN108960801B (en) 2017-12-08 2017-12-08 Transaction record management method, system and storage medium based on block chain technology

Country Status (1)

Country Link
CN (1) CN108960801B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109741171A (en) * 2018-12-26 2019-05-10 中国银联股份有限公司 A kind of method and device of cross-border remittance information registration
CN110349029A (en) * 2019-07-17 2019-10-18 中国银行股份有限公司 A kind of processing method, equipment and the system of the trade identity based on block chain
CN110472977A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of the transaction record generation method and relevant device of block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681246A (en) * 2004-06-30 2005-10-12 中国银行股份有限公司 Payment system and method for customs tax by internet
US20160012424A1 (en) * 2014-07-11 2016-01-14 Ribbit.me! USA Inc. Distributed ledger protocol to incentivize transactional and non-transactional commerce
CN107169055A (en) * 2017-04-27 2017-09-15 北京众享比特科技有限公司 The operating method and operating system of a kind of database table
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107332826A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 The communication means and device of block chain agent node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681246A (en) * 2004-06-30 2005-10-12 中国银行股份有限公司 Payment system and method for customs tax by internet
US20160012424A1 (en) * 2014-07-11 2016-01-14 Ribbit.me! USA Inc. Distributed ledger protocol to incentivize transactional and non-transactional commerce
CN107169055A (en) * 2017-04-27 2017-09-15 北京众享比特科技有限公司 The operating method and operating system of a kind of database table
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107332826A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 The communication means and device of block chain agent node

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109741171A (en) * 2018-12-26 2019-05-10 中国银联股份有限公司 A kind of method and device of cross-border remittance information registration
CN109741171B (en) * 2018-12-26 2024-01-30 中国银联股份有限公司 Cross-border money transfer information registration method and device
CN110349029A (en) * 2019-07-17 2019-10-18 中国银行股份有限公司 A kind of processing method, equipment and the system of the trade identity based on block chain
CN110349029B (en) * 2019-07-17 2022-04-15 中国银行股份有限公司 Block chain-based transaction consistency processing method, device and system
CN110472977A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of the transaction record generation method and relevant device of block chain
CN110472977B (en) * 2019-08-20 2023-09-19 深圳市迅雷网络技术有限公司 Transaction record generation method of blockchain and related equipment

Also Published As

Publication number Publication date
CN108960801B (en) 2020-05-15

Similar Documents

Publication Publication Date Title
TWI698108B (en) Blockchain-based data processing method and device
EP4202694A1 (en) Node memory-based data processing method and apparatus, device, and medium
Veijalainen et al. Transaction management for m-commerce at a mobile terminal
CN103024014B (en) By the method and system of the mass data distribution processor of message queue
KR20210002574A (en) Data backup methods, storage media and computing devices
CN201682522U (en) Conversation information storage system and application server
CN102609813B (en) based on the master data management architecture of cloud
CN101916289B (en) Method for establishing digital library storage system supporting mass small files and dynamic backup number
CN101636723A (en) Web server for managing session and its method
CN103095819A (en) Data information pushing method and data information pushing system
CN102722405B (en) Counting method and system in high concurrent and multithreaded application
CN103312624A (en) Message queue service system and method
TW200400444A (en) System and method for accessing different types of back end data stores
CN102541990A (en) Database redistribution method and system utilizing virtual partitions
US10031948B1 (en) Idempotence service
CN108960801A (en) Transaction record management method, system and storage medium based on block chain technology
CN102012981A (en) Distributing and matching method and system of general permission grade
WO2023011022A1 (en) Blockchain-based data processing method, and device and computer-readable storage medium
CN105138571A (en) Distributed file system and method for storing lots of small files
CN102447714A (en) Cookie management method
CN112800066B (en) Index management method, related equipment and storage medium
CN105468643A (en) Distributed file system access method and system
CN107852370A (en) System and method for a scalable network buffer management
CN103714089A (en) Method and system of rolling back cloud database
CN104660710A (en) Method and system for achieving virtual desktop, and corresponding 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
TA01 Transfer of patent application right

Effective date of registration: 20200423

Address after: Room 202, 2nd floor, F1 Building, Yuanjun Shuyuan International Media Industry Park, No. 8 Gaojing Cultural Park Road, Chaoyang District, Beijing

Applicant after: Puhua Yunchuang Technology (Beijing) Co.,Ltd.

Address before: 100036 No. 141, Gate 1, 3rd Floor, No. 14 Fuxing Road, Haidian District, Beijing

Applicant before: Zhai Hongying

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200515

Termination date: 20211208

CF01 Termination of patent right due to non-payment of annual fee