CN106503053A - UTXO querying methods and device - Google Patents

UTXO querying methods and device Download PDF

Info

Publication number
CN106503053A
CN106503053A CN201610850289.5A CN201610850289A CN106503053A CN 106503053 A CN106503053 A CN 106503053A CN 201610850289 A CN201610850289 A CN 201610850289A CN 106503053 A CN106503053 A CN 106503053A
Authority
CN
China
Prior art keywords
query result
transaction identifiers
utxo
inquiry
output index
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
CN201610850289.5A
Other languages
Chinese (zh)
Other versions
CN106503053B (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.)
Jiangsu Payegis Technology Co Ltd
Original Assignee
Jiangsu Payegis 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 Jiangsu Payegis Technology Co Ltd filed Critical Jiangsu Payegis Technology Co Ltd
Priority to CN201610850289.5A priority Critical patent/CN106503053B/en
Publication of CN106503053A publication Critical patent/CN106503053A/en
Application granted granted Critical
Publication of CN106503053B publication Critical patent/CN106503053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • 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

Abstract

The invention discloses a kind of UTXO querying methods and device, wherein, method includes:Receive the UTXO inquiry requests that simple payment verification node sends;UTXO inquiry requests include transaction identifiers and output index;Chain slip condition database is inquired about according to transaction identifiers, the corresponding Query Result of transaction identifiers is obtained;Judge that output index whether there is in Query Result;If output index is present in Query Result, successful inquiring is returned to simple payment verification node;If output index is not present in Query Result, inquiry failure is returned to simple payment verification node.Using this programme, by UTXO querying methods, it is achieved that the SPV nodes for not possessing intact block chain also can quickly inquire about UTXO.

Description

UTXO querying methods and device
Technical field
The present invention relates to Internet software arts, more particularly to a kind of UTXO querying methods and device.
Background technology
The transaction of bit coin is most important part in bit coin system.The essence of bit coin transaction is data structure, wherein The relevant information of participant's value Transfer of concluding the business containing bit coin.Bit coin block chain is global double-entry bookkeeping ledger, each The transaction of bit coin is all an open record on bit coin block chain.The ultimate unit of bit coin transaction is without using One transaction output (Unspent Transaction Output), abbreviation UTXO.UTXO is can not to split again, be locked by the owner Firmly or a certain amount of bit coin currency of the record in block chain.When a user receives bit coin, the amount of money is taken as UTXO Record is in block chain.So, the bit coin of a user can be taken as UTXO to be distributed in multiple transaction and multiple blocks.Real On border, there is no the place of stored bits coin address or account balance, the scattered UTXO for only being pinned by the owner.Handed over The UTXO of easy consumption is referred to as transaction input, is referred to as transaction output by the UTXO of transaction creation.By such manner, a certain amount of Bit coin be worth between the different owners shift, and in transaction consume and create UTXO.One bit coin transaction passes through UTXO is unlocked using possessory signature, and is locked and create UTXO by using new possessory bit coin address.
Bit coin adopts the P2P network architectures.P2P refers to that each node in consolidated network is reciprocity each other, each Node provides the webserver jointly, there is no any special joint, so as to realize decentration.Although bit coin P2P networks In each node reciprocity each other, but different according to the function that provided, each node may have the different division of labor.Each Bit coin node is all to route, and block chain data base digs the function set of ore deposit and wallet server.In bit coin network one A little nodes have a complete newest block chain copy, and such node is referred to as " full node ".Full node can be independent All Activity is verified independently, without by any external reference.As full node has complete block chain, therefore save entirely Point can create the overall picture of all UTXO that can be used to and consume.During certain transaction in certain block is verified, full node can be with Start to trace back to wound generation block always from the block, set up a complete UTXO data base, so as to pass through whether confirm the UTXO Also do not spend to confirm the effectiveness that concludes the business.Other node may have no ability to store complete block chain, for example intelligently Mobile phone, panel computer, embedded system etc..Such node is referred to as simple payment verification node (simplified Payment verification), abbreviation SPV nodes.Which needs download area build, and without downloading the friendship being included in block Easily information, therefore can not create the overall picture of all UTXO that can be used to and consume.SPV nodes can not be inquired about to UTXO, it is impossible to Whether checking UTXO is paid for.
Content of the invention
The goal of the invention of the present invention is the defect for prior art, there is provided a kind of UTXO querying methods and device, uses In solving the problems, such as that SPV nodes cannot inquire about UTXO in prior art.
According to an aspect of the invention, there is provided a kind of UTXO querying methods, including:Receive simple payment verification node The UTXO inquiry requests of transmission;UTXO inquiry requests include transaction identifiers and output index;Chain is inquired about according to transaction identifiers Slip condition database, obtains the corresponding Query Result of transaction identifiers;Judge that output index whether there is in Query Result;If defeated Go out index to be present in Query Result, successful inquiring is returned to simple payment verification node;If output index is not present in inquiring about As a result, in, inquiry failure is returned to simple payment verification node.
According to another aspect of the present invention, a kind of UTXO inquiry units are additionally provided, including:Request module is received, is used In the UTXO inquiry requests for receiving simple payment verification node transmission;UTXO inquiry requests include transaction identifiers and output rope Draw;Enquiry module, for inquiring about chain slip condition database according to transaction identifiers, obtains the corresponding Query Result of transaction identifiers; Judge module, for judging that output index whether there is in Query Result;If output index is present in Query Result, Xiang Jian Single payment verification node returns successful inquiring;If output index is not present in Query Result, return to simple payment verification node Return inquiry failure.
The UTXO querying methods provided according to the present invention and device, receive the UTXO inquiries that simple payment verification node sends Request, according to the transaction identifiers inquiry chain slip condition database in UTXO inquiry requests, obtains the corresponding inquiry of transaction identifiers As a result.Judge that output index whether there is in Query Result, and then returned to simple payment verification node according to judged result Corresponding successful inquiring or failure.By UTXO querying methods, it is achieved that the SPV nodes for not possessing intact block chain also can be fast The inquiry UTXO of speed.
Description of the drawings
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of UTXO querying methods according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of UTXO querying methods in accordance with another embodiment of the present invention;
Fig. 3 shows the illustrative view of functional configuration of UTXO inquiry units according to an embodiment of the invention;
Fig. 4 shows the illustrative view of functional configuration of UTXO inquiry units in accordance with another embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 shows the schematic flow sheet of UTXO querying methods according to an embodiment of the invention, as shown in figure 1, should Method specifically includes following steps:
Step S101, receives the UTXO inquiry requests that simple payment verification node sends.
Simple payment verification (simplified payment verification, SPV) node, only verifies certain payment Whether it is implicitly present in, and obtains how many and confirm that therefore which only saves block head, without includes the transaction letter in block Breath.
UTXO is i.e. without transaction output (Unspent Transaction Output) for using.When simple payment is tested When card node needs to carry out UTXO inquiries, due to not preserving Transaction Information in simple payment verification node, therefore cannot inquire about UTXO, only sends out UTXO inquiry requests.UTXO inquiry requests include transaction identifiers and output index.Transaction identifiers are friendship Easy Hash, can uniquely identify a transaction.Output index is used for which output being designated in transaction.By transaction Identifier and output index can determine a UTXO.
Step S102, inquires about chain slip condition database according to transaction identifiers, obtains the corresponding Query Result of transaction identifiers.
The information of spendable UTXO in whole block chain is saved in chain slip condition database.Chain slip condition database is LevelDB data bases.LevelDB data bases belong to Key-Value type data base.The data form of storage is Key-Value lattice Formula.I.e. each data is all man-to-man Key and Value.Its corresponding Value can be found by Key.Wherein Key numbers It is worth the information related for transaction identifiers, Value numerical value is the related information of the corresponding UTXO of transaction identifiers.
During inquiry, corresponding Key values are found according to transaction identifiers, and then obtain the knot of the inquiry in its corresponding Value Really.
Step S103, judges that output index whether there is in Query Result.
Obtain and in the corresponding Query Result of transaction identifiers, include the related information of UTXO, search in Query Result defeated Go out index, if output index is present in Query Result, that is, have found the corresponding UTXO of UTXO inquiry requests, execution step S104, otherwise, execution step S105.
Step S104, if output index is present in Query Result, returns successful inquiring to simple payment verification node.
Step S105, if output index is not present in Query Result, returns inquiry failure to simple payment verification node.
According to the UTXO querying methods that the present invention is provided, the UTXO inquiry requests that simple payment verification node sends are received, According to the transaction identifiers inquiry chain slip condition database in UTXO inquiry requests, the corresponding Query Result of transaction identifiers is obtained. Judge that output index whether there is in Query Result, and then returned to simple payment verification node according to judged result corresponding Successful inquiring or failure.By UTXO querying methods, it is achieved that the SPV nodes for not possessing intact block chain also quickly can be looked into Ask UTXO.
Fig. 2 shows the schematic flow sheet of UTXO querying methods in accordance with another embodiment of the present invention, as shown in Fig. 2 The method specifically includes following steps:
Step S201, receives the UTXO inquiry requests that simple payment verification node sends.
This step refers to step S101 in Fig. 1 embodiments of the method, and here is omitted.
Transaction identifiers are carried out serializing process by step S202, obtain serializing transaction identifiers.
Serializing is processed and can be encoded transaction identifiers using pre-arranged code form, so as to obtain serializing trading standard Know symbol, to avoid direct access after transaction identifiers are intercepted in a network.
Step S203, according to serializing transaction identifiers inquiry chain slip condition database, obtains corresponding Query Result.
The information of spendable UTXO in whole block chain is saved in chain slip condition database.Chain slip condition database is LevelDB data bases.LevelDB data bases belong to Key-Value type data base.The data form of storage is Key-Value lattice Formula.I.e. each data is all man-to-man Key and Value.Its corresponding Value can be found by Key.Wherein Key numbers It is worth the information related for serializing transaction identifiers, Value numerical value is the related information of the corresponding UTXO of transaction identifiers.
Alternatively, Key data when stored, could be arranged to the letter after book character is combined with serializing transaction identifiers Breath.In inquiry, according to chain slip condition database being inquired about after serializing transaction identifiers and book character combination, obtain serializing and hand over Query Result easily in the corresponding Value numerical value of identifier.
Step S204, judges whether Query Result is empty.
The Transaction Information of forgery is also likely to be present in network, if the UTXO inquiries that the simple payment verification node for receiving sends Request, wherein, when transaction identifiers are the transaction identifiers that forges, the Query Result that execution step S203 is obtained is sky.Therefore, Judge that Query Result is space-time, execution step S208.If not empty, step S205 is continued executing with.
Step S205, parses to Query Result, obtains the Query Result after parsing.
For ensure Transaction Information safety, in chain state database purchase, can to store Transaction Information carry out as Encryption, serializing etc. are stored after processing again, to ensure the safety of the Transaction Information of storage.After Query Result is obtained, to inquiry As a result parsed, such as Query Result is decrypted, unserializing etc. is processed, and obtains the Query Result after parsing.
Step S206, judges that output index whether there is in the Query Result after parsing.
Output index is searched in Query Result after parsing, if output index is present in Query Result, that is, be have found The corresponding UTXO of UTXO inquiry requests, execution step S207, otherwise, execution step S208.
Step S207, returns successful inquiring to simple payment verification node.
Step S208, returns inquiry failure to simple payment verification node.
According to the UTXO querying methods that the present invention is provided, it is achieved that the SPV nodes for not possessing intact block chain also can be fast The inquiry UTXO of speed.Further, transaction identifiers are carried out after serializing process, is inquired about further according to serializing transaction identifiers Obtain Query Result.Parsing after the serializing of Query Result being processed and obtained in storage to Query Result, all effectively Avoid transaction identifiers or Query Result directly leaks and causes stolen situation.Query Result is made whether for sky Judge, so as to exclude as empty Query Result, the speed of raising inquiry, saving query time.
Fig. 3 shows the functional block diagram of UTXO inquiry units according to an embodiment of the invention, as shown in figure 3, this dress Include with lower module in putting:
Request module 310 is received, for receiving the UTXO inquiry requests that simple payment verification node sends.
Simple payment verification (simplified payment verification, SPV) node, only verifies certain payment Whether it is implicitly present in, and obtains how many and confirm that therefore which only saves block head, without includes the transaction letter in block Breath.
UTXO is i.e. without transaction output (Unspent Transaction Output) for using.When simple payment is tested When card node needs to carry out UTXO inquiries, due to not preserving Transaction Information in simple payment verification node, therefore cannot inquire about UTXO, receives request module 310 and sends out UTXO inquiry requests.UTXO inquiry requests include transaction identifiers and output index. Transaction identifiers are the Hash of transaction, can uniquely identify a transaction.Output index for be designated transaction in which Individual output.One UTXO can determine by transaction identifiers and output index.
Enquiry module 320, for according to transaction identifiers inquiry chain slip condition database, obtaining, transaction identifiers are corresponding to be looked into Ask result.
The information of spendable UTXO in whole block chain is saved in chain slip condition database.Chain slip condition database is LevelDB data bases.LevelDB data bases belong to Key-Value type data base.The data form of storage is Key-Value lattice Formula.I.e. each data is all man-to-man Key and Value.It is corresponding that enquiry module 320 can find which by Key Value.Wherein Key numerical value is the related information of transaction identifiers, and Value numerical value is that the corresponding UTXO of transaction identifiers is related Information.
When enquiry module 320 is inquired about, corresponding Key values are found according to transaction identifiers, and then obtain its corresponding Value In Query Result.
Judge module 330, for judging that output index whether there is in Query Result;If output index is present in inquiry As a result, in, successful inquiring is returned to simple payment verification node;If output index is not present in Query Result, to simple payment Checking node returns inquiry failure.
Enquiry module 320 is obtained and includes the related information of UTXO in the corresponding Query Result of transaction identifiers, judges mould Block 330 searches output index in Query Result, if output index is present in Query Result, that is, have found UTXO inquiry requests Corresponding UTXO, judge module 330 return successful inquiring to simple payment verification node, and otherwise, judge module 330 is to simple Pay checking node and return inquiry failure.
According to the UTXO inquiry units that the present invention is provided, the UTXO inquiry requests that simple payment verification node sends are received, According to the transaction identifiers inquiry chain slip condition database in UTXO inquiry requests, the corresponding Query Result of transaction identifiers is obtained. Judge that output index whether there is in Query Result, and then returned to simple payment verification node according to judged result corresponding Successful inquiring or failure.By UTXO querying methods, it is achieved that the SPV nodes for not possessing intact block chain also quickly can be looked into Ask UTXO.
Fig. 4 shows the functional block diagram of UTXO inquiry units in accordance with another embodiment of the present invention, as shown in figure 4, with Fig. 3 is compared, and this device is also included such as lower module:
Empty judge module 340, if being sky for Query Result, returns inquiry failure to simple payment verification node.
The Transaction Information of forgery is also likely to be present in network, if receiving in the UTXO inquiry requests that request module 310 is received Transaction identifiers be forge transaction identifiers when, enquiry module 320 obtain Query Result for sky.Therefore, sentenced by sky Disconnected module 340 judges that Query Result is space-time, returns inquiry failure to simple payment verification node.If not empty, continue executing with Judge module 330.
Further, be Logistics networks information security, it is to avoid transaction identifiers or Query Result directly leak cause stolen Situation.Enquiry module 320 further comprises serializing processing module 321, for transaction identifiers are carried out serializing process, sequence Transaction identifiers can be encoded by rowization process using pre-arranged code form, so as to obtain serializing transaction identifiers, to keep away Exempt from the intercepted rear direct access of transaction identifiers in a network.Further, in chain slip condition database, Key data when stored, can To be set to the information after book character is combined with serializing transaction identifiers.Enquiry module 320 inquiry when, according to serializing Chain slip condition database is inquired about after transaction identifiers and book character combination, the corresponding Value numbers of serializing transaction identifiers are obtained Query Result in value.
Judge module 330 further comprises parsing module 331, for parsing to Query Result, obtain the knot after parsing Really.During chain state database purchase, the Transaction Information that stored can be carried out to be stored after such as encryption, serializing etc. are processed again, with Ensure the safety of the Transaction Information of storage.After enquiry module 320 obtains Query Result, parsing module 331 is carried out to Query Result Parsing, such as is decrypted to Query Result, unserializing etc. is processed, and obtains the Query Result after parsing.Judge module 330 is in solution Output index is searched in Query Result after analysis, if output index is present in Query Result, that is, have found UTXO inquiry requests Corresponding UTXO, returns successful inquiring to simple payment verification node, otherwise, returns inquiry to simple payment verification node and loses Lose.
Divided by the description that other modules outside upper module refer to Fig. 3 device embodiments, here is omitted.
According to the UTXO inquiry units that the present invention is provided, it is achieved that the SPV nodes for not possessing intact block chain also can be fast The inquiry UTXO of speed.Further, transaction identifiers are carried out after serializing process, is inquired about further according to serializing transaction identifiers Obtain Query Result.Parsing after the serializing of Query Result being processed and obtained in storage to Query Result, all effectively Avoid transaction identifiers or Query Result directly leaks and causes stolen situation.Query Result is made whether for sky Judge, so as to exclude as empty Query Result, the speed of raising inquiry, saving query time.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the above description done by language-specific is to disclose this Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case where not having these details.In some instances, known method, structure are not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure helping understand one or more in each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, should not be construed to reflect following intention by the method for the disclosure:I.e. required guarantor The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art be appreciated that can to embodiment in equipment in module carry out adaptively Change and they are arranged in one or more equipment different from the embodiment.Can be the module in embodiment or list Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are come one of some or all parts in realizing according to embodiments of the present invention A little or repertoire.The present invention is also implemented as setting for executing some or all of method as described herein Standby or program of device (for example, computer program and computer program).Such program for realizing the present invention can be deposited Storage on a computer-readable medium, or can have the form of one or more signal.Such signal can be from because of spy Download on net website and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before being located at element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer Existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of UTXO querying methods, it is characterised in that include:
Receive the UTXO inquiry requests that simple payment verification node sends;The UTXO inquiry requests include transaction identifiers and defeated Go out index;
Chain slip condition database is inquired about according to the transaction identifiers, the corresponding Query Result of the transaction identifiers is obtained;
Judge that the output index whether there is in the Query Result;
If the output index is present in the Query Result, successful inquiring is returned to the simple payment verification node;If The output index is not present in the Query Result, returns inquiry failure to the simple payment verification node.
2. method according to claim 1, it is characterised in that described inquire about chain status data according to the transaction identifiers Storehouse, obtains the corresponding Query Result of the transaction identifiers and further includes:
The transaction identifiers are carried out serializing process, obtains serializing transaction identifiers;According to the serializing trading standard Know symbol inquiry chain slip condition database, obtain corresponding Query Result.
3. method according to claim 2, it is characterised in that described the transaction identifiers are carried out serializing process, Obtain serializing transaction identifiers to further include:
The transaction identifiers are encoded using pre-arranged code form, obtains serializing transaction identifiers.
4. the method according to any one of claim 1-3, it is characterised in that the judgement output index whether there is Further include in the Query Result:
The Query Result is parsed, the result after parsing is obtained;Judge that the output index whether there is in the solution In result after analysis.
5. method according to claim 1, it is characterised in that judge that the output index whether there is in described described Before in Query Result, methods described also includes:
If the Query Result is sky, inquiry failure is returned to the simple payment verification node.
6. a kind of UTXO inquiry units, it is characterised in that include:
Request module is received, for receiving the UTXO inquiry requests that simple payment verification node sends;The UTXO inquiry requests Including transaction identifiers and output index;
Enquiry module, for inquiring about chain slip condition database according to the transaction identifiers, obtains the transaction identifiers corresponding Query Result;
Judge module, for judging that the output index whether there is in the Query Result;If the output index is present In the Query Result, successful inquiring is returned to the simple payment verification node;If the output index is not present in institute State in Query Result, inquiry failure is returned to the simple payment verification node.
7. device according to claim 6, it is characterised in that the enquiry module also includes:
Serializing processing module, for the transaction identifiers are carried out serializing process, obtains serializing transaction identifiers;
The enquiry module is further used for:According to the serializing transaction identifiers inquiry chain slip condition database, obtain corresponding Query Result.
8. device according to claim 7, it is characterised in that the serializing processing module is further used for:
The transaction identifiers are encoded using pre-arranged code form, obtains serializing transaction identifiers.
9. the device according to any one of claim 6-8, it is characterised in that the judge module also includes:
Parsing module, for parsing to the Query Result, obtains the result after parsing;
The judge module is further used for:Judge that the output index whether there is in the result after the parsing.
10. device according to claim 6, it is characterised in that described device also includes:
Empty judge module, if being sky for the Query Result, returns inquiry failure to the simple payment verification node.
CN201610850289.5A 2016-09-26 2016-09-26 UTXO querying method and device Active CN106503053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610850289.5A CN106503053B (en) 2016-09-26 2016-09-26 UTXO querying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610850289.5A CN106503053B (en) 2016-09-26 2016-09-26 UTXO querying method and device

Publications (2)

Publication Number Publication Date
CN106503053A true CN106503053A (en) 2017-03-15
CN106503053B CN106503053B (en) 2019-07-16

Family

ID=58290492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610850289.5A Active CN106503053B (en) 2016-09-26 2016-09-26 UTXO querying method and device

Country Status (1)

Country Link
CN (1) CN106503053B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659429A (en) * 2017-08-11 2018-02-02 四川大学 Data sharing method based on block chain
CN107943951A (en) * 2017-11-24 2018-04-20 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of search method and system of block chain business information
CN108764903A (en) * 2018-05-24 2018-11-06 深圳前海益链网络科技有限公司 A kind of method that the block chain Token of non intelligent contract is quickly created
CN108846668A (en) * 2018-06-28 2018-11-20 北京金山安全软件有限公司 Transaction fee estimation method and device
CN109447639A (en) * 2018-10-23 2019-03-08 杭州复杂美科技有限公司 Privacy transactions balances scan method, equipment and storage medium
CN109903161A (en) * 2019-02-28 2019-06-18 百度在线网络技术(北京)有限公司 Object processing method, device, equipment and medium based on block chain
CN110032664A (en) * 2019-03-07 2019-07-19 上海七印信息科技有限公司 A method of quickly establishing the full node address index of bit coin block chain
WO2020024474A1 (en) * 2018-07-31 2020-02-06 新加坡矩阵有限公司 Method and apparatus for supporting digital certificate transaction
CN111027947A (en) * 2019-12-06 2020-04-17 湖北文理学院 UTXO wallet selection method, UTXO wallet selection equipment, UTXO wallet storage medium and UTXO wallet selection device
WO2020134627A1 (en) * 2018-12-28 2020-07-02 阿里巴巴集团控股有限公司 Credibility verification method of alliance chain, system, device and apparatus
CN111506557A (en) * 2020-04-10 2020-08-07 上海七印信息科技有限公司 UTXO library establishing method, UTXO library establishing device, computer equipment and storage medium
WO2020211629A1 (en) * 2019-04-16 2020-10-22 深圳前海微众银行股份有限公司 Short link message monitoring method and apparatus based on blockchain
CN112732803A (en) * 2021-04-06 2021-04-30 北京万物智链科技有限公司 Consensus block chain transaction query verification method and system
JP2021515427A (en) * 2018-06-29 2021-06-17 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Blockchain-based data validation methods and equipment, as well as electronic devices
US11238450B2 (en) 2016-12-21 2022-02-01 Nchain Licensing Ag Computer-implemented systems and methods to enable complex functionality on a blockchain while preserving security-based restrictions on script size and opcode limits
US11263622B2 (en) * 2017-01-31 2022-03-01 Nchain Licensing Ag Computer-implemented system and method for determining the state of a machine executable contract implemented using a blockchain
WO2024041505A1 (en) * 2022-08-22 2024-02-29 中国人民银行数字货币研究所 Data acquisition method and apparatus, and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588243A (en) * 2008-05-21 2009-11-25 北京飞天诚信科技有限公司 A kind of electronic transaction historical record querying method and system
CN105488665A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Decentralized transaction method
KR101628005B1 (en) * 2015-02-05 2016-06-13 주식회사 코인플러그 Copyright detection system that is based on the block chain
CN105740440A (en) * 2016-02-01 2016-07-06 上海凭安网络科技有限公司 Indexing method for quickening block chain query
CN105931052A (en) * 2016-04-21 2016-09-07 四川大学 Virtual currency transaction validation method based on block chain multi-factor cross-validation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588243A (en) * 2008-05-21 2009-11-25 北京飞天诚信科技有限公司 A kind of electronic transaction historical record querying method and system
KR101628005B1 (en) * 2015-02-05 2016-06-13 주식회사 코인플러그 Copyright detection system that is based on the block chain
CN105488665A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Decentralized transaction method
CN105740440A (en) * 2016-02-01 2016-07-06 上海凭安网络科技有限公司 Indexing method for quickening block chain query
CN105931052A (en) * 2016-04-21 2016-09-07 四川大学 Virtual currency transaction validation method based on block chain multi-factor cross-validation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHENHW: ""SPV、SPV节点和SPV钱包"", 《HTTP://M.8BTC.COM/ARTICLE/49691》 *
西西: ""精通比特币-第5章交易"", 《HTTP://8BTC.COM/ARTICLE-1788-1.HTML》 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11669836B2 (en) 2016-12-21 2023-06-06 Nchain Licensing Ag Computer-implemented systems and methods to enable complex functionality on a blockchain while preserving security-based restrictions on script size and opcode limits
US11238450B2 (en) 2016-12-21 2022-02-01 Nchain Licensing Ag Computer-implemented systems and methods to enable complex functionality on a blockchain while preserving security-based restrictions on script size and opcode limits
US11900363B2 (en) * 2017-01-31 2024-02-13 Nchain Licensing Ag Computer-implemented system and method for determining the state of a machine executable contract implemented using a blockchain
US20220253835A1 (en) * 2017-01-31 2022-08-11 Nchain Licensing Ag Computer-implemented system and method for determining the state of a machine executable contract implemented using a blockchain
US11263622B2 (en) * 2017-01-31 2022-03-01 Nchain Licensing Ag Computer-implemented system and method for determining the state of a machine executable contract implemented using a blockchain
CN107659429A (en) * 2017-08-11 2018-02-02 四川大学 Data sharing method based on block chain
CN107943951A (en) * 2017-11-24 2018-04-20 中钞信用卡产业发展有限公司杭州区块链技术研究院 A kind of search method and system of block chain business information
CN108764903A (en) * 2018-05-24 2018-11-06 深圳前海益链网络科技有限公司 A kind of method that the block chain Token of non intelligent contract is quickly created
CN108846668A (en) * 2018-06-28 2018-11-20 北京金山安全软件有限公司 Transaction fee estimation method and device
JP2021515427A (en) * 2018-06-29 2021-06-17 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Blockchain-based data validation methods and equipment, as well as electronic devices
WO2020024474A1 (en) * 2018-07-31 2020-02-06 新加坡矩阵有限公司 Method and apparatus for supporting digital certificate transaction
CN109447639A (en) * 2018-10-23 2019-03-08 杭州复杂美科技有限公司 Privacy transactions balances scan method, equipment and storage medium
TWI712972B (en) * 2018-12-28 2020-12-11 開曼群島商創新先進技術有限公司 Trustworthiness verification method, system, device and equipment of alliance chain
US11107079B2 (en) 2018-12-28 2021-08-31 Advanced New Technologies Co., Ltd. Methods, systems, apparatuses and devices for verifying credibility of consortium blockchain
WO2020134627A1 (en) * 2018-12-28 2020-07-02 阿里巴巴集团控股有限公司 Credibility verification method of alliance chain, system, device and apparatus
CN109903161B (en) * 2019-02-28 2021-11-09 百度在线网络技术(北京)有限公司 Object processing method, device, equipment and medium based on block chain
CN109903161A (en) * 2019-02-28 2019-06-18 百度在线网络技术(北京)有限公司 Object processing method, device, equipment and medium based on block chain
CN110032664A (en) * 2019-03-07 2019-07-19 上海七印信息科技有限公司 A method of quickly establishing the full node address index of bit coin block chain
WO2020211629A1 (en) * 2019-04-16 2020-10-22 深圳前海微众银行股份有限公司 Short link message monitoring method and apparatus based on blockchain
CN111027947A (en) * 2019-12-06 2020-04-17 湖北文理学院 UTXO wallet selection method, UTXO wallet selection equipment, UTXO wallet storage medium and UTXO wallet selection device
CN111027947B (en) * 2019-12-06 2023-09-19 湖北文理学院 UTXO wallet selection method, device, storage medium and device
CN111506557A (en) * 2020-04-10 2020-08-07 上海七印信息科技有限公司 UTXO library establishing method, UTXO library establishing device, computer equipment and storage medium
CN112732803A (en) * 2021-04-06 2021-04-30 北京万物智链科技有限公司 Consensus block chain transaction query verification method and system
WO2024041505A1 (en) * 2022-08-22 2024-02-29 中国人民银行数字货币研究所 Data acquisition method and apparatus, and device

Also Published As

Publication number Publication date
CN106503053B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN106503053A (en) UTXO querying methods and device
US11829997B2 (en) Self-enforcing security token implementing smart-contract-based compliance rules consulting smart-contract-based global registry of investors
CN108389129B (en) Transaction execution method and device based on block chain and electronic equipment
RU2744496C2 (en) System and method for increasing safety of a smart contract in a chain of units
US11216802B2 (en) Self-enforcing security token implementing smart-contract-based compliance rules consulting smart-contract-based global registry of investors
US8539597B2 (en) Securing sensitive data for cloud computing
CN106357612A (en) Method and device for review of authentication records based on public block chains
CN107392608A (en) Digital asset method of commerce and block catenary system based on block catenary system
CN106339875A (en) Operation record review method and operation record review device based on public block chain
CN109510860A (en) A kind of data processing method, relevant device and system
CN106372940A (en) Identity authentication method based on block chain network, server and terminal device
CN107993069A (en) A kind of online transaction method and system based on block chain network
CN109582473A (en) Across chain data access method and device based on block chain
CN104461912B (en) RDMA resource leakages are detected and reported
CN104967594B (en) Stolen account identification method and apparatus
JP2020160611A (en) Test scenario generation device and test scenario generation method and test scenario generation program
CN110119428A (en) A kind of block chain information management method, device, equipment and storage medium
US20140181007A1 (en) Trademark reservation system
CN104980403B (en) The processing method and processing device of service request
CN106548065A (en) Application program installs detection method and device
CN110247857A (en) Current-limiting method and device
CN111324799B (en) Search request processing method and device
CN109361806A (en) Black number storage method, black number mark method, system and device
CN106875175B (en) Method and device convenient for payment subject expansion
Saadiah Consortium blockchain for military supply chain

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 3F301, C2 Building, 2.5 Industrial Park, No. 88 Dongchang Road, Suzhou Industrial Park, Jiangsu Province, 215000

Applicant after: JIANGSU PAYEGIS TECHNOLOGY CO., LTD.

Address before: A street in Suzhou City, Jiangsu Province Industrial Park No. 388 innovation park off No. 6 Building 5 floor

Applicant before: JIANGSU PAYEGIS TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant