CN106503053B - UTXO querying method and device - Google Patents
UTXO querying method and device Download PDFInfo
- Publication number
- CN106503053B CN106503053B CN201610850289.5A CN201610850289A CN106503053B CN 106503053 B CN106503053 B CN 106503053B CN 201610850289 A CN201610850289 A CN 201610850289A CN 106503053 B CN106503053 B CN 106503053B
- Authority
- CN
- China
- Prior art keywords
- query result
- utxo
- transaction identifiers
- output index
- transaction
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind of UTXO querying method and devices, wherein method includes: the UTXO inquiry request for receiving simple payment verification node and sending;UTXO inquiry request includes transaction identifiers and output index;Chain slip condition database is inquired according to transaction identifiers, obtains the corresponding query result of transaction identifiers;Judgement output index is with the presence or absence of 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 method, realizes and do not possess the SPV node of intact block chain and also can quickly inquire UTXO.
Description
Technical field
The present invention relates to Internet software arts more particularly to a kind of UTXO querying methods and device.
Background technique
The transaction of bit coin is most important part in bit coin system.The essence of bit coin transaction is data structure, wherein
Relevant information containing bit coin transaction participant's value Transfer.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 basic unit of bit coin transaction is without using
One transaction exports (Unspent Transaction Output), abbreviation UTXO.UTXO is cannot to divide again, be locked by the owner
Firmly or a certain amount of bit coin currency for being recorded in block chain.When a user receives bit coin, the amount of money is taken as UTXO
It is recorded in block chain.In this way, the bit coin of a user can be taken as UTXO to be distributed in multiple transaction and multiple blocks.It is real
On border, and there is no stored bits coin address or the place of account balance, the UTXO for the dispersion only lockked by the owner.It is handed over
The UTXO of easy consumption is referred to as input of trading, and is referred to as output of trading by the UTXO of transaction creation.By such manner, a certain amount of
Bit coin value shifted between the different owners, and in transaction consume and create UTXO.One bit coin transaction passes through
UTXO is unlocked using the signature of the owner, and is locked by using the bit coin address of the new owner and created UTXO.
Bit coin uses the P2P network architecture.P2P refers to that each node in consolidated network is reciprocity each other, each
Node provides network server jointly, any special joint is not present, to realize decentralization.Although bit coin P2P network
In each node it is reciprocity each other, but different according to provided function, each node may have the different division of labor.Each
Bit coin node is all routing, and block chain database digs the function set of mine and wallet server.One in bit coin network
A little nodes have a complete newest block chain copy, and such node is referred to as " Quan Jiedian ".Full node can be independent
All Activity is automatically verified, without by any outer non-economic.It is complete to save since full node has complete block chain
Point can create the overall picture of all UTXO that can be used for consuming.When verifying some transaction in some block, full node can be with
It traces back to wound generation block always since the block, establishes a complete UTXO database, thus by whether confirming the UTXO
The validity to confirm transaction is not spent also.Other node may have no ability to store complete block chain, such as intelligently
Mobile phone, tablet computer, embedded system etc..Such node is referred to as simple payment verification node (simplified
Payment verification), abbreviation SPV node.It only needs download area build, and does not have to download package containing friendship within a block
Easy information, therefore the overall picture of all UTXO that can be used for consuming cannot be created.SPV node cannot inquire UTXO, can not
Whether verifying UTXO is paid for.
Summary of the invention
Goal of the invention of the invention is in view of the drawbacks of the prior art, to provide a kind of UTXO querying method and device, is used
In solving the problems, such as that SPV node can not inquire UTXO in the prior art.
According to an aspect of the invention, there is provided a kind of UTXO querying method, comprising: receive simple payment verification node
The UTXO inquiry request of transmission;UTXO inquiry request includes transaction identifiers and output index;Chain is inquired according to transaction identifiers
Slip condition database obtains the corresponding query result of transaction identifiers;Judgement output index is with the presence or absence of in query result;If defeated
Index is present in query result out, returns to successful inquiring to simple payment verification node;If output index is not present in inquiring
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 unit is additionally provided, comprising: receive request module, use
In the UTXO inquiry request for receiving simple payment verification node transmission;UTXO inquiry request includes transaction identifiers and output rope
Draw;Enquiry module obtains the corresponding query result of transaction identifiers for inquiring chain slip condition database according to transaction identifiers;
Judgment module, for judging output index with the presence or absence of in query result;If output index is present in query result, Xiang Jian
Single payment verification node returns to successful inquiring;If output index is not present in query result, returned to simple payment verification node
Return inquiry failure.
The UTXO querying method and device provided according to the present invention receives the UTXO inquiry that simple payment verification node is sent
Request inquires chain slip condition database according to the transaction identifiers in UTXO inquiry request, obtains the corresponding inquiry of transaction identifiers
As a result.Judgement output index, which whether there is, to be returned in query result, and then according to judging result to simple payment verification node
Corresponding successful inquiring or failure.By UTXO querying method, realize do not possess the SPV node of intact block chain also can be fast
The inquiry UTXO of speed.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of UTXO querying method according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of UTXO querying method in accordance with another embodiment of the present invention;
Fig. 3 shows the illustrative view of functional configuration of UTXO inquiry unit according to an embodiment of the invention;
Fig. 4 shows the illustrative view of functional configuration of UTXO inquiry unit in accordance with another embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow diagram of UTXO querying method according to an embodiment of the invention, as shown in Figure 1, should
Method specifically comprises the following steps:
Step S101 receives the UTXO inquiry request that simple payment verification node is sent.
Simple payment verification (simplified payment verification, SPV) node, only verifies some payment
Whether it is implicitly present in, and obtains how many confirmations, therefore it only saves block head, without includes the transaction letter in block
Breath.
UTXO is that a transaction without using exports (Unspent Transaction Output).When simple payment is tested
When card node needs to carry out UTXO inquiry, due to that, without saving Transaction Information, can not be inquired in simple payment verification node
UTXO only sends out UTXO inquiry request.UTXO inquiry request includes transaction identifiers and output index.Transaction identifiers are to hand over
Easy Hash can uniquely identify a transaction.Which output of the output index for being identified as in transaction.Pass through transaction
Identifier and output index can determine a UTXO.
Step S102 inquires chain slip condition database according to transaction identifiers, obtains the corresponding query result of transaction identifiers.
The information of spendable UTXO in entire block chain is saved in chain slip condition database.Chain slip condition database is
LevelDB database.LevelDB database belongs to Key-Value type database.The data format of storage is Key-Value lattice
Formula.I.e. each data is all one-to-one Key and Value.Its corresponding Value can be found by Key.Wherein Key number
Value is the relevant information of transaction identifiers, and Value numerical value is the relevant information of the corresponding UTXO of transaction identifiers.
When inquiry, corresponding Key value is found according to transaction identifiers, and then obtain the inquiry knot in its corresponding Value
Fruit.
Step S103 judges output index with the presence or absence of in query result.
Obtaining in the corresponding query result of transaction identifiers includes the relevant information of UTXO, is searched in query result defeated
It indexes out, if output index is present in query result, that is, has found the corresponding UTXO of UTXO inquiry request, execute step
Otherwise S104 executes step S105.
Step S104 returns to successful inquiring to simple payment verification node if output index is present in query result.
Step S105 returns to inquiry failure to simple payment verification node if output index is not present in query result.
The UTXO querying method provided according to the present invention receives the UTXO inquiry request that simple payment verification node is sent,
Chain slip condition database is inquired according to the transaction identifiers in UTXO inquiry request, obtains the corresponding query result of transaction identifiers.
Judgement output index whether there is in query result, and then corresponding to the return of simple payment verification node according to judging result
Successful inquiring or failure.By UTXO querying method, realizes and do not possess the SPV node of intact block chain and also can quickly look into
Ask UTXO.
Fig. 2 shows the flow diagrams of UTXO querying method in accordance with another embodiment of the present invention, as shown in Fig. 2,
This method specifically comprises the following steps:
Step S201 receives the UTXO inquiry request that simple payment verification node is sent.
This step can refer to the step S101 in Fig. 1 embodiment of the method, and details are not described herein again.
Transaction identifiers are carried out serializing processing by step S202, obtain serializing transaction identifiers.
Serializing processing can be used pre-arranged code format and encode transaction identifiers, to obtain serializing trading standard
Know symbol, is directly acquired after being intercepted to avoid transaction identifiers in a network.
Step S203 inquires chain slip condition database according to serializing transaction identifiers, obtains corresponding query result.
The information of spendable UTXO in entire block chain is saved in chain slip condition database.Chain slip condition database is
LevelDB database.LevelDB database belongs to Key-Value type database.The data format of storage is Key-Value lattice
Formula.I.e. each data is all one-to-one Key and Value.Its corresponding Value can be found by Key.Wherein Key number
Value is the relevant information of serializing transaction identifiers, and Value numerical value is the relevant information of the corresponding UTXO of transaction identifiers.
Optionally, Key data when stored, can be set to the letter after predetermined character is combined with serializing transaction identifiers
Breath.In inquiry, according to chain slip condition database is inquired after serializing transaction identifiers and predetermined character combination, obtains serializing and hand over
Query result in the corresponding Value numerical value of easy 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 inquiry that received simple payment verification node is sent
Request, wherein when transaction identifiers are the transaction identifiers forged, executing the query result that step S203 is obtained is sky.Therefore,
When judging query result for sky, step S208 is executed.If not empty, step S205 is continued to execute.
Step S205, parses query result, the query result after obtaining parsing.
The Transaction Information of storage can be carried out such as the safety for guaranteeing Transaction Information in chain state database purchase
It is stored again after the processing such as encryption, serializing, to ensure the safety of the Transaction Information of storage.After obtaining query result, to inquiry
As a result it is parsed, such as query result is decrypted, unserializing processing, the query result after obtaining parsing.
Step S206 judges output index with the presence or absence of 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, is had found
The corresponding UTXO of UTXO inquiry request executes step S207, otherwise, executes step S208.
Step S207 returns to successful inquiring to simple payment verification node.
Step S208 returns to inquiry failure to simple payment verification node.
The UTXO querying method provided according to the present invention, realize do not possess the SPV node of intact block chain also can be fast
The inquiry UTXO of speed.Further, after transaction identifiers being carried out serializing processing, in turn according to the inquiry of serializing transaction identifiers
Obtain query result.Parsing after the serializing of query result is handled and obtained in storage to query result, all effectively
Avoiding directly leaking there is a situation where transaction identifiers or query result, it is stolen to cause.Being empty is made whether to query result
Judgement improves the speed of inquiry so that excluding is empty query result, saves query time.
Fig. 3 shows the functional block diagram of UTXO inquiry unit according to an embodiment of the invention, as shown in figure 3, this dress
Comprising with lower module in setting:
Request module 310 is received, the UTXO inquiry request sent for receiving simple payment verification node.
Simple payment verification (simplified payment verification, SPV) node, only verifies some payment
Whether it is implicitly present in, and obtains how many confirmations, therefore it only saves block head, without includes the transaction letter in block
Breath.
UTXO is that a transaction without using exports (Unspent Transaction Output).When simple payment is tested
When card node needs to carry out UTXO inquiry, due to that, without saving Transaction Information, can not be inquired in simple payment verification node
UTXO receives request module 310 and sends out UTXO inquiry request.UTXO inquiry request includes transaction identifiers and output index.
Transaction identifiers are the Hash of transaction, can uniquely identify a transaction.Which for being identified as in transaction output index
A output.A UTXO can be determined by transaction identifiers and output index.
Enquiry module 320, for obtaining according to transaction identifiers inquiry chain slip condition database, transaction identifiers are corresponding to be looked into
Ask result.
The information of spendable UTXO in entire block chain is saved in chain slip condition database.Chain slip condition database is
LevelDB database.LevelDB database belongs to Key-Value type database.The data format of storage is Key-Value lattice
Formula.I.e. each data is all one-to-one Key and Value.Can to find its corresponding by Key for enquiry module 320
Value.Wherein Key numerical value is the relevant information of transaction identifiers, and Value numerical value is that the corresponding UTXO of transaction identifiers is relevant
Information.
When enquiry module 320 is inquired, corresponding Key value is found according to transaction identifiers, and then obtain its corresponding Value
In query result.
Judgment module 330, for judging output index with the presence or absence of 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
It verifies node and returns to inquiry failure.
It includes the relevant information of UTXO that enquiry module 320, which obtains 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, has found UTXO inquiry request
Corresponding UTXO, judgment module 330 return to successful inquiring to simple payment verification node, and otherwise, judgment module 330 is propped up to simple
It pays verifying node and returns to inquiry failure.
The UTXO inquiry unit provided according to the present invention receives the UTXO inquiry request that simple payment verification node is sent,
Chain slip condition database is inquired according to the transaction identifiers in UTXO inquiry request, obtains the corresponding query result of transaction identifiers.
Judgement output index whether there is in query result, and then corresponding to the return of simple payment verification node according to judging result
Successful inquiring or failure.By UTXO querying method, realizes and do not possess the SPV node of intact block chain and also can quickly look into
Ask UTXO.
Fig. 4 shows the functional block diagram of UTXO inquiry unit in accordance with another embodiment of the present invention, as shown in figure 4, with
Fig. 3 is compared, and the present apparatus further includes following module:
Empty judgment module 340 returns to inquiry failure to simple payment verification node if being sky for query result.
The Transaction Information of forgery is also likely to be present in network, if receiving in the received UTXO inquiry request of request module 310
Transaction identifiers be forge transaction identifiers when, enquiry module 320 obtain query result be sky.Therefore, sentenced by sky
When disconnected module 340 judges query result for sky, inquiry failure is returned to simple payment verification node.If not empty, it continues to execute
Judgment module 330.
It further, is Logistics networks information security, avoiding transaction identifiers or query result from directly leaking causes to be stolen
The case where.Enquiry module 320 further comprises serializing processing module 321, for transaction identifiers to be carried out serializing processing, sequence
Columnization processing can be used pre-arranged code format and encode transaction identifiers, so that serializing transaction identifiers are obtained, to keep away
Exempt to directly acquire after transaction identifiers are intercepted in a network.Further, in chain slip condition database, Key data when stored, can
To be set as the information after predetermined character is combined with serializing transaction identifiers.Enquiry module 320 is in inquiry, according to serializing
Chain slip condition database is inquired after transaction identifiers and predetermined character combination, obtains the corresponding Value number of serializing transaction identifiers
Query result in value.
Judgment module 330 further comprises parsing module 331, for being parsed to query result, the knot after obtaining parsing
Fruit.When chain state database purchase, the Transaction Information of storage can be carried out such as encrypting, be stored again after serializing processing, with
Ensure the safety of the Transaction Information of storage.After enquiry module 320 obtains query result, parsing module 331 carries out query result
Parsing, such as query result is decrypted, unserializing processing, the query result after obtaining parsing.Judgment module 330 is solving
Output index is searched in query result after analysis, if output index is present in query result, that is, has found UTXO inquiry request
Corresponding UTXO returns to successful inquiring to simple payment verification node, otherwise, returns to inquiry to simple payment verification node and loses
It loses.
It can refer to the description of Fig. 3 Installation practice divided by other modules except upper module, details are not described herein again.
The UTXO inquiry unit provided according to the present invention, realize do not possess the SPV node of intact block chain also can be fast
The inquiry UTXO of speed.Further, after transaction identifiers being carried out serializing processing, in turn according to the inquiry of serializing transaction identifiers
Obtain query result.Parsing after the serializing of query result is handled and obtained in storage to query result, all effectively
Avoiding directly leaking there is a situation where transaction identifiers or query result, it is stolen to cause.Being empty is made whether to query result
Judgement improves the speed of inquiry so that excluding is empty query result, saves query time.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect 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 a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize one of some or all components 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 product).It is such to realize that program of the invention deposit
Storage on a computer-readable medium, or may be in the form of one or more signals.Such signal can be from because of spy
It downloads and obtains on net website, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of UTXO querying method characterized by comprising
Receive the UTXO inquiry request that simple payment verification node is sent;The UTXO inquiry request includes transaction identifiers and defeated
It indexes out;Wherein, which output of the output index for being identified as in transaction;
Chain slip condition database is inquired according to the transaction identifiers, obtains the corresponding query result of the transaction identifiers;
Judge the output index with the presence or absence of 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 to inquiry failure to the simple payment verification node.
2. the method according to claim 1, wherein described inquire chain status data according to the transaction identifiers
Library, obtaining the corresponding query result of the transaction identifiers further comprises:
The transaction identifiers are subjected to serializing processing, obtain serializing transaction identifiers;According to the serializing trading standard
Know symbol inquiry chain slip condition database, obtains corresponding query result.
3. according to the method described in claim 2, it is characterized in that, described carry out serializing processing for the transaction identifiers,
Obtaining serializing transaction identifiers further comprises:
The transaction identifiers are encoded using pre-arranged code format, obtain serializing transaction identifiers.
4. method according to claim 1-3, which is characterized in that the judgement output index whether there is
Further comprise in the query result:
The query result is parsed, the result after obtaining parsing;Judge the output index with the presence or absence of in the solution
In result after analysis.
5. the method according to claim 1, wherein in the judgement output index with the presence or absence of in described
Before in query result, the method also includes:
If the query result is sky, inquiry failure is returned to the simple payment verification node.
6. a kind of UTXO inquiry unit characterized by comprising
Request module is received, the UTXO inquiry request sent for receiving simple payment verification node;The UTXO inquiry request
Including transaction identifiers and output index;Wherein, which output of the output index for being identified as in transaction;
It is corresponding to obtain the transaction identifiers for inquiring chain slip condition database according to the transaction identifiers for enquiry module
Query result;
Judgment module, for judging the output index with the presence or absence of in the query result;If the output index exists
In the query result, successful inquiring is returned to the simple payment verification node;If the output index is not present in institute
It states in query result, returns to inquiry failure to the simple payment verification node.
7. device according to claim 6, which is characterized in that the enquiry module further include:
Processing module is serialized, for the transaction identifiers to be carried out serializing processing, obtains serializing transaction identifiers;
The enquiry module is further used for: inquiring chain slip condition database according to the serializing transaction identifiers, obtains and correspond to
Query result.
8. device according to claim 7, which is characterized in that the serializing processing module is further used for:
The transaction identifiers are encoded using pre-arranged code format, obtain serializing transaction identifiers.
9. according to the described in any item devices of claim 6-8, which is characterized in that the judgment module further include:
Parsing module, for being parsed to the query result, the result after obtaining parsing;
The judgment module is further used for: judging the output index with the presence or absence of in the result after the parsing.
10. device according to claim 6, which is characterized in that described device further include:
Empty judgment module returns to inquiry failure to the simple payment verification node if being sky for the query result.
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 CN106503053A (en) | 2017-03-15 |
CN106503053B true 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) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102525244B1 (en) | 2016-12-21 | 2023-04-24 | 엔체인 홀딩스 리미티드 | Computer-implemented systems and methods for enabling complex functionality in blockchains while maintaining security-based limits on script size and opcode limits |
GB201701589D0 (en) * | 2017-01-31 | 2017-03-15 | Nchain Holdings Ltd | Computer-implemented system and method |
CN107659429A (en) * | 2017-08-11 | 2018-02-02 | 四川大学 | Data sharing method based on block chain |
CN107943951B (en) * | 2017-11-24 | 2020-08-11 | 中钞***产业发展有限公司杭州区块链技术研究院 | Method and system for retrieving block chain service information |
WO2019207503A1 (en) * | 2018-04-27 | 2019-10-31 | nChain Holdings Limited | Partitioning a blockchain network |
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 |
CN109067541B (en) * | 2018-06-29 | 2020-09-22 | 阿里巴巴集团控股有限公司 | Data verification method and device based on block chain and electronic equipment |
CN109272403A (en) * | 2018-07-31 | 2019-01-25 | 北京比特大陆科技有限公司 | A kind of method and apparatus for supporting digital cash to trade |
CN109447639A (en) * | 2018-10-23 | 2019-03-08 | 杭州复杂美科技有限公司 | Privacy transactions balances scan method, equipment and storage medium |
CN110046901B (en) * | 2018-12-28 | 2020-06-30 | 阿里巴巴集团控股有限公司 | Credibility verification method, system, device and equipment of alliance chain |
CN109903161B (en) * | 2019-02-28 | 2021-11-09 | 百度在线网络技术(北京)有限公司 | 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 |
CN110098979B (en) * | 2019-04-16 | 2023-04-14 | 深圳前海微众银行股份有限公司 | Short link message monitoring method and device based on block chain |
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 |
CN112732803B (en) * | 2021-04-06 | 2021-06-29 | 北京万物智链科技有限公司 | Consensus block chain transaction query verification method and system |
CN115422184A (en) * | 2022-08-22 | 2022-12-02 | 中国人民银行数字货币研究所 | Data acquisition method, device, equipment and storage medium |
Citations (5)
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 |
-
2016
- 2016-09-26 CN CN201610850289.5A patent/CN106503053B/en active Active
Patent Citations (5)
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)
Title |
---|
"SPV、SPV节点和SPV钱包";chenhw;《http://m.8btc.com/article/49691》;20150323;第1-6页 |
"精通比特币-第5章交易";西西;《http://8btc.com/article-1788-1.html》;20150502;第1-14页 |
Also Published As
Publication number | Publication date |
---|---|
CN106503053A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106503053B (en) | UTXO querying method and device | |
Dib et al. | Consortium blockchains: Overview, applications and challenges | |
CN106339875B (en) | Operation note checking method and device based on publicly-owned block chain | |
CN106357640B (en) | Identity identifying method, system and server based on block chain network | |
US11120153B2 (en) | Resource file processing system and method based on blockchain structure | |
EP3321819B1 (en) | Device, method and program for securely reducing an amount of records in a database | |
CN109510860A (en) | A kind of data processing method, relevant device and system | |
CN105096172A (en) | Electronic invoice generating and processing method and system based on e-commerce platform | |
CN110599174B (en) | Block chain information processing method and related equipment | |
CN104811428A (en) | Method, device and system for verifying client identity by social relation data | |
JP2020160611A (en) | Test scenario generation device and test scenario generation method and test scenario generation program | |
KR20190107009A (en) | Computer-implemented system and method for determining the state of a machine executable contract implemented using blockchain | |
CN109784870A (en) | Measure of managing contract, device, computer equipment and computer readable storage medium | |
CN104040552A (en) | Software modification for partial secure memory processing | |
KR102455870B1 (en) | Clustering method for cryptocurrency wallet addresses | |
CN111967061A (en) | Credible account transfer transaction method and device based on block chain | |
CN117616410A (en) | Multiparty computing in a computer slicing environment | |
CN107948253A (en) | Decentralization date storage method and system, electronic equipment, storage medium | |
CN101401351A (en) | Password protection | |
CN109905366A (en) | Terminal device safe verification method, device, readable storage medium storing program for executing and terminal device | |
CN106875175B (en) | Method and device convenient for payment subject expansion | |
CN111324799B (en) | Search request processing method and device | |
CN112632619A (en) | Cross-link certificate storage method and device, terminal equipment and storage medium | |
Saadiah | Consortium blockchain for military supply chain | |
CN110197372A (en) | Means of defence, equipment and the storage medium of trading group attack |
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 |