CN109376187A - A kind of querying method and device based on block chain - Google Patents

A kind of querying method and device based on block chain Download PDF

Info

Publication number
CN109376187A
CN109376187A CN201811541694.4A CN201811541694A CN109376187A CN 109376187 A CN109376187 A CN 109376187A CN 201811541694 A CN201811541694 A CN 201811541694A CN 109376187 A CN109376187 A CN 109376187A
Authority
CN
China
Prior art keywords
block chain
query
result
field
node
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
CN201811541694.4A
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.)
Beijing Jingdong Financial Technology Holding Co Ltd
Original Assignee
Beijing Jingdong Financial Technology Holding 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 Beijing Jingdong Financial Technology Holding Co Ltd filed Critical Beijing Jingdong Financial Technology Holding Co Ltd
Priority to CN201811541694.4A priority Critical patent/CN109376187A/en
Publication of CN109376187A publication Critical patent/CN109376187A/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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/105Human resources
    • G06Q10/1053Employment or hiring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of querying method and device based on block chain, is related to field of computer technology.One specific embodiment of this method includes: that block chain query node makes intelligent contract, wherein including inquiry field in intelligent contract;Block chain query node broadcasts intelligence contract;Block chain destination node receives intelligent contract, generates query result according to intelligent contract, wherein includes inquiry field and the corresponding result field of inquiry field in query result;Query result is sent to block chain query node by block chain destination node;Block chain accounting nodes generate the behavior record that query result is sent to block chain query node by block chain destination node, and generate the behavior record of block chain query node broadcasts intelligence contract.The embodiment obtains more query results;The query result of acquisition is mutually tested, the reliability of query result is improved;Embody the real value of the higher query result of reliability.

Description

A kind of querying method and device based on block chain
Technical field
The present invention relates to field of computer technology more particularly to a kind of querying method based on block chain, device, electronics to set Standby and computer-readable medium.
Background technique
Block chain field is had been widely used for using the mechanism that block chain realizes inquiry, such as in credit inquiry scene In, user proposes to inquire the application (can also be simultaneously emitted by multiple mechanisms) of some mechanism blacklist, when application proposes, often will The field information for needing to inquire, such as looked into the enterprise name of main body, unified social credibility code, enterprise's mailbox, if it is relating to And individual subject, its name, ID card No., phone number etc. are often provided.The process filed an application, can be user with The multiple interactions of mechanism are also possible to regard to an intersubjective single interaction, or the interaction of the batch based on list list.Mechanism It receives after inquiring the request of its blacklist, its blacklist library is traversed by the field that user provides and extracts correlation if any meeting After information, output prepares to feed back to the field of user, due to mechanism reduces maintenance cost and closes rule aspect, the knot of return Fruit is frequently not initial data, but characterization checks in the field of result attribute, such as "Yes" or "No".In mechanism inquiry, to receiving Field can pay close attention, even if the individual not having in its blacklist, for user query be have certain reason it is assumed that may Relevant information can be fallen library, or be put into " possible problematic list ".Output field is fed back to user by mechanism, and user can be with According to result field as reference, its trading activity is instructed.User often evaluates the query result of mechanism, observes its life In situation, and according to evaluation result adjust query strategy, while to improve blacklist external inquiry efficiency, reduce inquiry at This.It is as shown in Figure 1 the existing inquiry mechanism based on block chain, U represents user, that is, issues the block chain query of inquiry request Node, P represent platform or mechanism, that is, receive the block chain destination node of inquiry request, there is in figure the inquiry mechanism as it can be seen that current Based on point-to-point inquiry.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Existing inquiry mechanism often carries out " point-to-point " inquiry, i.e. user only issues inquiry application to special body, such as Fruit is unsuccessful, then selects to send application again to other main bodys, is not the broadcast mechanism of " point-to-area ", wastes block catenary system Resource also reduces search efficiency.Corresponding authentication mechanism is not provided with for query result, reduces and checks in commenting for result Valence.It is single to check in payment mode, cannot embody result value size, current payment mode, often to check in whether, or Charging is carried out with inquiry times, or by blacklist entirety package sale, accurate charging can not be carried out to each result, it cannot Effectively solve the problems, such as " the bigger result of value is more costly ".
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of querying method and device based on block chain, intelligence can be broadcasted Contract, to obtain more query results;The query result of acquisition is mutually tested, the reliability of query result is improved; Embody the real value of the higher query result of reliability.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of inquiry based on block chain is provided Method, comprising: block chain query node makes intelligent contract, wherein including inquiry field in the intelligence contract;The block Intelligence contract described in chain query node broadcasts;The block chain destination node receives the intelligent contract, is closed according to the intelligence Query result is about generated, wherein including the inquiry field and the corresponding result word of the inquiry field in the query result Section;The query result is sent to the block chain query node by the block chain destination node;The block chain book keeping operation section Point generates the behavior record that the query result is sent to the block chain query node by the block chain destination node, and Generate the behavior record of intelligence contract described in the block chain query node broadcasts.
Optionally, the method also includes: the block chain query node is received to be sent by the block chain destination node Multiple queries result;The block chain accounting nodes generate the block chain query node and receive by the block chain target section The behavior record for the multiple queries result that point is sent;The block chain query node is determining for the same inquiry field, including The quantity of the query result of the corresponding different result field of the inquiry field;The block chain query node is according to the quantity Maximum value determine that the inquiry field adopts result field.
It optionally, further include account information, the signing messages, price of the block chain query node in the intelligent contract One or more of information;It further include the signing messages of the block chain destination node in the query result.
Optionally, the method also includes: block chain accounting nodes record Token value is by the block chain query section Point is transferred to the quantity of the block chain destination node;It include wherein the query result for adopting result field to sending The quantity of Token value of block chain destination node transfer be the first quantity, do not include described not adopting result word to sending The quantity of the Token value of the block chain destination node transfer of the query result of section is the second quantity;First number Amount is greater than second quantity.
Optionally, the block chain destination node records the inquiry field and is looked into main body.
Optionally, the method also includes: block chain accounting nodes before or after generating behavior record, GAS value is obtained to the block chain destination node and/or the block chain query node.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of looking into based on block chain Ask device, comprising: block chain query end, block chain book keeping operation end and block chain target side;
Wherein the block chain query section includes: contract module, for making intelligent contract, wherein in the intelligence contract Including inquiring field;Broadcast module, for broadcasting the intelligent contract;
The block chain target side includes: the first receiving module, for receiving the intelligent contract;Enquiry module is used for Query result is generated according to the intelligent contract, wherein including the inquiry field and the inquiry word in the query result The corresponding result field of section;Sending module, for the query result to be sent to block chain query end;
Block chain book keeping operation end includes: logging modle, is closed for generating the block chain query end broadcast intelligence Behavior record about;And generate the row that the query result is sent to block chain query end by the block chain target side For record.
Optionally, block chain query end further include: the second receiving module, for receiving by the block chain target section The multiple queries result that point is sent;Screening module, for determining for the same inquiry field, including the inquiry field is corresponding The quantity of the query result of different result fields;Matching module, for determining the inquiry according to the maximum value of the quantity Field adopts result field;
The logging modle be also used to generate block chain query end receive sent by the block chain target side it is more The behavior record of a query result.
It optionally, further include account information, signing messages, the price letter at block chain query end in the intelligent contract One or more of breath;It further include the signing messages of the block chain target side in the query result.
Optionally, the logging modle is also used to record Token value and is transferred to the area by the block chain query node The quantity of block chain destination node;It wherein include the block chain mesh of the query result for adopting result field to transmission The quantity for marking the Token value of node transfer is the first quantity, does not include the inquiry knot for adopting result field to sending The quantity of the Token value of the block chain destination node transfer of fruit is the second quantity;First quantity is greater than described second Quantity.
Optionally, the enquiry module is also used to record the inquiry field and is looked into main body.
Optionally, block chain book keeping operation end is also used to before or after generating behavior record, to the block chain Target side and/or block chain query end obtain GAS value.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of electronic equipment, comprising: One or more processors;Storage device, for storing one or more programs, when one or more of programs are by described one A or multiple processors execute so that one or more of processors realize it is any in a kind of querying method based on block chain The method.
To achieve the above object, another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, It is stored thereon with computer program, a kind of inquiry based on block chain is realized when described program is executed by one or more processors Any method in method.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because using the skill for broadcasting intelligent contract Art means so overcoming the point-to-point inquiry of conventional method obtains the few technical problem of query result, and then reach expansion inquiry As a result the technical effect of query context.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is point-to-point inquiry mode schematic diagram according to prior art;
Fig. 2 is a kind of schematic diagram of the key step of querying method based on block chain of the embodiment of the present invention;
Fig. 3 is block chain schematic illustration according to an embodiment of the present invention;
Fig. 4 is a kind of preferred embodiment schematic diagram according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of the major part of inquiry unit based on block chain according to an embodiment of the present invention;
Fig. 6 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 7 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 2 is a kind of schematic diagram of the key step of querying method based on block chain according to an embodiment of the present invention, such as Shown in Fig. 2:
Step S201 indicates that block chain query node makes intelligent contract, wherein including inquiry word in the intelligence contract Section;Intelligent contract is the common technology means in block chain technology, this term is at least for intelligent contract (Smart Contract) Nineteen ninety-five can be traced back to, is put forward by the cross-cutting jurisprudent Ni Kesabo (Nick Szabo) of fecund.He Be published in the theory for referring to intelligent contract in several articles of the website of oneself, be defined as follows: " an intelligent contract is a set of The promise (promises) defined in digital form can execute the agreement of these promises including contract participant above.Intelligence It can further include one or more of account information, signing messages, pricing information of the block chain query node in contract.Its In, account information can indicate the account information of block chain query node (i.e. user), such as the deposit for including in account, machine of opening an account Structure etc.;Signing messages is used to that the identity of the user of block chain query node to be identified and be verified;Pricing information indicates intelligence The amount of money for the paid service arranged in energy contract.
Wherein inquiry field be used to indicate inquiry content, under normal circumstances, inquire field in further include looked into main body, such as It inquires some and is looked into whether main body occurred certain behavior, if inquiry field is " whether Zhang San had overdue refund behavior ", that Main body therein of being looked into is exactly " Zhang San ".For example, Fig. 3 is block chain schematic illustration according to an embodiment of the present invention;It is looked into Main body is registrable in any one platform, and the platform being registered becomes user U.It is looked into main body registration and generates master data field Afterwards, by user U by its information package cochain, the field that packing cochain needs are inquired can be user and carry out selection.
Step S202 indicates intelligence contract described in the block chain query node broadcasts;After broadcast, intelligent contract can be with It is received by all nodes on entire block chain, the query context of query result is then expanded in point-to-area mode.
Step S203 indicates that the block chain destination node receives the intelligent contract, is looked into according to the intelligent contract generation It askes as a result, wherein including the inquiry field and the corresponding result field of the inquiry field in the query result.Wherein Corresponding result field, that is, block chain the destination node of the inquiry field (such as inquiry mechanism) according to inquiry Field Inquiry as a result, If there is multiple queries field can then correspond to multiple result fields.For example, inquiry field is that " whether Zhang San had overdue refund to go For ", then result field can be "Yes" or "No".It inquires the result that mechanism obtains inquiry and block chain is written, so that block chain Query result can be generated in query result.It further, further include the label of the block chain destination node in the query result Name information, the identity of the user to verify block chain destination node.
Step S204 indicates that the query result is sent to the block chain query node by the block chain destination node. Since intelligent contract is broadcasted, so the block chain destination node received is more, then more it is possible to return and more looks into Ask result.
Step S205 indicates that the block chain accounting nodes generate the block chain destination node and send out the query result It send to the behavior record of the block chain query node, and generates intelligence contract described in the block chain query node broadcasts Behavior record.According to the characteristic of block chain, the behavior occurred on block chain can be all recorded, the purpose of record be for the ease of Tracking, can also trade according to these records.Block chain accounting nodes " are stayed away from work without leave " (Miner), block chain accounting nodes The information recorded refers to the information of the distributed account book record of block chain.
The block chain query node receives the multiple queries result sent by the block chain destination node;The block Chain accounting nodes generate the block chain query node and receive the multiple queries result sent by the block chain destination node Behavior record.As shown in figure 4, user is in push if inquiry field is the inquiry about some by the bad credit for looking into main body Addition inquiry field in inquiry request makes intelligent contract and broadcasts and (according to the characteristic of block chain, broadcasts intelligence according to inquiry request Energy contract may need to pay a certain amount of reward GAS, be recorded by block chain accounting nodes).In multiple block chain targets After node (mechanism) receives intelligent contract, inquired in respective blacklist library by the bad credit for looking into main body according to inquiry field Record, is sent to block chain query node for the result inquired.
Since block chain has received multiple queries as a result, so to screen to query result, inquiry field pair is found out The optimum field answered is adopted.The block chain query node is determined for the same inquiry field, including the inquiry The quantity of the query result of the corresponding different result field of field;Such as in Fig. 4, in all query results, for same One inquiry field, having includes result field " R1 " in 20 query results, and having includes result field in 10 query results " R2 ", having includes result field " R3 " in 5 query results.So according to majority rule, the block chain query Node determines that the inquiry field adopts result field according to the maximum value of the quantity.For example, utilizing result field " R2 " " R3 " demonstrates the reliability of result field " R1 ", it should adopt result field " R1 ", adopt knot as the inquiry field Fruit field.This step makes full use of multiple queries result mutually to be tested, and improves the reliability of query result.Further, right , may not be identical in more complicated result field, it can be by text similarity than reciprocity technological means, to similar It spends high result field to be clustered, result field is adopted in most can also be used as of sample in classification.
For the same inquiry field, the number of the query result including the corresponding different result field of the inquiry field Measure it is equal in the case where, the block chain query node obtains the characteristic value of the query result;The block chain query node Reject the query result of the characteristic value not in default range of characteristic values;For example, for example, in all query results In, for inquiring field A, having includes result field "Yes" in 10 query results, and having includes result word in 10 query results Section "No" can not adopt result field by majority rule determination at this time, so needing to obtain characteristic value to provide More references.Wherein the corresponding characteristic value of the query result is for being described query result, and this feature value has Comparability.For example, characteristic value can be time range, it include 10 query results of result field "Yes" in above-described embodiment In, having 6 query times is two years ago, but the default range of characteristic values of query time is nearly 1 year, so this 6 query results It does not refer in particular in range, should be removed default, then count the quantity including result field "Yes" again and just there was only 4, it can be true Recognizing "No" is to adopt result field.For another example characteristic value can be to provide the registered capital of the mechanism of query result, it can be by feature Value range is set as certain amount of money or more, so will be removed from the query result that registered capital is less than the mechanism of the amount of money. Since characteristic value is the supplementary means for being verified to query result, and the selection of characteristic value needs obtaining query result Determine that, so can further be obtained with paid mode as user, certainly, mechanism can also nothing according to verification result later It repays and is provided for user.
Block chain accounting nodes record Token value (being also the tokens such as digital cash) is by the block chain query section Point is transferred to the quantity of the block chain destination node;It include wherein the query result for adopting result field to sending The quantity of Token value of block chain destination node transfer be the first quantity, do not include described not adopting result word to sending The quantity of the Token value of the block chain destination node transfer of the query result of section is the second quantity;First number Amount is greater than second quantity.According to the characteristic of block chain, the process of transaction is with the transfer of Token value, such as user needs It pays to the mechanism for having sent query result.Since the query result that user side obtains has very much, but effective query result (including the query result for adopting result field) may be only a part therein, so for justice and embodying query result Value, difference inquiry fields payment amounts should be differentiated.User pays to each mechanism for providing query result Take, but be not each mechanism fund obtained as many, due to the query result comprising adopting result field by with Family is adopted, so in order to embody payment of these query results with higher value, to the mechanism for providing these query results Answer more, and those do not include the verification process for adopting the query result of result field because taking part in query result, so answering yet Acquisition small part reward.Agreement about payment can be arranged by intelligent contract.As shown in figure 4, due to result word Section R1 has higher reliability, in order to embody result field R1 with higher real value, so to including result field The supplier (i.e. mechanism) of R1 and its query result of corresponding inquiry field should give more Token values, i.e. user couple The funds on account of these mechanisms payment should be more than other mechanisms.
Further, the block chain destination node can recorde the inquiry field and be looked into main body.In view of being looked into Main body is applied inquiry because of certain reason, it is possible to which will be looked into main body records, and is later inquiry deposit Information.Especially for main body is looked into there may be in the case where bad credit record, records and can prevent to main body is looked into It further generates bad behavior of credit.
Further, the block chain accounting nodes are before or after generating behavior record, to the block chain Destination node and/or the block chain query node obtain GAS value.It should be noted that according to the rule of block chain technology, area Block chain accounting nodes will record various actions on block chain, especially generate the behavior of transaction, and for use block chain into Capable various actions should also collect certain reward, so GAS value, similar to service charge, block chain query node (user) is wide Broadcast information, block chain destination node (mechanism) sends query result and block chain query node (user) receives information and should As block chain pays certain GAS value.It should be noted that the GAS value that block chain accounting nodes obtain, and record Token is worth transfer to be that the form of account book in a distributed manner embodies, and true data transfer occurs without being bound to.
Fig. 5 is a kind of schematic diagram of the major part of inquiry unit based on block chain according to an embodiment of the present invention, such as Shown in Fig. 5:
Block chain query end 501, block chain target side 502 and block chain book keeping operation end 503;Wherein block chain query section 501 Include:
Contract module 5011, for making intelligent contract, wherein including inquiry field in the intelligence contract;Wherein, intelligence It can further include one or more of the account information, signing messages, pricing information at block chain query end 501 in contract.
Broadcast module 5012, for broadcasting the intelligent contract.
Block chain target side 502 includes:
First receiving module 5021, for receiving the intelligent contract.
Enquiry module 5022, for generating query result according to the intelligent contract, wherein including in the query result The inquiry field and the corresponding result field of the inquiry field;It wherein further include block chain target in the query result The signing messages at end 502.Enquiry module 5022 is also used to record the inquiry field and is looked into main body.
Sending module 5023, for the query result to be sent to block chain query end 501.
Block chain book keeping operation end 503 includes:
Logging modle 5031 broadcasts the behavior record of the intelligent contract for generating block chain query end 501;And it is raw The query result is sent to the behavior record at block chain query end 501 at block chain target side 502.
Block chain query end 501 further include:
Second receiving module 5013, for receiving the multiple queries result sent by the block chain destination node.
Screening module 5014, for determining for the same inquiry field, including the corresponding different knot of the inquiry field The quantity of the query result of fruit field.
Matching module 5015, for determining that the inquiry field adopts result field according to the maximum value of the quantity.
Screening module 5014 is also used to for the same inquiry field, including the corresponding Different Results word of the inquiry field In the case that the quantity of the query result of section is equal, the characteristic value of the query result is obtained;The characteristic value is rejected not pre- If the query result in range of characteristic values.
Logging modle 5031 be also used to generate block chain query end 501 receive sent by block chain target side 502 it is multiple The behavior record of query result.
Logging modle 5031 is also used to record Token value and is transferred to the block chain target by the block chain query node The quantity of node;Wherein turn to the block chain destination node that transmission includes the query result for adopting result field The quantity of the Token value of shifting is the first quantity, is not adopted described in the query result of result field including described to sending The quantity of the Token value of block chain destination node transfer is the second quantity;First quantity is greater than second quantity.
Block chain book keeping operation end 503 is also used to before or after generating behavior record, to the block chain target side 502 and/or block chain query end 501 obtain GAS value.
Fig. 6 is shown can be using a kind of querying method or one kind based on block chain of the embodiment of the present invention based on block The exemplary system architecture 600 of the inquiry unit of chain.
As shown in fig. 6, system architecture 600 may include terminal device 601,602,603, network 604 and server 605. Network 604 between terminal device 601,602,603 and server 605 to provide the medium of communication link.Network 604 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 601,602,603 and be interacted by network 604 with server 605, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 601,602,603.
Terminal device 601,602,603 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 605 can be to provide the server of various services, such as utilize terminal device 601,602,603 to user The back-stage management server supported is provided.Back-stage management server can to receive information query request etc. data into The processing such as row analysis, and processing result is fed back into terminal device.
It should be noted that a kind of querying method based on block chain provided by the embodiment of the present invention is generally by server 605 execute, and correspondingly, a kind of inquiry unit based on block chain is generally positioned in server 605.
It should be understood that the number of terminal device, network and server in Fig. 6 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Fig. 7 show the structural representation for being suitable for the computer system 700 for the terminal device for being used to realize the embodiment of the present invention Figure.Terminal device shown in Fig. 7 is only an example, should not function to the embodiment of the present invention and use scope bring it is any Limitation.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, disclosed embodiment, the process of above step figure description may be implemented as computer according to the present invention Software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer-readable Computer program on medium, the computer program include the program code for executing method shown in block diagram.In this way Embodiment in, which can be downloaded and installed from network by communications portion 709, and/or from detachable Medium 711 is mounted.When the computer program is executed by central processing unit (CPU) 701, executes and limited in system of the invention Fixed above-mentioned function.
It should be noted that computer-readable medium shown in the present invention includes computer-readable signal media or computer Readable storage medium storing program for executing or the two any combination.Computer readable storage medium include but is not limited to electricity, magnetic, light, Electromagnetism, infrared ray, the system of semiconductor, any combination of device or device or above content.Computer readable storage medium Be specifically including but not limited to: electrical connection, portable computer diskette with one or more conducting wires, hard disk, random access are deposited Reservoir (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact Disk read-only memory (CD-ROM), light storage device, magnetic memory device or above content any combination.In the present invention In, computer readable storage medium, which includes any, includes or the tangible medium of storage program, which can be commanded and execute system System, device or device use or in connection;Computer-readable signal media includes in a base band or conduct The data-signal that carrier wave a part is propagated, wherein carrying computer-readable program code, the data-signal of this propagation can To take various forms, including but not limited to electromagnetic signal, any combination of optical signal or above-mentioned signal.Computer-readable letter Number medium can also be any computer-readable medium other than computer readable storage medium, which can be with It sends, propagate or transmits for by the use of instruction execution system, device or device or program in connection.Meter The program code for including on calculation machine readable medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, Any combination of optical cable, RF (radio frequency) etc. or above-mentioned medium.
Step figure or block diagram in attached drawing, illustrate according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product, each box in block diagram or block diagram can represent a mould A part of block, program segment or code, a part of above-mentioned module, program segment or code include it is one or more for realizing The executable instruction of defined logic function.It should be noted that in some implementations as replacements, function marked in the box It can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated can actually be parallel Ground executes, and can also execute in the opposite order sometimes, and execution sequence depends on the functions involved.It is also noted that Each box in block diagram or block diagram with and combinations thereof, can the dedicated of the functions or operations as defined in executing be based on hardware System realize, or can realize using a combination of dedicated hardware and computer instructions.
Being described in the embodiment of the present invention involved module or unit can be realized by way of software, can also be with It is realized by way of hardware.Described module or unit also can be set in the processor, for example, can be described as: A kind of processor includes contract module and broadcast module.Wherein, these modules or the title of unit not structure under certain conditions The restriction of the pairs of module or unit itself, for example, contract module is also described as " for making the mould of intelligent contract Block ".
On the other hand, the embodiment of the invention also provides a kind of computer-readable medium, which can be with It is included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned meter Calculation machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, So that the equipment includes: that block chain query node makes intelligent contract, wherein including inquiry field in the intelligence contract;It is described Intelligence contract described in block chain query node broadcasts;The block chain destination node receives the intelligent contract, according to the intelligence Energy contract generates query result, wherein including the inquiry field and the corresponding knot of the inquiry field in the query result Fruit field;The query result is sent to the block chain query node by the block chain destination node;The block chain note Account node generates the behavior record that the query result is sent to the block chain query node by the block chain destination node, And generate the behavior record of intelligence contract described in the block chain query node broadcasts.
Technical solution according to an embodiment of the present invention can broadcast intelligent contract, to obtain more query results;It is right The query result of acquisition is mutually tested, and the reliability of query result is improved;Embody the reality of the higher query result of reliability Border value.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of querying method based on block chain characterized by comprising
Block chain query node makes intelligent contract, wherein including inquiry field in the intelligence contract;
Intelligence contract described in the block chain query node broadcasts;
The block chain destination node receives the intelligent contract, query result is generated according to the intelligent contract, wherein described It include the inquiry field and the corresponding result field of the inquiry field in query result;
The query result is sent to the block chain query node by the block chain destination node;
The query result is sent to the block chain and looked by the block chain accounting nodes generation block chain destination node The behavior record of node is ask, and generates the behavior record of intelligence contract described in the block chain query node broadcasts.
2. the method according to claim 1, wherein the method also includes:
The block chain query node receives the multiple queries result sent by the block chain destination node;
The block chain accounting nodes generate block chain query node reception sent by the block chain destination node it is more The behavior record of a query result;
The block chain query node is determined for the same inquiry field, including the corresponding different result word of the inquiry field The quantity of the query result of section;
The block chain query node determines that the inquiry field adopts result field according to the maximum value of the quantity.
3. the method according to claim 1, wherein further including the block chain query section in the intelligence contract Account information, signing messages, one or more of the pricing information of point;It further include the block chain mesh in the query result Mark the signing messages of node.
4. the method according to claim 1, wherein the method also includes:
The block chain accounting nodes record Token value is transferred to the block chain destination node by the block chain query node Quantity;
Wherein shifted to the block chain destination node that transmission includes the query result for adopting result field The quantity of Token value is the first quantity, to the block sent not including the query result for adopting result field The quantity of the Token value of chain destination node transfer is the second quantity;
First quantity is greater than second quantity.
5. the method according to claim 1, wherein the block chain destination node records the inquiry field Looked into main body.
6. method according to claim 1 or 2, which is characterized in that the method also includes:
The block chain accounting nodes are before or after generating behavior record, to the block chain destination node and/or institute It states block chain query node and obtains GAS value.
7. a kind of inquiry unit based on block chain characterized by comprising
Block chain query end, block chain book keeping operation end and block chain target side;Wherein the block chain query section includes:
Contract module, for making intelligent contract, wherein including inquiry field in the intelligence contract;
Broadcast module, for broadcasting the intelligent contract;
The block chain target side includes:
First receiving module, for receiving the intelligent contract;
Enquiry module, for generating query result according to the intelligent contract, wherein including the inquiry in the query result Field and the corresponding result field of the inquiry field;
Sending module, for the query result to be sent to block chain query end;
Block chain book keeping operation end includes:
Logging modle broadcasts the behavior record of the intelligent contract for generating block chain query end;And described in generating The query result is sent to the behavior record at block chain query end by block chain target side.
8. device according to claim 7, which is characterized in that block chain query end further include:
Second receiving module, for receiving the multiple queries result sent by the block chain destination node;
Screening module, for determining for the same inquiry field, including the corresponding different result field of the inquiry field The quantity of query result;
Matching module, for determining that the inquiry field adopts result field according to the maximum value of the quantity;
The logging modle is also used to generate block chain query end and receives multiple to be looked by what the block chain target side was sent Ask the behavior record of result.
9. device according to claim 7, which is characterized in that further include block chain query end in the intelligence contract Account information, signing messages, one or more of pricing information;It further include the block chain target in the query result The signing messages at end.
10. device according to claim 7, which is characterized in that the logging modle is also used to record Token value by described Block chain query node is transferred to the quantity of the block chain destination node;
Wherein shifted to the block chain destination node that transmission includes the query result for adopting result field The quantity of Token value is the first quantity, to the block sent not including the query result for adopting result field The quantity of the Token value of chain destination node transfer is the second quantity;
First quantity is greater than second quantity.
11. device according to claim 7, which is characterized in that the enquiry module is also used to record the inquiry field Looked into main body.
12. device according to claim 7 or 8, which is characterized in that block chain book keeping operation end is also used in generation behavior Before or after record, GAS value is obtained to the block chain target side and/or block chain query end.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is by one or more Such as method as claimed in any one of claims 1 to 6 is realized when a processor executes.
CN201811541694.4A 2018-12-17 2018-12-17 A kind of querying method and device based on block chain Pending CN109376187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811541694.4A CN109376187A (en) 2018-12-17 2018-12-17 A kind of querying method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811541694.4A CN109376187A (en) 2018-12-17 2018-12-17 A kind of querying method and device based on block chain

Publications (1)

Publication Number Publication Date
CN109376187A true CN109376187A (en) 2019-02-22

Family

ID=65374227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811541694.4A Pending CN109376187A (en) 2018-12-17 2018-12-17 A kind of querying method and device based on block chain

Country Status (1)

Country Link
CN (1) CN109376187A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110909038A (en) * 2019-10-24 2020-03-24 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain and electronic equipment
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN111414644A (en) * 2020-03-18 2020-07-14 支付宝(杭州)信息技术有限公司 Privacy protection query method based on block chain and block chain system
CN113742386A (en) * 2021-11-03 2021-12-03 环球数科集团有限公司 Processing and analyzing method for block data of block chain account book

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609473A (en) * 2012-01-17 2012-07-25 钟进发 Method and system for website accessing
CN103970778A (en) * 2013-01-30 2014-08-06 三星电子(中国)研发中心 Bus information query method based on mobile terminal of user
CN107094145A (en) * 2017-05-02 2017-08-25 北京汇通金财信息科技有限公司 Data processing method, server and system based on block chain
CN108171489A (en) * 2017-12-18 2018-06-15 深圳前海微众银行股份有限公司 Data liquidation method, system and computer readable storage medium
CN108510315A (en) * 2018-03-16 2018-09-07 深圳慧通商务有限公司 A kind of resource issuing method and relevant device
CN108650270A (en) * 2018-05-16 2018-10-12 苏宁易购集团股份有限公司 Data sharing method based on alliance's chain and incentive mechanism and system
CN108898495A (en) * 2018-07-03 2018-11-27 济南浪潮高新科技投资发展有限公司 A kind of finance and money management confirmation of responsibility method based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609473A (en) * 2012-01-17 2012-07-25 钟进发 Method and system for website accessing
CN103970778A (en) * 2013-01-30 2014-08-06 三星电子(中国)研发中心 Bus information query method based on mobile terminal of user
CN107094145A (en) * 2017-05-02 2017-08-25 北京汇通金财信息科技有限公司 Data processing method, server and system based on block chain
CN108171489A (en) * 2017-12-18 2018-06-15 深圳前海微众银行股份有限公司 Data liquidation method, system and computer readable storage medium
CN108510315A (en) * 2018-03-16 2018-09-07 深圳慧通商务有限公司 A kind of resource issuing method and relevant device
CN108650270A (en) * 2018-05-16 2018-10-12 苏宁易购集团股份有限公司 Data sharing method based on alliance's chain and incentive mechanism and system
CN108898495A (en) * 2018-07-03 2018-11-27 济南浪潮高新科技投资发展有限公司 A kind of finance and money management confirmation of responsibility method based on block chain

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110909038A (en) * 2019-10-24 2020-03-24 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain and electronic equipment
CN110909038B (en) * 2019-10-24 2021-05-11 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain and electronic equipment
CN111414644A (en) * 2020-03-18 2020-07-14 支付宝(杭州)信息技术有限公司 Privacy protection query method based on block chain and block chain system
CN111353175A (en) * 2020-05-22 2020-06-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN112214797A (en) * 2020-05-22 2021-01-12 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
CN112214797B (en) * 2020-05-22 2021-10-26 腾讯科技(深圳)有限公司 Data processing method, device, equipment, block chain system and storage medium
WO2021233151A1 (en) * 2020-05-22 2021-11-25 腾讯科技(深圳)有限公司 Data processing method, apparatus and device, blockchain system, and computer readable storage medium
CN113742386A (en) * 2021-11-03 2021-12-03 环球数科集团有限公司 Processing and analyzing method for block data of block chain account book
CN113742386B (en) * 2021-11-03 2022-02-08 环球数科集团有限公司 Processing and analyzing method for block data of block chain account book

Similar Documents

Publication Publication Date Title
CN109376187A (en) A kind of querying method and device based on block chain
CN104378341B (en) Template acquisition methods, template provider method, Apparatus and system
CN102880956B (en) Paying server and payment channel integration method
JP6379140B2 (en) Method, system, and recording medium for providing messages in groups
CN106067124A (en) A kind of Quick Response Code that scans pays and real time record total mark of consumption and the method for rebating
CN105530175A (en) Message processing method, device and system
CN109377216A (en) A kind of method of commerce and system for depositing card based on centralization clearing and block chain
CN110377522B (en) Transaction scene testing method, device, computing equipment and medium
CN111367965B (en) Target object determining method, device, electronic equipment and storage medium
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN109344987A (en) Foreign currency reserves enchashment method, client, server, the pre- Ark of the Covenant of foreign currency and system
CN109831501A (en) Information dispensing method and system based on block chain
KR20190036154A (en) Tax management system and method for business transaction using electronic cash
CN112561510A (en) Payment system, method, device, equipment and storage medium
CN109409548A (en) Foreign currency reserves enchashment method, client, server, the pre- Ark of the Covenant of foreign currency and system
CN111221855A (en) Data processing method and device
CN113935507A (en) Foreign currency cash exchange reservation method and device based on block chain
KR100545308B1 (en) System and Method of Total Payment Gateway for Electronic cash, Electronic gift-certificates and Milage points by using Credit card Number
Jain Business model innovations for information and communications technology-based services for low-income segments in emerging economies
CN108897729A (en) A kind of trading template sharing method, device, electronic equipment and storage medium
CN113326095A (en) Commission data processing method and device
CN110189124A (en) Anti-attack method, equipment and storage medium
CN109325871A (en) Point-to-point risk autonomy insurance method and device based on block chain
CN116308377A (en) Account management method, device, equipment and storage medium
CN112565079B (en) Intelligent routing system and decision method for bank transaction

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
CB02 Change of applicant information

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: Jingdong Digital Technology Holding Co., Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: Beijing Jingdong Financial Technology Holding Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication