CN108764906A - A kind of server and its block chain transaction confirmation method, device, storage medium - Google Patents

A kind of server and its block chain transaction confirmation method, device, storage medium Download PDF

Info

Publication number
CN108764906A
CN108764906A CN201810542955.8A CN201810542955A CN108764906A CN 108764906 A CN108764906 A CN 108764906A CN 201810542955 A CN201810542955 A CN 201810542955A CN 108764906 A CN108764906 A CN 108764906A
Authority
CN
China
Prior art keywords
block chain
transaction
account information
requesting party
cochain
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
CN201810542955.8A
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810542955.8A priority Critical patent/CN108764906A/en
Publication of CN108764906A publication Critical patent/CN108764906A/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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

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)

Abstract

This application discloses a kind of server and its block chain transaction confirmation method, device, storage mediums, including:Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information;Obtain block chain account information corresponding with the requesting party;Judge whether the transaction request can correctly execute using the block chain account information;If it is not, then returning to Fail Transaction prompt message to the requesting party, if it is, returning to successfully prompt message of merchandising to the requesting party, and the Transaction Information is submitted into cochain.Transaction request only need to uniformly be submitted to the server outside block chain by user in the application, the block chain account information obtained in advance by the server by utilizing confirms customer transaction request, the confirmation speed of transaction can substantially be accelerated in this way, user can know whether the transaction that oneself is submitted can correctly execute within the extremely short time, period of reservation of number is effectively reduced, trade confirmation efficiency is improved.

Description

A kind of server and its block chain transaction confirmation method, device, storage medium
Technical field
This application involves block chain technical field, more particularly to a kind of server and its block chain transaction confirmation method, dress It sets, storage medium.
Background technology
In existing block chain process of exchange, it is typically based on POW (i.e. Proof of Work, proof of work), POA (i.e. Proof of Assets, assets prove) etc. knows together algorithm to confirm to transaction.However, existing block chain transaction Confirmation process needs user to wait for longer time, has seriously affected user experience.For example, the block chain based on POW common recognitions is handed over Easily need to rely on several blocks and just can confirm that, and the block chain based on POA common recognitions merchandise then need it is long by one It is packaged the period.
In summary as can be seen that how to reduce the period of reservation of number of block chain transaction confirmation, to improve transaction Confirm that efficiency is current urgent problem to be solved.
Invention content
In view of this, the application's is designed to provide a kind of server and its block chain transaction confirmation method, device, deposits Storage media can effectively reduce the period of reservation of number of block chain transaction confirmation, improve trade confirmation efficiency.It is specific Scheme is as follows:
In a first aspect, this application discloses a kind of block chain transaction confirmation method, it is applied to be located at the clothes outside block chain Business device, including:
Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information;
Obtain block chain account information corresponding with the requesting party;
Judge whether the transaction request can correctly execute using the block chain account information;
If it is not, then returning to Fail Transaction prompt message to the requesting party, handed over if it is, being returned to the requesting party Easily success prompt message, and the Transaction Information is submitted into cochain.
Optionally, described that the Transaction Information is submitted into cochain, including:
If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
Optionally, the block chain transaction confirmation method further includes:
If the transaction request can be executed correctly, the block chain account information, account after being updated are updated Information, and account information after the update described in local cache.
Optionally, acquisition block chain account information corresponding with the requesting party, including:
Judge currently locally whether be cached with block chain account information corresponding with the requesting party;
If it is, directly reading the block chain account information of local cache.
Optionally, described to judge currently locally whether be cached with block chain account information corresponding with the requesting party, also Including:
If it is not, then inquiring block chain account information corresponding with the requesting party from the block chain.
Optionally, further include after account information after the update described in local cache:
The cochain if Transaction Information has succeeded judges whether the also untreated and relevant friendship of the requesting party Easily request, if it is not, then account information after the update of deletion local cache.
Optionally, the block chain is alliance's chain or privately owned chain.
Second aspect is applied to be located at the clothes outside block chain this application discloses a kind of block chain trade confirmation device Business device, including:
Transaction request acquisition module, the transaction request for obtaining requesting party's submission;Wherein, the transaction request includes to hand over Easy information;
Account information acquisition module, for obtaining block chain account information corresponding with the requesting party;
Trade processing module, for judging whether the transaction request can correctly be held using the block chain account information Row;If it is not, then to the requesting party return Fail Transaction prompt message, if it is, to the requesting party return transaction at Work(prompt message, and the Transaction Information is submitted into cochain.
Optionally, the trade processing module, including:
Chain element in repetition, for when cochain fail, then again by the Transaction Information submit cochain, until cochain at Work(.
Optionally, the block chain trade confirmation device further includes:
Account updates cache module, can correctly be executed for working as the transaction request, then updates the block chain account Information, account information after being updated, and account information after the update described in local cache.
Optionally, the account information acquisition module, including:
First judging unit, for judging currently locally whether be cached with block chain account letter corresponding with the requesting party Breath;
First acquisition unit then directly reads local cache for being yes when the judging result of first judging unit The block chain account information.
Optionally, the account information acquisition module further includes:
Second acquisition unit is no for the judging result when first judging unit, is then looked into from the block chain Ask block chain account information corresponding with the requesting party.
Optionally, the block chain trade confirmation device further includes:
Second judgment unit, for having succeeded cochain when the Transaction Information, then judge whether it is also untreated and The relevant transaction request of requesting party, if it is not, then account information after the update of deletion local cache.
The third aspect, this application discloses a kind of server outside block chain, including processor and memory, institutes It states and realizes aforementioned disclosed block chain transaction confirmation method when processor executes the computer program preserved in the memory.
Optionally, when the processor executes the computer subprogram preserved in the memory, following step is implemented Suddenly:If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
Optionally, when the processor executes the computer subprogram preserved in the memory, following step is implemented Suddenly:If the transaction request can be executed correctly, the block chain account information is updated, account information after being updated, And account information after being updated described in local cache.
Optionally, when the processor executes the computer subprogram preserved in the memory, following step is implemented Suddenly:Judge currently locally whether be cached with block chain account information corresponding with the requesting party;If it is, directly reading this The block chain account information of ground caching, if it is not, then inquiring block corresponding with the requesting party from the block chain Chain account information.
Optionally, when the processor executes the computer subprogram preserved in the memory, following step is implemented Suddenly:After being updated described in local cache after account information, the cochain if Transaction Information has succeeded judges whether also The untreated and relevant transaction request of the requesting party, if it is not, then account information after the update of deletion local cache.
Fourth aspect, this application discloses a kind of computer readable storage mediums, for storing computer program, the meter Calculation machine program realizes aforementioned disclosed block chain transaction confirmation method when being executed by processor.
Optionally, when the computer subprogram preserved in the computer readable storage medium is executed by processor, specifically Realize following steps:If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
Optionally, when the computer subprogram preserved in the computer readable storage medium is executed by processor, specifically Realize following steps:If the transaction request can be executed correctly, the block chain account information is updated, after obtaining update Account information, and account information after the update described in local cache.
Optionally, when the computer subprogram preserved in the computer readable storage medium is executed by processor, specifically Realize following steps:Judge currently locally whether be cached with block chain account information corresponding with the requesting party;If it is, The block chain account information of local cache is directly read, if it is not, then inquiry and the requesting party from the block chain Corresponding block chain account information.
Optionally, when the computer subprogram preserved in the computer readable storage medium is executed by processor, specifically Realize following steps:After being updated described in local cache after account information, the cochain if Transaction Information has succeeded judges With the presence or absence of the also untreated and relevant transaction request of the requesting party, if it is not, then deleting the update of local cache Account information afterwards.
As it can be seen that block chain transaction confirmation is unfolded using the server being set to outside block chain in the application, tool Body, above-mentioned server first obtains the transaction request of requesting party's submission and block chain account information corresponding with requesting party, so The above-mentioned block chain account information of server by utilizing judges whether above-mentioned transaction request can correctly execute afterwards, if can not be correct Execution then returns to Fail Transaction prompt message, if it is possible to which correct execute then returns to the successfully prompt message and by Transaction Information of merchandising Submit cochain.It can be seen that the application is without directly occurring transaction confirmation between user and block chain, user need to will only hand over Please easily seek unification the server submitted to outside block chain, the block chain account information obtained in advance by the server by utilizing to Family transaction request confirmed, so compared with the prior art in transaction is confirmed based on common recognition algorithm process, this Shen Can please substantially accelerate transaction confirmation speed, user can know within the extremely short time oneself submit transaction whether It can correctly execute.To sum up, the technical solution in the application can effectively reduce user's waiting of block chain transaction confirmation Time improves trade confirmation efficiency, improves user experience.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of block chain transaction confirmation method flow chart disclosed in the embodiment of the present application;
Fig. 2 is a kind of specific block chain transaction confirmation method flow chart disclosed in the embodiment of the present application;
Fig. 3 is a kind of block chain trade confirmation apparatus structure schematic diagram disclosed in the embodiment of the present application;
Fig. 4 is a kind of server architecture schematic diagram outside block chain disclosed in the embodiment of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Block chain is that one kind being integrated with the computers such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm The new application pattern of technology, can apply in many industries, such as banking, insurance, retail business.Transaction is block chain A very crucial link in technology needs to rely on the common recognition algorithm such as POW, POA in existing block chain process of exchange Transaction is confirmed, however during being confirmed to transaction using common recognition algorithm, need user to wait for the long period, Trade confirmation is less efficient, has seriously affected user experience.For this purpose, the application determine to provide corresponding technical solution to solve on It states the problems of in the prior art.
The embodiment of the present application discloses a kind of block chain transaction confirmation method, is applied to be located at the service outside block chain Device, shown in Figure 1, this method includes:
Step S11:Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information.
It should be pointed out that the above-mentioned server of the present embodiment is independently of the server outside block chain, the present embodiment is logical It crosses the server and uniformly receives and processes the transaction request that user is initiated by client, can correctly be held in confirmation transaction request Uplink operation is carried out to the Transaction Information in transaction request in the case of row.
In the present embodiment, the computing capability and storage capacity in above-mentioned server are sufficiently strong, can only setting one Platform server uniformly receives and handles all transaction requests, and in single server limited capacity, can also by by The server cluster that multiple servers are constituted responds all transaction requests, it is to be understood that in above-mentioned server cluster Different servers responds different transaction requests.
It is understood that above-mentioned server in the present embodiment is either conventional physical server, can also be Cloud Server.
In the present embodiment, user generates Transaction Information by preset client in the terminals such as mobile phone, computer, then will packet Transaction request containing the Transaction Information is sent to above-mentioned server.In the present embodiment, the type of above-mentioned transaction request includes but not It is limited to transfer request and payment request etc..By taking transfer request as an example, when user A intends to transfer accounts a certain number of coins to user B When, the Transaction Information that above-mentioned client generates such as " C coin is given to user B by user's A requests " can be first passed through, then will The Transaction Information is embedded into transaction request and is sent to above-mentioned server.
Step S12:Obtain block chain account information corresponding with the requesting party.
In the present embodiment, after server gets the transaction request of requesting party's submission, it is personal further to obtain requesting party Block chain account information.In the first specific implementation mode, server is after getting above-mentioned transaction request, Ke Yizhi It connects and obtains the corresponding block chain account information of requesting party from block chain.In second of specific implementation mode, server is obtaining Before getting above-mentioned transaction request, newest block chain account letter currently corresponding with requesting party can be first obtained from block chain Breath, and it is stored in local, after getting above-mentioned transaction request, just directly block chain account corresponding with requesting party is read from local Family information.In the third specific implementation mode, local whether preserve first judged after getting transaction request for server Newest block chain account information currently corresponding with requesting party if it is directly acquires block chain account information from local, If otherwise obtaining block chain account information from block chain.
It is understood that the corresponding block chain account information of each user includes balance amount information in the present embodiment, when Further include so the information such as corresponding wallet address.
Step S13:Judge whether the transaction request can correctly execute using the block chain account information.
In the present embodiment, after server gets block chain account information, worked as using block chain account information determination Whether preceding transaction request can correctly execute.For example, when transaction request is transfer request, it can be determined that block chain account information In user balance whether be not less than corresponding transfer amounts, if it is, judgement transfer request can correctly execute, if not Then judge that transfer request can not be executed correctly.
Step S14:If it is not, then Fail Transaction prompt message is returned to the requesting party, if it is, to the request Side returns to successfully prompt message of merchandising, and the Transaction Information is submitted cochain.
In the present embodiment, when server determines that transaction request can not be executed correctly, then it can be returned at once to requesting party Corresponding prompt message, to inform that requesting party's transaction can not be successfully execution.When server determines that transaction request can correctly be held When row, then can corresponding prompt message be returned to requesting party at once, to inform that requesting party's transaction can be executed smoothly, subsequently by servicing Device backstage submit information by way of by corresponding Transaction Information submit cochain, without user wait for Transaction Information cochain at Can just know after work(it is that whether transaction confirms as a result, it can thus be seen that when server determines transaction request can be correct When executing or can not correctly execute, user can know trade confirmation as a result, without user etc. in a short period of time Wait for the too long of time.
In addition, it is necessary to which, it is noted that the block chain in the present embodiment is either alliance's chain, can also be privately owned chain.
As it can be seen that block chain transaction confirmation is unfolded using the server being set to outside block chain in the embodiment of the present application , specifically, above-mentioned server first obtains the transaction request and block chain account corresponding with requesting party letter of requesting party's submission Breath, then the above-mentioned block chain account information of server by utilizing judges whether above-mentioned transaction request can correctly execute, if cannot Enough correct execute then returns to Fail Transaction prompt message, if it is possible to which correct execute then returns to the successfully prompt message and by friendship of merchandise Easy information submits cochain.It can be seen that the embodiment of the present application is not necessarily to that transaction confirmation directly occurs between user and block chain, Transaction request only need to uniformly be submitted to the server outside block chain, the block chain obtained in advance by the server by utilizing by user Account information to customer transaction request confirm, so compared with the prior art in based on common recognition algorithm to transaction confirm Process, the embodiment of the present application can substantially accelerate the confirmation speed of transaction, and user can know within the extremely short time Whether the transaction oneself submitted can correctly execute.To sum up, the technical solution in the embodiment of the present application can effectively reduce block The period of reservation of number of chain transaction confirmation improves trade confirmation efficiency, improves user experience.
Shown in Figure 2, the embodiment of the present application discloses a kind of specific block chain transaction confirmation method, applied to being located at Server outside block chain, including:
Step S21:Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information.
Step S22:Judge currently locally whether be cached with block chain account information corresponding with the requesting party.
Step S23:If it is, the block chain account information of local cache is directly read, if it is not, then from described Block chain account information corresponding with the requesting party is inquired on block chain.
Step S24:Judge whether the transaction request can correctly execute using the block chain account information.
Step S25:If it is not, then returning to Fail Transaction prompt message to the requesting party.
Step S26:If it is, returning to successfully prompt message of merchandising to the requesting party, and the Transaction Information is carried Hand in chain and the update block chain account information, account information after being updated, and account after the update described in local cache Family information.
It should be pointed out that when Transaction Information is submitted cochain, if cochain fails, the transaction can be believed again Breath submits cochain, until cochain success.
It, before this may service when server receives the transaction request of some requesting party initiation in the present embodiment Device has locally been cached with block chain account information corresponding with the requesting party, so server is when receiving transaction request, First judge currently locally whether be cached with corresponding block chain account information, if it is can directly utilize the area of local cache Whether block chain account information judgement transaction request can correctly execute, if it is possible to which correct execute then returns to phase to requesting party at once The transaction success prompt message answered, while block chain account information can be updated accordingly and cache, and Transaction Information is carried out Chain.
In the present embodiment, after the update described in local cache after account information, it can also specifically include:If described Transaction Information has succeeded cochain, then judge whether it is also untreated with the relevant transaction request of the requesting party, if not, Then delete account information after the update of local cache.
Specifically, after being updated described in local cache after account information, the cochain if above-mentioned Transaction Information has succeeded, And there is currently no the also untreated transaction requests submitted by above-mentioned requesting party, then can delete the institute of local cache at this time State account information after updating;And if the also failed cochain of above-mentioned Transaction Information, or currently there is also carried by above-mentioned requesting party Other the also untreated transaction requests handed over then continue the proper account information for retaining local cache.
For example, it is assumed that server local has been cached with the block chain account information of user A, and recorded in account information Active user A also remains 10 coins, when user A needs to transfer accounts 4 coins gives user B, then user A needs to send out to server Corresponding transaction request, server is sent first to extract block chain account information corresponding with user A from local cache, pass through ratio The coin number transferred accounts is needed with user A, it may be determined that go out user A and currently send out compared with the remaining coin number in the block chain account information The transaction request risen can be executed correctly, and right rear line A return is merchandised successfully prompt message, and to corresponding Transaction Information into Row cochain is simultaneously updated the former block chain account information of local cache, and the remaining coin after update in account information is by original 10 coins be changed to 6 coins.It is understood that before above-mentioned Transaction Information success cochain, if serviced at this time Device has received another transaction request that user A is sent, then after server extended meeting according to account after the update of local cache Family information determines whether the transaction request can correctly execute.When All Activity information corresponding with user A successfully on It, then can be by the account information of local cache after chain, and currently without other untreated transaction requests corresponding with user A It is deleted.
In the present embodiment, realizes above-mentioned block chain by using unified external server or server cluster and merchandise really Verifying method, and after returning to successfully prompt message of merchandising to requesting party, server can carry out more corresponding account information It newly and caches, if subsequently receiving other transaction requests that requesting party further sends, the account of local cache can be utilized Family information responds the transaction request, and honeysuckle can be avoided to attack problem in this way.
Correspondingly, disclosed herein as well is a kind of block chain trade confirmation device, it is applied to be located at the clothes outside block chain Business device, shown in Figure 3, which includes:
Transaction request acquisition module 11, the transaction request for obtaining requesting party's submission;Wherein, the transaction request includes Transaction Information;
Account information acquisition module 12, for obtaining block chain account information corresponding with the requesting party;
Trade processing module 13, for judging whether the transaction request can be correct using the block chain account information It executes;If it is not, then returning to Fail Transaction prompt message to the requesting party, merchandise if it is, being returned to the requesting party Success prompt message, and the Transaction Information is submitted into cochain.
Wherein, the trade processing module, can specifically include:
Chain element in repetition, for when cochain fail, then again by the Transaction Information submit cochain, until cochain at Work(.
In the present embodiment, the block chain trade confirmation device can also include:
Account updates cache module, can correctly be executed for working as the transaction request, then updates the block chain account Information, account information after being updated, and account information after the update described in local cache.
In the present embodiment, the account information acquisition module can specifically include:
First judging unit, for judging currently locally whether be cached with block chain account letter corresponding with the requesting party Breath;
First acquisition unit then directly reads local cache for being yes when the judging result of first judging unit The block chain account information;
Second acquisition unit is no for the judging result when first judging unit, is then looked into from the block chain Ask block chain account information corresponding with the requesting party.
In the present embodiment, the block chain trade confirmation device can also include:
Second judgment unit, for having succeeded cochain when the Transaction Information, then judge whether it is also untreated and The relevant transaction request of requesting party, if it is not, then account information after the update of deletion local cache.
In the present embodiment, above-mentioned block chain can also be privately owned chain either alliance's chain.
Correspondingly, the embodiment of the present application also discloses a kind of server outside block chain, and it is shown in Figure 4, it should Server 20 includes processor 21 and memory 22, and the processor 21 executes the computer program preserved in the memory 22 Shi Shixian following steps:
Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information;It obtains and the request The corresponding block chain account information in side;Judge whether the transaction request can correctly be held using the block chain account information Row;If it is not, then to the requesting party return Fail Transaction prompt message, if it is, to the requesting party return transaction at Work(prompt message, and the Transaction Information is submitted into cochain.
It, can be specific when the processor 21 executes the computer subprogram preserved in the memory 22 in the present embodiment Realize following steps:If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
It, can be specific when the processor 21 executes the computer subprogram preserved in the memory 22 in the present embodiment Realize following steps:If the transaction request can be executed correctly, the block chain account information is updated, after obtaining update Account information, and account information after the update described in local cache.
It, can be specific when the processor 21 executes the computer subprogram preserved in the memory 22 in the present embodiment Realize following steps:Judge currently locally whether be cached with block chain account information corresponding with the requesting party;If it is, The block chain account information of local cache is directly read, if it is not, then inquiry and the requesting party from the block chain Corresponding block chain account information.
It, can be specific when the processor 21 executes the computer subprogram preserved in the memory 22 in the present embodiment Realize following steps:After being updated described in local cache after account information, the cochain if Transaction Information has succeeded judges With the presence or absence of the also untreated and relevant transaction request of the requesting party, if it is not, then deleting the update of local cache Account information afterwards.
In the present embodiment, the block chain can be alliance's chain or privately owned chain.
Further, the server 20 in the present embodiment further includes:
Buffer 23, for caching block chain account information.
Communication interface 24, for obtaining the transaction request of requesting party's transmission by telecommunication mode and from block chain Block chain account information is obtained, and Fail Transaction or successful prompt message are returned to requesting party by assist process device 21, and Transaction Information is subjected to cochain.
Input interface 25, the computer program for obtaining extraneous importing can be used for obtaining the various of extraneous input Parameter and instruction are operated accordingly with control processor 21.
Display unit 26, the real-time status for the block chain trade confirmation process to server 20 show, so as to Related personnel can understand the real-time status result of each trade confirmation process in time.
Further, the embodiment of the present application also discloses a kind of computer readable storage medium, for storing computer journey Sequence, the computer program realize following steps when being executed by processor:
Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information;It obtains and the request The corresponding block chain account information in side;Judge whether the transaction request can correctly be held using the block chain account information Row;If it is not, then to the requesting party return Fail Transaction prompt message, if it is, to the requesting party return transaction at Work(prompt message, and the Transaction Information is submitted into cochain.
In the present embodiment, when the computer subprogram preserved in the computer readable storage medium is executed by processor, Following steps can be implemented:If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
In the present embodiment, when the computer subprogram preserved in the computer readable storage medium is executed by processor, Following steps can be implemented:If the transaction request can be executed correctly, the block chain account information is updated, is obtained Account information after update, and account information after the update described in local cache.
In the present embodiment, when the computer subprogram preserved in the computer readable storage medium is executed by processor, Following steps can be implemented:Judge currently locally whether be cached with block chain account information corresponding with the requesting party;Such as Fruit is the block chain account information for then directly reading local cache, if it is not, then from the block chain inquiry with it is described The corresponding block chain account information of requesting party.
In the present embodiment, when the computer subprogram preserved in the computer readable storage medium is executed by processor, Following steps can be implemented:After being updated described in local cache after account information, the cochain if Transaction Information has succeeded, The also untreated and relevant transaction request of the requesting party is then judged whether, if it is not, then deleting the institute of local cache State account information after updating.
In the present embodiment, the block chain can be alliance's chain or privately owned chain.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with it is other The difference of embodiment, just to refer each other for same or similar part between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think to exceed scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Above to a kind of server provided herein and its block chain transaction confirmation method, device, storage medium into It has gone and has been discussed in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementation The explanation of example is merely used to help understand the present processes and its core concept;Meanwhile for the general technology people of this field Member, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as the limitation to the application.

Claims (10)

1. a kind of block chain transaction confirmation method, which is characterized in that it is applied to be located at the server outside block chain, including:
Obtain the transaction request that requesting party submits;Wherein, the transaction request includes Transaction Information;
Obtain block chain account information corresponding with the requesting party;
Judge whether the transaction request can correctly execute using the block chain account information;
If it is not, then to the requesting party return Fail Transaction prompt message, if it is, to the requesting party return transaction at Work(prompt message, and the Transaction Information is submitted into cochain.
2. block chain transaction confirmation method according to claim 1, which is characterized in that described to submit the Transaction Information Cochain, including:
If cochain fails, the Transaction Information is submitted into cochain again, until cochain success.
3. block chain transaction confirmation method according to claim 2, which is characterized in that further include:
If the transaction request can be executed correctly, the block chain account information is updated, account information after being updated, And account information after being updated described in local cache.
4. block chain transaction confirmation method according to claim 3, which is characterized in that the acquisition and the requesting party couple The block chain account information answered, including:
Judge currently locally whether be cached with block chain account information corresponding with the requesting party;
If it is, directly reading the block chain account information of local cache.
5. block chain transaction confirmation method according to claim 4, which is characterized in that described that currently local whether delay judged There is block chain account information corresponding with the requesting party, further includes:
If it is not, then inquiring block chain account information corresponding with the requesting party from the block chain.
6. according to claim 3 to 5 any one of them block chain transaction confirmation method, which is characterized in that described locally slow It deposits after the update after account information, further includes:
The cochain if Transaction Information has succeeded judges whether also untreated to ask with the relevant transaction of the requesting party It asks, if it is not, then account information after the update of deletion local cache.
7. block chain transaction confirmation method according to any one of claims 1 to 5, which is characterized in that the block chain is Alliance's chain or privately owned chain.
8. a kind of block chain trade confirmation device, which is characterized in that it is applied to be located at the server outside block chain, including:
Transaction request acquisition module, the transaction request for obtaining requesting party's submission;Wherein, the transaction request includes that transaction is believed Breath;
Account information acquisition module, for obtaining block chain account information corresponding with the requesting party;
Trade processing module, for judging whether the transaction request can correctly execute using the block chain account information; If it is not, then returning to Fail Transaction prompt message to the requesting party, successfully carried if it is, returning to merchandise to the requesting party Show information, and the Transaction Information is submitted into cochain.
9. a kind of server outside block chain, which is characterized in that including processor and memory, the processor executes Block chain as described in any one of claim 1 to 7 trade confirmation side is realized when the computer program preserved in the memory Method.
10. a kind of computer readable storage medium, which is characterized in that for storing computer program, the computer program quilt Processor realizes block chain transaction confirmation method as described in any one of claim 1 to 7 when executing.
CN201810542955.8A 2018-05-30 2018-05-30 A kind of server and its block chain transaction confirmation method, device, storage medium Pending CN108764906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810542955.8A CN108764906A (en) 2018-05-30 2018-05-30 A kind of server and its block chain transaction confirmation method, device, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810542955.8A CN108764906A (en) 2018-05-30 2018-05-30 A kind of server and its block chain transaction confirmation method, device, storage medium

Publications (1)

Publication Number Publication Date
CN108764906A true CN108764906A (en) 2018-11-06

Family

ID=64004574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810542955.8A Pending CN108764906A (en) 2018-05-30 2018-05-30 A kind of server and its block chain transaction confirmation method, device, storage medium

Country Status (1)

Country Link
CN (1) CN108764906A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710627A (en) * 2018-12-29 2019-05-03 ***股份有限公司 A kind of Transaction Inquiries method and device based on block chain network
CN109862037A (en) * 2019-03-22 2019-06-07 泰康保险集团股份有限公司 Data equipment management method, device, medium and electronic equipment based on block chain
CN109886707A (en) * 2019-02-01 2019-06-14 立旃(上海)科技有限公司 Quality guarantee data processing equipment and method based on block chain
CN109978539A (en) * 2019-03-01 2019-07-05 海南新软软件有限公司 A kind of process reminding method, the apparatus and system of the transfer of digital asset address
CN109995585A (en) * 2019-03-22 2019-07-09 杭州复杂美科技有限公司 A kind of abnormality eliminating method, equipment and storage medium
CN110222116A (en) * 2019-05-07 2019-09-10 北京奇艺世纪科技有限公司 A kind of control method, device and the storage medium of transaction data storage
CN110910249A (en) * 2019-11-22 2020-03-24 腾讯科技(深圳)有限公司 Data processing method and device, node equipment and storage medium
CN110995776A (en) * 2019-10-12 2020-04-10 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN111242620A (en) * 2020-01-15 2020-06-05 阳光易购(湖南)科技有限公司 Data caching and querying method of block chain transaction system, terminal and storage medium
CN111586038A (en) * 2020-05-06 2020-08-25 青岛大学 Data processing method and device, block chain link point equipment and storage medium
CN111612612A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN112883107A (en) * 2020-12-31 2021-06-01 杭州趣链科技有限公司 Asynchronous execution method, system and related equipment for transactions in block chain
CN112883067A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
CN113762956A (en) * 2020-06-05 2021-12-07 富泰华工业(深圳)有限公司 Transaction method and device based on block chain and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162521A (en) * 2006-10-11 2008-04-16 中国民生银行股份有限公司 Trading information processing system and processing method
CN106411950A (en) * 2016-11-21 2017-02-15 江苏通付盾科技有限公司 Block-chain transaction ID based authentication method, device and system
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN106845959A (en) * 2017-01-20 2017-06-13 深圳前海微众银行股份有限公司 Transfer account method and device
CN107016536A (en) * 2017-01-16 2017-08-04 平安银行股份有限公司 The method and trading server of trading processing
CN107239951A (en) * 2017-06-07 2017-10-10 北京天德科技有限公司 A kind of expansible Central Bank's digital cash method of commerce based on third generation block chain
CN107730254A (en) * 2016-08-12 2018-02-23 深圳市嗨马支付信息有限公司 Currency affaris safety trade system and currency method for secure transactions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162521A (en) * 2006-10-11 2008-04-16 中国民生银行股份有限公司 Trading information processing system and processing method
CN107730254A (en) * 2016-08-12 2018-02-23 深圳市嗨马支付信息有限公司 Currency affaris safety trade system and currency method for secure transactions
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN106411950A (en) * 2016-11-21 2017-02-15 江苏通付盾科技有限公司 Block-chain transaction ID based authentication method, device and system
CN107016536A (en) * 2017-01-16 2017-08-04 平安银行股份有限公司 The method and trading server of trading processing
CN106845959A (en) * 2017-01-20 2017-06-13 深圳前海微众银行股份有限公司 Transfer account method and device
CN107239951A (en) * 2017-06-07 2017-10-10 北京天德科技有限公司 A kind of expansible Central Bank's digital cash method of commerce based on third generation block chain

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710627A (en) * 2018-12-29 2019-05-03 ***股份有限公司 A kind of Transaction Inquiries method and device based on block chain network
CN109886707A (en) * 2019-02-01 2019-06-14 立旃(上海)科技有限公司 Quality guarantee data processing equipment and method based on block chain
CN111612612B (en) * 2019-02-22 2023-09-08 海南趣块飞扬科技有限公司 Block chain-based decentralization transaction method and device and electronic equipment
CN111612612A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN109978539A (en) * 2019-03-01 2019-07-05 海南新软软件有限公司 A kind of process reminding method, the apparatus and system of the transfer of digital asset address
CN109862037A (en) * 2019-03-22 2019-06-07 泰康保险集团股份有限公司 Data equipment management method, device, medium and electronic equipment based on block chain
CN109995585A (en) * 2019-03-22 2019-07-09 杭州复杂美科技有限公司 A kind of abnormality eliminating method, equipment and storage medium
CN110222116A (en) * 2019-05-07 2019-09-10 北京奇艺世纪科技有限公司 A kind of control method, device and the storage medium of transaction data storage
CN110222116B (en) * 2019-05-07 2022-02-01 北京奇艺世纪科技有限公司 Control method and device for transaction data storage and storage medium
CN110995776B (en) * 2019-10-12 2021-11-02 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN110995776A (en) * 2019-10-12 2020-04-10 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN110910249A (en) * 2019-11-22 2020-03-24 腾讯科技(深圳)有限公司 Data processing method and device, node equipment and storage medium
CN111242620A (en) * 2020-01-15 2020-06-05 阳光易购(湖南)科技有限公司 Data caching and querying method of block chain transaction system, terminal and storage medium
CN111586038A (en) * 2020-05-06 2020-08-25 青岛大学 Data processing method and device, block chain link point equipment and storage medium
CN113762956A (en) * 2020-06-05 2021-12-07 富泰华工业(深圳)有限公司 Transaction method and device based on block chain and electronic equipment
US20210383371A1 (en) * 2020-06-05 2021-12-09 Hon Hai Precision Industry Co., Ltd. Method of recording transactions based on blockchain and electronic device using the same
CN112883107A (en) * 2020-12-31 2021-06-01 杭州趣链科技有限公司 Asynchronous execution method, system and related equipment for transactions in block chain
CN112883107B (en) * 2020-12-31 2022-05-17 杭州趣链科技有限公司 Asynchronous execution method, system and related equipment for transactions in block chain
CN112883067A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device

Similar Documents

Publication Publication Date Title
CN108764906A (en) A kind of server and its block chain transaction confirmation method, device, storage medium
JP6095106B2 (en) System and method for adaptive selection of bank cards for payment
US20160110188A1 (en) Session management in a mixed mode environment
KR20200091882A (en) Incremental digital asset collateral wallet
CN107040567A (en) The management-control method and device of pre-allocation of resources amount
US12019551B2 (en) Techniques for multi-tiered data storage in multi-tenant caching systems
AU2011207602A1 (en) Verification mechanism
JP6656628B1 (en) Information transaction program and information processing device
US20040039691A1 (en) Electronic funds transaction system
CN110458545A (en) Electronic transaction processing method, server, transaction terminal and system
CN108921558A (en) Assets settle accounts calculation method, system, equipment and storage medium based on block chain
CN108734580A (en) A kind of data processing method, system and computer readable storage medium
CN109086398A (en) Asynchronous cochain method, equipment and computer readable storage medium
US20190095922A1 (en) Cooperative fraud-detection processing
CN110413918A (en) Data transmission method for uplink, device, equipment and storage medium
US20220180344A1 (en) Simulated account based on a real world account
KR101766703B1 (en) Integrated management system that implements the desired book direct loan service through bookstore and he desired book direct loan service method using thererof
US20230325895A1 (en) Systems and methods for dynamic interface generation for commerce platform onboarding
CN108320206A (en) A kind of inquiry approaches to IM, server and computer readable storage medium
CN113159935B (en) To-be-handled business processing method and device based on block chain
JP7308977B2 (en) Method, transaction management device and computer readable medium for facilitating concurrent trading
JP6651108B1 (en) Cryptographic asset management system and cryptographic asset management method
CN108717622A (en) Loaning bill refund treating method and apparatus
KR101712020B1 (en) Apparatus and method for processing payment using virtual account
JP7305907B2 (en) Server, method and program in customer information management system of financial institution

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: 20181106