CN110471953A - Method, agent node and the medium of accounting nodes are determined in block chain network - Google Patents
Method, agent node and the medium of accounting nodes are determined in block chain network Download PDFInfo
- Publication number
- CN110471953A CN110471953A CN201910679099.5A CN201910679099A CN110471953A CN 110471953 A CN110471953 A CN 110471953A CN 201910679099 A CN201910679099 A CN 201910679099A CN 110471953 A CN110471953 A CN 110471953A
- Authority
- CN
- China
- Prior art keywords
- accounting nodes
- service node
- transaction information
- node
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2255—Hash tables
-
- 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/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
-
- 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/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Computing Systems (AREA)
- General Business, Economics & Management (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Present disclose provides a kind of in block chain network determines method, agent node and the medium of accounting nodes.The block chain network includes the accounting nodes sub-network of accounting nodes composition and the service node sub-network of service node composition, and the method is executed by the agent node between the accounting nodes sub-network and the service node sub-network.The described method includes: obtaining the Transaction Information type in the inquiry request of service node;From accounting nodes mark and Transaction Information type mapping table, accounting nodes mark corresponding with the Transaction Information type in inquiry request is searched;From the accounting nodes that the accounting nodes found identify, determines and receive the accounting nodes to cochain Transaction Information.The embodiment of the present disclosure can be improved the reasonability that accounting nodes are determined for the inquiry request of service node.
Description
The application be the applying date be on December 7th, 2018, application No. is 201811495811.8, it is entitled " in area
The divisional application of the application of method, accounting nodes and the medium of inquiry Transaction Information in block chain network ".
Technical field
This disclosure relates to block chain field, and in particular to a kind of to determine the methods of accounting nodes, generation in block chain network
Manage node and medium.
Background technique
Traditional block chain network is divided into two kinds.In the first block chain network, each accounting nodes are transaction again simultaneously
Occur to need the node of Transaction Information cochain.In second of block chain network, accounting nodes are only responsible on block chain
Book keeping operation, i.e. data cochain, actually occur transaction, need the node of Transaction Information cochain except accounting nodes.When needing to trade
When information cochain, need the node of Transaction Information cochain that the Transaction Information for needing cochain is issued corresponding accounting nodes, by remembering
Account node is by Transaction Information cochain.
In the first block chain network, each node for needing Transaction Information cochain is exactly accounting nodes, can be seen
The details of each data block of cochain on block chain are not wanted to allow the Transaction Information of oneself by uncorrelated enterprise in some enterprises
It is helpless when industry inquires.In second of block chain network, need to inquire the node of the data block information on block chain
It is inquired on block chain by corresponding accounting nodes, since all accounting nodes all have permission the institute on inquiry block chain
There are the details in data block, the node of the data block information needed to inquire on block chain can inquire on block chain
All data blocks in details, for need uplink communications maintain secrecy enterprise for can not accomplish information privacy.
The prior art, which lacks one kind, to carry out privacy guarantor to the data of cochain on the basis of shared information is reached common understanding
The scheme of shield.
Summary of the invention
One purpose of the disclosure is to propose method, the agent node of a kind of accounting nodes determining in block chain network
And medium, it can be improved the reasonability that accounting nodes are determined for the inquiry request of service node.
According to the one side of the embodiment of the present disclosure, a kind of method that accounting nodes are determined in block chain network is disclosed,
The block chain network includes the service node sub-network of the accounting nodes sub-network that accounting nodes form and service node composition,
The method is executed by the agent node between the accounting nodes sub-network and the service node sub-network, the method packet
It includes:
Obtain the Transaction Information type in the inquiry request of service node;
From accounting nodes mark and Transaction Information type mapping table, search and the Transaction Information class in inquiry request
The corresponding accounting nodes mark of type;
From the accounting nodes that the accounting nodes found identify, determines and receive the book keeping operation section to cochain Transaction Information
Point.
According to the one side of the embodiment of the present disclosure, a kind of agency's section that accounting nodes are determined in block chain network is disclosed
Point, the block chain network include the accounting nodes sub-network of accounting nodes composition and the service node subnet of service node composition
Network has the agent node, the agent node packet between the accounting nodes sub-network and the service node sub-network
It includes:
Transaction Information type acquiring unit, the Transaction Information type in inquiry request for obtaining service node;
Searching unit is used for from accounting nodes mark and Transaction Information type mapping table, lookup and inquiry request
In Transaction Information type corresponding accounting nodes mark;
Accounting nodes determination unit, for from the accounting nodes that the accounting nodes that find identify, determine receive it is described to
The accounting nodes of cochain Transaction Information.
According to the one side of the embodiment of the present disclosure, a kind of agent node is disclosed, comprising: memory is stored with computer
Readable instruction;Processor reads the computer-readable instruction of memory storage, to execute method as described above.
According to the one side of the embodiment of the present disclosure, a kind of computer program medium is disclosed, being stored thereon with computer can
Reading instruction makes computer execute method as described above when the computer-readable instruction is executed by the processor of computer.
In the embodiment of the present disclosure, the Transaction Information type in the inquiry request of service node is obtained, is identified from accounting nodes
In Transaction Information type mapping table, accounting nodes mark corresponding with the Transaction Information type in inquiry request is searched,
From the accounting nodes that the accounting nodes found identify, determines and receive the accounting nodes to cochain Transaction Information.Due to root
Determine that inhomogeneous accounting nodes, each accounting nodes are certain types of Transaction Information query service according to Transaction Information type,
The specific aim for improving inquiry improves the reasonability that accounting nodes are determined for the inquiry request of service node.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure
Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the disclosure will
It becomes more fully apparent.
Figure 1A -1C shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
Three kinds of architecture figures of the method for information.
Fig. 2A -2C shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the scene structure under three kinds of supply chain finance, electronic invoice, legal digital cash different application scenarios
Frame figure.
Fig. 3 A-3G shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the service node display interface figure under supply chain financial application scene, these surface charts illustrate supply
From Transaction Information cochain to the general procedure for inquiring Transaction Information and verify data block content under chain financial application scene.
Fig. 4 A-4G shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the service node display interface figure under electronic invoice application scenarios, these surface charts illustrate that electronics is sent out
From Transaction Information cochain to the general procedure for inquiring Transaction Information and verify data block content under ticket application scenarios.
Fig. 5 A-5G shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the service node display interface figure under legal digital cash application scenarios, these surface charts illustrate method
Determine under digital cash application scenarios from Transaction Information cochain to the general procedure for inquiring Transaction Information and verify data block content.
Fig. 6 shows the Transaction Information inquired in data block in block chain network according to an embodiment of the present disclosure
Method flow chart.
Fig. 7 shows the Transaction Information inquired in data block in block chain network according to an embodiment of the present disclosure
Method flow chart.
Fig. 8 shows the Transaction Information inquired in data block in block chain network according to an embodiment of the present disclosure
Method flow chart.
Fig. 9 shows the Transaction Information inquired in data block in block chain network according to an embodiment of the present disclosure
Method flow chart.
Figure 10 shows the transaction letter inquired in data block in block chain network according to an embodiment of the present disclosure
The flow chart of the method for breath.
Figure 11 is shown to be inquired in data block in block chain network according to the determination of an embodiment of the present disclosure
Transaction Information method accounting nodes flow chart.
Figure 12 shows the detail flowchart of step 430 in Figure 11 according to an embodiment of the present disclosure.
Figure 13 shows the detail flowchart of step 4303 in Figure 12 according to an embodiment of the present disclosure.
Figure 14 is shown to be inquired in data block in block chain network according to the determination of an embodiment of the present disclosure
Transaction Information method accounting nodes flow chart.
Figure 15 shows the detail flowchart of step 530 in Figure 14 according to an embodiment of the present disclosure.
Figure 16 shows the transaction letter inquired in data block in block chain network according to an embodiment of the present disclosure
The module frame chart of the accounting nodes of breath.
Figure 17 shows the hardware structure diagrams according to the accounting nodes of an embodiment of the present disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, providing these example embodiments makes the disclosure
Description will be more full and complete, and the design of example embodiment is comprehensively communicated to those skilled in the art.Attached drawing
The only schematic illustrations of the disclosure are not necessarily drawn to scale.Identical appended drawing reference indicates same or like in figure
Part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more examples in any suitable manner
In embodiment.In the following description, many details are provided to provide filling to the example embodiment of the disclosure
Sub-argument solution.It will be appreciated, however, by one skilled in the art that the specific detail can be omitted with technical solution of the disclosure
In it is one or more, or can be using other methods, constituent element, step etc..In other cases, it is not shown in detail or retouches
Known features, method, realization or operation are stated to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is made to thicken.
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase
It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact
These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device
Body.
Architecture applied by the embodiment of the present disclosure once and overall flow are described with initial reference to Figure 1A -1C below.
Figure 1A shows a kind of architecture of block chain network applied by the embodiment of the present disclosure.Block chain network includes
Accounting nodes sub-network 2 and service node sub-network 1.Accounting nodes sub-network 2 includes data block being recorded on block chain
Accounting nodes 21.Service node sub-network 1 includes that data block accounting nodes being recorded on block chain is verified
Service node 11.It is connected between accounting nodes sub-network 2 and service node sub-network 1 by agent node 12.Agent node 12
It is a service node of service node sub-network 1, but a more special service node.It is responsible for accounting nodes 21
Service node 11 is passed to the information that service node 11 transmits.Service node 11 is to generate the various Transaction Informations for needing cochain
Counterparty terminal.They produce Transaction Information, but are recorded directly on block chain without right, it is necessary to be remembered by one
Transaction Information is recorded on block chain account node 21.It is kept accounts by a small number of accounting nodes 21 are unified, is also beneficial to the unification of affairs
Processing and supervision, and service node 11 can carry out transaction letter via the information that agent node 12 is sent by accounting nodes 21
Cease supervision and the witness of cochain.This in certain node collectives cheatings for both having needed unified supervision but being afraid of supervision thus needs the people
It is of great significance in the scene of crowd's supervision.In accounting nodes sub-network 2, each accounting nodes 21 generate a data field
After block, it is broadcast to other accounting nodes 21 and knows together, then carry out cochain.In Figure 1A, service node sub-network 1 uses P2P
Network mode.P2P network is a kind of Distributed Application framework that task and workload are distributed between fellow (Peer), is
A kind of networking or latticed form that P2P computing model is formed in application layer, i.e. " point-to-point " or " end-to-end " network.It can
With is defined as: the participant of network shares a part of hardware resource that they are possessed, and (processing capacity, storage capacity, network connect
Connect ability, printer etc.), these shared resources can directly be accessed by network offering services and content by other peer nodes
Without being subjected to intermediate entities.Participant in this network is both supplier and the resource, clothes of resource, service and content
Business obtains taker with content.Therefore, it in service node sub-network 1, is transmitted when agent node 12 is received from accounting nodes 21
The message to come over, peripherad service node 11 are propagated.Around service node 11 receive the message, then to surrounding industry
Business node 11 transmits, and propagates layer by layer, has reached the message in the propagation of each service node 11 of service node sub-network 1.
Figure 1B shows the architecture of another kind block chain network applied by the embodiment of the present disclosure.The architecture with
The architecture of Figure 1A the difference is that, in service node sub-network 1, do not take P2P network mode, take radio network
The mode of network.Agent node 12 receives the message passed over from accounting nodes 21, which is broadcast to service node
Other service nodes 11 in network 1.In this way, also achieving the message in each service node 11 of service node sub-network 1
Propagation.
Fig. 1 C shows the architecture of another kind block chain network applied by the embodiment of the present disclosure.The architecture with
The architecture of Figure 1A the difference is that, accounting nodes sub-network 2 is divided into multiple branch's accounting nodes sub-networks.Each
Branch's accounting nodes sub-network can be responsible for the record of the Transaction Information of a certain seed type.For example, a certain enterprise may have confession
Answer chain financial business, it may be necessary to it the contract information generated during supply and marketing, the payment for goods such as buys on dredit information and is recorded on block chain,
The enterprise will also issue invoice simultaneously, and also information of making out an invoice, invoice reimbursement information etc. are recorded on block chain.At this moment, in order to
Be conducive to the needs that accounting nodes are supervised by same department, the accounting nodes and record of supply chain financial business transaction may be recorded
The accounting nodes of transaction during invoice circulation will belong to different departments.For example, record supply chain financial business transaction
Accounting nodes are the accounting terminal of bank's setting, and the accounting nodes for recording the transaction during invoice circulation are Administration of State Bureau's settings
Accounting terminal.And the transaction during supply chain financial business transaction and record invoice circulation also may be eventually recorded in not
On same sub-block chain.At this moment, agent node 12 will be according to the transaction class carried from the Transaction Information that service node 11 is sent
Type sends the Transaction Information in branch's accounting nodes sub-network corresponding with the type of transaction.
Fig. 2A shows the transaction letter inquired in data block in block chain network according to an embodiment of the present disclosure
The method of breath applies the scene framework map under the application scenarios of supply chain finance.
Supply chain finance is such a business: manufacturing enterprise produces an equipment or product, is often not necessarily oneself
Enterprise produce all parts or component part of the equipment or product, the production of some of parts or component part needs outer
It wraps to other enterprises and goes to produce.Although manufacturing enterprise has concluded supply and marketing contract with order party in advance, only produce it is whole
Payment for goods can be taken when a equipment or product, and the money for purchasing part or component part in this process needs oneself to pad
It pays, causes manufacturing enterprise's capital turnover difficulty.Therefore, such a demand is produced, i.e. manufacturing enterprise can be with whole equipment
Or product conclude total purchase contract (wherein having cost and ordering party's information) assured to bank, when need to carry out part or
When the buying of component part, using the total purchase contract of the whole equipment or product crossed in bank gurantee as foundation, from the equipment or
The guarantee of buying of a part for the part or component part is transferred out in the total purchase contract of product in cost.In this way, raw
The production for carrying out the part or component part can be trusted at the enterprise of part or component part, due to not having to by bank gurantee
Worry that a part of payment for goods transferred out can not receive.Meanwhile manufacturing enterprise does not take out the money really at this time, but wait until
Corresponding a part is just paid to the production of part or component part when obtaining the practical payment for goods of the buying side of whole equipment or product
Quotient.
In traditional block chain network, due to being provided with all accounting nodes by bank, and this network is closing
, each Joint Enterprises on supply and marketing chain are nodes relevant to the data block cochain interests of supply chain finance, cannot but be supervised
And witness, the book keeping operation network of the unrelated side of this interests being made of accounting nodes can only be trusted completely.For example, manufacturing enterprise with it is whole
The ordering party of a equipment or product has concluded total purchase contract, or has signed a point buying with the generation side of part or component part
Contract requires the accounting nodes cochain that these contracts are transmitted to bank's setting.At this moment, each accounting nodes of bank's setting can be with
It supervises mutually and witnesses, but each Joint Enterprises on supply and marketing chain cannot be supervised and be witnessed.In addition, in traditional block chain network
In, the other any enterprise nodes unrelated with current supply and marketing chain, it is also possible to inquire current supply and marketing by corresponding accounting nodes
Any Transaction Information of enterprise's node cochain on chain.Therefore, great Transaction Information leakage hidden danger is brought.
However, in fig. 2, since accounting nodes sub-network 2 and service node sub-network 1 separate, accounting nodes sub-network
2 are exclusively used in keeping accounts, and service node sub-network 1 contains each Joint Enterprises terminal on supply and marketing chain, to the note of accounting nodes 21
Account is witnessed.Once 21 collective of accounting nodes practises fraud, each service node 11 of witness can remain with specific accounting nodes and do evil
Evidence.Meanwhile service node, when needing to inquire Transaction Information, not every Transaction Information can be returned to the service node
It returns, but according to the permissions data of the service node in its intelligent contract with block chain operator, it is determined whether to the business
Node returns to transaction data.In this way, the other any enterprise nodes unrelated with current supply and marketing chain cannot inquire current supply and marketing
Any Transaction Information of enterprise's node cochain on chain eliminates Transaction Information leakage hidden danger.
In the example of an automobile SC finance, as shown in Figure 2 A, each service node 11 includes that automaker is whole
End, tiremaker terminal, rubber production quotient terminal, vehicle components supplying quotient terminal, banking terminal etc..Automaker and vapour
Vehicle ordering party has concluded total purchase contract, transfers to a part to be used for the buying of tire from the cost of total purchase contract, then transfer to
Corresponding part is used for the buying of vehicle components.Tiremaker using the contract concluded with automaker as foundation, then from this
Transfer to a part for manufacturing the buying of rubber needed for tire in the cost of contract.Relationship is purchased layer by layer in this way, just establishing.
When automaker and automobile ordering party concluded total purchase contract or automaker and tiremaker,
Vehicle components supplying agrees vertical point procurement contract or tiremaker and when rubber production agrees vertical point of procurement contract, by phase
The Transaction Information answered passes to agent node 12, selects an accounting nodes 21 by agent node 12.Agent node 12 will be corresponding
Transaction Information be sent to selection accounting nodes 21 cache.Accounting nodes 21 will not generally be individually for a Transaction Information and be packaged
It at a data block cochain, but is packaged according to block and requires (such as gather together enough enough item numbers or size), be packaged into one
Data block.In advance to the key of each accounting nodes distribution signature, which is specific for the accounting nodes.Book keeping operation section
Point 21 is using the key specific to the accounting nodes, based on being included in a data block on block chain to be added to
Transaction Information generates signature.Generate signature method be first in data block Transaction Information generate abstract, then with specific to
The key pair abstract of the accounting nodes is signed using signature algorithm.Accounting nodes 21 add the signature of the Transaction Information and generation
Enter the data block, cochain after being known together between all accounting nodes 21, while signature being sent out by agent node 12
The each service node 11 being sent in service node sub-network.
It is sent to the Transaction Information that can also have in data block of each service node 11, or transaction letter simultaneously with signature
The abstract of breath.
In the case where sending Transaction Information at the same time, service node 11 obtains the key specific to accounting nodes.Non- right
In the case where claiming public private key pair, the key that accounting nodes 21 use during book keeping operation is to distribute to note by authentication center (CA)
The private key of account node 21.While distributing private key, a public key also is distributed for accounting nodes 21.The public key is stored in certification
The heart.Service node 11 can be requested from authentication center to the public key distributed for the accounting nodes 21.This public key is exactly business
The key specific to accounting nodes that node 11 is got.Service node 11 is signed described in the key pair and is decrypted, and obtains
The abstract of Transaction Information in the data block.Service node 11 believes the transaction in the data block received simultaneously
Breath calculates abstract.If calculated abstract is consistent with the abstract that decryption obtains, signature verification success.
In the case where the abstract (such as abstract and signature are placed in block head and send together) for sending Transaction Information at the same time,
Service node 11 obtains the key specific to the accounting nodes, such as from authentication center's request to distributing for the accounting nodes 21
Public key.Service node 11 is signed described in the key pair specific to the accounting nodes and is decrypted, and obtains in the data block
Transaction Information abstract.If consistent with the abstract that decryption obtains with the abstract that receives simultaneously of signature, signature verification at
Function.
At the same time send Transaction Information abstract (such as abstract and signature be placed in block head and send together, which can
To be the calculated Merkel's tree root of cryptographic Hash according to the every Transaction Information to be included in the data block) in the case where,
Service node 11 does not receive each Transaction Information.When service node 11 will check Transaction Information, need to accounting nodes
21 requests.Each service node 11 has intelligent contract with the signing of block chain operator, there is the power of service node in intelligent contract
Limit data.According to the permissions data of the service node 11, the transaction obtained of having the right of the service node in the data block is believed
Breath returns to the Transaction Information to the service node 11.The transaction obtained letter is had no right for the service node 11 in the data block
Breath only returns to the cryptographic Hash of the Transaction Information to the service node 11.In this way, just having reached the friendship that some units are not intended to oneself
The purpose that easy information is seen by unrelated side, improves the privacy of cochain Transaction Information.Since Merkel's tree root is only handed over every
The cryptographic Hash of easy information can calculate, in this way, just reaching not only hiding information but also not influencing the content verification in data block
Purpose.The service node 11 can calculate cryptographic Hash to the non-concealed Transaction Information got, according to these cryptographic Hash and
The cryptographic Hash of the hiding Transaction Information received calculates Merkel's tree root, with the Merkel's tree root ratio for including in block head
Compared with if unanimously, illustrating that the content of data block is not tampered with, content verification passes through.And service node 11 can also connect
Receive verified from non-concealed Transaction Information the Transaction Information whether with the Transaction Information one of oneself issuing accounting nodes 21
It causes.It is such as inconsistent, illustrate that service node 11 is done evil, has achieved the purpose that supervision.
Illustrate under supply chain financial application scene below with reference to Fig. 3 A-3G from Transaction Information cochain to inquiring and verify big
Body process.Fig. 3 A-3G is the Transaction Information inquired in data block in block chain network according to an embodiment of the present disclosure
Method apply the service node display interface figure under supply chain financial application scene.
As shown in Figure 3A, B automobile factory is based on A retailer buying 10,000,000 purchase order of B automobile factory, in 10,000,000
2,000,000 go bail for, commission C tire plant produces the tire of 2,000,000 prices.Service node of the business personnel of B automobile factory in B automobile factory
After the above Transaction Information of 11 typings, " being submitted to accounting nodes " option is clicked, Transaction Information is sent to note by agent node 12
Account node 21.The Transaction Information to be included in the data block that accounting nodes 21 will be added on block chain is placed on one
In a block body.Accounting nodes 21 also generate the abstract of these Transaction Informations, such as Merkel's tree root of Fig. 3 B.Accounting nodes 21 are also
Signature is generated based on the Transaction Information in the data block using the key specific to the accounting nodes.By Merkel's tree root,
The abstract of previous data block is placed on together in block head on signature and block chain.The number of block head and block body composition cochain
According to block, the cochain after all accounting nodes 21 common recognition.
Block hair is also sent to each service node 11 by accounting nodes 21.Merck is shown on the screen of service node 11
The abstract of previous data block on that tree root, signature and block chain, as shown in Figure 3B.At this moment, accounting nodes 21 just obtain special
Due to the key (such as by requesting authentication center) of the accounting nodes, sign described in the key pair specific to the accounting nodes
It is decrypted, obtains the abstract of the Transaction Information in the data block, i.e. Merkel's tree root.If in the block head received
Merkel's tree root and the obtained Merkel's tree root of decryption it is inconsistent, then signature verification fails, and shows interface as shown in Figure 3 C.
If Merkel's tree root in the block head received is consistent with Merkel's tree root that decryption obtains, signature verification success is shown
Show interface as shown in Figure 3D.Since during above, service node 11 only obtains the block head of data block, does not have also
There is the Transaction Information obtained in block head.At this point, asking the user whether to request the friendship in the data block in the interface of Fig. 3 D
Easy information.
If user selects "Yes", service node 11 passes through agent node 12 to 21 requests transaction information of accounting nodes.Note
Account node 21 obtains the permissions data of the service node from service node and the intelligent contract of block chain operator.For this
In data block the service node 11 have the right obtain Transaction Information, to the service node 11 return the Transaction Information, such as Fig. 3 E
The specifying information of the specifying information of middle Transaction Information ID 000083, Transaction Information ID 000153;For being somebody's turn to do in the data block
Service node 11 haves no right the Transaction Information obtained, Transaction Information, Transaction Information ID 000256 such as Transaction Information ID 000258
Transaction Information, the Transaction Information of Transaction Information ID 078365, Transaction Information ID018387 Transaction Information, only to the business of giving
Node 11 returns to cryptographic Hash, as shown in FIGURE 3 E.
After user selects " carrying out content verification " on the interface of Fig. 3 E, for Transaction Information ID 000083 in Fig. 3 E
Specifying information, Transaction Information ID 000153 specifying information, service node 11 calculate its cryptographic Hash, then again with receive
The cryptographic Hash of Transaction Information of Transaction Information ID 000258, Transaction Information ID 000256 Transaction Information cryptographic Hash, hand over
Easily the cryptographic Hash, the cryptographic Hash of the Transaction Information of Transaction Information ID 018387 of the Transaction Information of Information ID 078365 together, are counted
Merkel's tree root is calculated, is compared with the Merkel's tree root for including in block head, to carry out content verification.If book keeping operation section
The content of 21 tampered data blocks of point, then the Merkel's tree root for including in calculated Merkel's tree root and block head are different
It causes, shows the interface of " content verification failure " as illustrated in Figure 3 F.If including in calculated Merkel's tree root and block head
Merkel's tree root it is consistent, show the interface of " content verification success " as shown in Figure 3 G.
Fig. 2 B shows the transaction letter inquired in data block in block chain network according to an embodiment of the present disclosure
The method of breath applies the scene framework map under the application scenarios of electronic invoice.
In the block chain application scenarios of traditional electronic invoice, Local Tax Bureau provides invoice, enterprise of making out an invoice to enterprise of making out an invoice
To neck ticket people invoicing, the reimbursement unit where neck ticket people to neck ticket people submits an expense account invoice.All these transaction require cochain,
It is recorded on block chain.But Local Tax Bureau, enterprise of making out an invoice, reimbursement these nodes of unit be not accounting nodes 21.They will entrust
Ask corresponding accounting nodes or super node by these transaction records on block chain.All these accounting nodes or super node
All it is that national tax department is unified to be arranged.It can supervise mutually and witness between them, but Local Tax Bureau, enterprise of making out an invoice, reimbursement unit
These nodes are the immediate parties of invoice, but cannot supervise and witness, and can only trust accounting nodes 21 completely.In addition, any
Enterprise can inquire any Transaction Information on block chain by its corresponding accounting nodes.But in some cases, enterprise
Invoice relevant information is not intended to be known by other enterprises.In the embodiments of the present disclosure, due to accounting nodes sub-network 2 and business
Node sub-network 1 separates, and accounting nodes sub-network 2 is exclusively used in keeping accounts, and service node sub-network 1 contains these invoice interests
Relevant node witnesses the book keeping operation of accounting nodes 21.Once 21 collective of accounting nodes practises fraud, each service node of witness
11 can remain with the evidence that specific accounting nodes are done evil.When any one service node 1 needs to inquire the transaction in data block
When information, accounting nodes will judge the service node 1 according to the permissions data in its intelligent contract with block chain operator
Whether such permission is had.If service node 1 has such permission, Transaction Information could be returned to it, it is on the contrary then do not return
Transaction Information.In this way it is ensured that the privacy of cochain Transaction Information.In the case where service node does not have permission,
Transaction Information is not returned to the service node, but returns to the cryptographic Hash of Transaction Information, to guarantee that service node utilizes cryptographic Hash
Merkel's tree root in block head can equally be verified, achieve the purpose that content verification.
In the example of an electronic invoice, as shown in Figure 2 B, each service node 11 includes make out an invoice unit terminal, claimer
Mobile phone, reimbursement unit terminal, Local Tax Bureau's terminal etc..
Local tax bureau provides invoice, unit of perhaps making out an invoice invoicing or claimer to reimbursement unit for unit of making out an invoice
When reimbursement, corresponding Transaction Information (transfer of invoice ownership) is passed into agent node 12, by the selection of agent node 12 one
A accounting nodes 21.Agent node 12 caches the accounting nodes 21 that corresponding Transaction Information is sent to selection.Then, book keeping operation section
Point 21 is packaged according to block to be required to be packaged into data block.Accounting nodes 21 generate label based on the Transaction Information in data block
Signature by cochain after the block head of signature addition data block and is sent to service node 11 by name, these processes and combination are schemed
Process shown in 2A is similar.
It is sent to the Transaction Information that can also have in data block of each service node 11, or transaction letter simultaneously with signature
The abstract of breath.In the case where sending Transaction Information at the same time and simultaneously in the case where forward abstract, in the signature of service node 11
Verification mode is different, but signature verification can be carried out at service node 11.Process shown in this Fig. 2A above in conjunction is similar,
It is referred to associated description shown in above combination Fig. 2A.In addition, at the same time in the case where the abstract of transmission Transaction Information, business
Node 11 can carry out the content verification of data block, and also process shown in Fig. 2A above in conjunction is similar for verification process, therefore not
It repeats.
Fig. 4 A-4G shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the service node display interface figure under electronic invoice application scenarios, these surface charts illustrate that electronics is sent out
Transaction Information cochain, inquiry and the general procedure verified under ticket application scenarios.
As shown in Figure 4 A, on October 22nd, 2018, Liu Shan to rainbow computer company is the purchase of unit one belongs to Hong Sheng company
One computer, 3000 yuan of Hua Liao.Rainbow computer company is that Liu Shan has issued an invoice, transaction id 000083.Rainbow computer
After staff's typing information above of company, " being submitted to accounting nodes " option is clicked, Transaction Information passes through agent node 12
It is sent to accounting nodes 21.The transaction letter to be included in the data block that accounting nodes 21 will be added on block chain
Breath is placed in a block body.Accounting nodes 21 also generate Merkel's tree root and signature, by Merkel's tree root, signature and block
The abstract of previous data block is placed on together in block head on chain.Accounting nodes 21 are by data block cochain, and by block hair
It is sent to each service node 11.Merkel's tree root is shown on the screen of service node 11, previous number on signature and block chain
According to the abstract of block, as shown in Figure 4 B.
Then, accounting nodes 21 carry out signature verification, show the interface of Fig. 4 C or Fig. 4 D according to verification result, and to book keeping operation
21 requests transaction information of node shows the interface of the Transaction Information of acquisition shown in Fig. 4 E or the cryptographic Hash of Transaction Information, then
According to the verification result of content verification, the interface of Fig. 4 F-4G is shown respectively.These processes are similar with process shown in Fig. 3 C-3G,
Therefore it does not repeat.
Fig. 2 C shows the transaction letter inquired in data block in block chain network according to an embodiment of the present disclosure
The method of breath applies the scene framework map under the application scenarios of legal digital cash.
In the scene of the civil digital cash of traditional such as bit coin hereinafter, each pen during the circulation of bit coin
Transaction all carries out cochain by the party concerned to trade.Each party concerned both can be used as accounting nodes and carry out uplink operation, can also be with
Witness the data block of other node cochains.Since each node is not only used as accounting nodes, but also as witness node, so that the public
Trust is compared for the use of this digital cash.However, the digital cash is sent out by official under the scene of legal digital cash
Row, it is necessary to it is supervised by official, and the public needs to trust it, prevents accounting nodes collective, official from practising fraud, and produces existing
The problem of in terms of the balance for thering is the network system to trust in face of government regulation and the common people.Moreover, in existing bit coin block chain network,
Each node is not only used as accounting nodes, but also as witness node, the user of node each in this way can see to be recorded on block chain
All Activity information, and the Transaction Information of some units is to be not intended to be exposed to proprietary, and produces secret protection
Problem.
In this case, the accounting nodes sub-network of the embodiment of the present disclosure and the separated scheme of service node sub-network,
Completely avoid this problem.Firstly, each accounting nodes of accounting nodes sub-network belong to official.It is sent out at any service node
The transaction of legal digital cash has been given birth to, block will be recorded by corresponding accounting nodes in the transaction of the legal digital cash
On chain.But each service node in service node sub-network can witness the book keeping operation of accounting nodes 21.Once note
The cheating of 21 collective of account node, each service node 11 of witness can remain with the evidence that specific accounting nodes are done evil, take into account government
Supervision and the common people trust.Meanwhile service node will be closed according to it with the intelligence with block chain operator to inquire Transaction Information
Permissions data in about, judges whether it has permission, only just returns to Transaction Information to it when having permission, ensure that cochain
The privacy of Transaction Information.When service node does not have permission, although not returning to Transaction Information to it, Transaction Information is returned to
Cryptographic Hash, can equally verify Merkel's tree root in block head by the cryptographic Hash, realize content verification.
In the example of a legal digital cash, as shown in Figure 2 C, each service node 11 includes legal digital cash stream
Each transaction terminal involved in logical.When sending the Transaction Information of legal digital cash, transaction terminal will trade letter accordingly
Breath (transfer of legal digital cash ownership) passes to agent node 12, selects an accounting nodes 21 by agent node 12.
Agent node 12 caches the accounting nodes 21 that corresponding Transaction Information is sent to selection.Then, accounting nodes 21 are according to block
It is packaged and requires to be packaged into data block.Accounting nodes 21 generate signature based on the Transaction Information in data block, and signature is added
Cochain and signature is sent to service node 11 after the block head of data block, these processes and combines process class shown in Fig. 2A
Seemingly.
It is sent to the Transaction Information that can also have in data block of each service node 11, or transaction letter simultaneously with signature
The abstract of breath.In the case where sending Transaction Information at the same time and simultaneously in the case where forward abstract, in the signature of service node 11
Verification mode is different, but signature verification can be carried out at service node 11.Process shown in this Fig. 2A above in conjunction is similar,
It is referred to associated description shown in above combination Fig. 2A.In addition, at the same time in the case where the abstract of transmission Transaction Information, business
Node 11 can carry out the content verification of data block, and also process shown in Fig. 2A above in conjunction is similar for verification process, therefore not
It repeats.
Fig. 5 A-5G shows the transaction inquired in data block in block chain network according to an embodiment of the present disclosure
The method of information applies the service node display interface figure under legal digital cash application scenarios, these surface charts illustrate method
Determine the general procedure kept accounts and witnessed under digital cash application scenarios.
As shown in Figure 5A, on August 29th, 2018, because X company buys in from Y company the method fixed number of 3000 unit of price
The furniture of word currency pays the legal digital cash of 3000 unit of Y company RMB.Handler's typing information above of X company
Afterwards, " being submitted to accounting nodes " option is clicked, Transaction Information is sent to accounting nodes 21 by agent node 12.Accounting nodes 21
The Transaction Information to be included in the data block that will be added on block chain is placed in a block body.Accounting nodes
21 also generate Merkel's tree root and signature, together by the abstract of previous data block on Merkel's tree root, signature and block chain
It is placed in block head.Accounting nodes 21 are sent to each service node 11 by data block cochain, and by block hair.In business section
Shown on the screen of point 11 Merkel's tree root, on signature and block chain previous data block abstract, as shown in Figure 5 B.
Then, accounting nodes 21 carry out signature verification, show the interface of Fig. 5 C or Fig. 5 D according to verification result, and to book keeping operation
21 requests transaction information of node shows the interface of the Transaction Information of acquisition shown in Fig. 5 E or the cryptographic Hash of Transaction Information, then
According to the verification result of content verification, the interface of Fig. 5 F-5G is shown respectively.These processes are similar with process shown in Fig. 3 C-3G,
Therefore it does not repeat.
As shown in fig. 6, providing one kind according to one embodiment of the disclosure and inquiring data block in block chain network
In Transaction Information method.As shown in figs. 1A-1 c, the block chain network includes accounting nodes sub-network 2 and service node
Sub-network 1.The accounting nodes sub-network 2 includes the accounting nodes 21 data block being recorded on block chain.The business
Node sub-network 1 includes the service node 11 that data block accounting nodes being recorded on block chain is verified.The side
Method is executed by an accounting nodes 21 in accounting nodes sub-network 2.The described method includes:
Step 310 receives service node to the inquiry request of the Transaction Information in data block;
Step 320, from the intelligent contract of service node and block chain operator, obtain the permission number of the service node
According to;
If step 330 determines that the service node has inquiry to the Transaction Information according to the permissions data of the service node
Permission returns to the Transaction Information to the service node, conversely, returning to the cryptographic Hash of the Transaction Information to the service node.
In one embodiment, above-mentioned steps 310-330 can be used as an independent process to execute, that is to say, that
Its cochain independent of Transaction Information.That is, can be without other steps before step 310.Even if service node is looked into
At all without cochain, step 310-330 can equally be executed the Transaction Information of inquiry, only be inquired in a step 330 less than friendship at this time
Easy information returns to null message to service node.
In another embodiment, there is the step of Transaction Information cochain before step 310-330.In the embodiment
In, after Transaction Information cochain, service node is sent by the signature that accounting nodes generate Transaction Information, by service node
Signature is verified.In signature verification, service node may not obtain entire Transaction Information, may only obtain
The abstract of Transaction Information.Signature verification can also be carried out according to abstract.After being verified, service node can request to look into immediately
The details of the Transaction Information are ask, i.e., send the inquiry request to Transaction Information to agent node.Agent node receives this
After inquiry request, corresponding accounting nodes are forwarded to, for accounting nodes according to the above process, the permissions data based on service node is true
It is fixed whether to it to return to Transaction Information.
In the case where having the step of transaction cochain before step 310-330, it is also divided into two kinds of situations.A kind of situation be
It trades requests transaction information immediately after cochain, another situation is that service node is not issued to inquire immediately and asked after cochain of trade
It asks, but is instructed in response to the user input query of service node, and issue the inquiry request.No matter what kind of situation it is, In
In the embodiment, before step 310, the method all includes:
Using the key specific to the accounting nodes, based on being wrapped in a data block on block chain to be added to
The Transaction Information included generates signature;
The data block is added in the Transaction Information and the signature of generation, is added on block chain;
By the service node that is sent in the service node sub-network of signing, make service node according to specific to the note
Signature described in the key pair of account node carries out signature verification.
Key specific to accounting nodes is to be distributed in advance by authentication center for each accounting nodes, be exclusively used in it to friendship
Easy information carries out used key of signing.In general, the process of signature is such that message to be signed applying abstract
Operation obtains the abstract of message to be signed, and the key pair abstract encryption then used with signature is signed.To signature
When being verified, the key pair signature decryption for needing to use using solution signature has obtained the abstract of message to be signed, then right
Message to be signed applies same abstract operation, the abstract redefined again.If decryption after abstract with again
Determining abstract is consistent, then signature verification success.By signature verification, it is able to verify that out whether message to be signed is signer
Whether issued and message is complete.If the message is not that signer is sent out or message is lost in transmission process
A part, signature verification do not pass through.
The key used is signed in the key reconciliation used of signing can be identical, i.e. the situation of symmetric key, can not also phase
Together, i.e. the situation of unsymmetrical key.Either which kind of key, in one embodiment, can when each accounting nodes are set up,
The key specific to the accounting nodes is requested from accounting nodes to authentication center, it is close to be that accounting nodes generate this by authentication center
Key simultaneously stores, and is subsequently sent to the accounting nodes.And service node is in signature verification, it also should be specific to authentication center's request
The key of the accounting nodes, authentication center send this key to service node, use for service node signature verification.
In one embodiment, when service node 11 sends Transaction Information to accounting nodes 21 by agent node 12,
Agent node 12 can not be eager the Transaction Information that will be received as in a data block on block chain to be added to
Including Transaction Information, signature algorithm is applied to the Transaction Information, signature is generated, but places it in caching, is waited
Enough Transaction Informations have been cached in caching, that is, have been reached preset block and be packaged requirement (for example, trading in caching to cochain
The total size of information reaches predefined size threshold value, and the total number to cochain Transaction Information in caching reaches predetermined item number threshold value)
When, just by its dozen in a packet, generate signature, and cochain.The benefit of the embodiment is to improve utilizing for data block to imitate
Rate.In a data block, a plurality of Transaction Information may be housed, the data block on block chain is avoided excessively excessively to disperse,
Decrease the workload of block chain cochain.
The signature algorithm of signature is generated as described above, including digest algorithm and the encryption to abstract.In one embodiment,
Abstract is Merkel's tree root.In this embodiment, based on being included in a data block on block chain to be added to
Transaction Information generates Merkel's tree root in the following manner:
Determine the cryptographic Hash of each Transaction Information in data block;
Transaction Information in data block is sorted according to the sequence for entering caching, sequentially comes the transaction letter of odd bits
The Transaction Information composition one that breath and sequence later come even bit is right;
The cryptographic Hash of each pair of two Transaction Informations is subjected to Hash operation, obtains the cryptographic Hash of this pair;
It sorts each to according to the sequence for entering caching, sequentially come odd bits comes the to sequence later
Two pairs of cryptographic Hash of the centering of each more upper level is carried out Hash fortune by pair to one more upper level of composition of even bit
Calculate, obtain this upper one layer pair cryptographic Hash, until obtain most upper one layer pair cryptographic Hash, as Merkel's tree root.
In above process, if the Transaction Information that sequence comes odd bits is the last one Transaction Information in caching,
Then by the Transaction Information itself be used as one it is right;If sequence come odd bits to being that the last one is right in caching, by this
To pair as more upper level itself.
For example, there are 9 Transaction Informations in caching, it is A1-A9 respectively by the time sequencing for entering caching, is put into data field
Cochain in block.A1-A2 forms one to B1, and the cryptographic Hash of cryptographic Hash and A2 to A1 carries out cryptographic Hash operation, obtains the Kazakhstan of B1
Uncommon value;A3-A4 forms one to B2, and the cryptographic Hash of cryptographic Hash and A4 to A3 carries out cryptographic Hash operation, obtains the cryptographic Hash of B2;
A5-A6 forms one to B3, and the cryptographic Hash of cryptographic Hash and A6 to A5 carries out cryptographic Hash operation, obtains the cryptographic Hash of B3;A7-A8
For composition one to B4, the cryptographic Hash of cryptographic Hash and A8 to A7 carries out cryptographic Hash operation, obtains the cryptographic Hash of B4;A9 itself is one
It is a to B5, the cryptographic Hash of A9 is exactly the cryptographic Hash of B5.
For B1-B5, B1-B2 form a more top to C1, the cryptographic Hash of cryptographic Hash and B2 to B1 carries out Hash
It is worth operation, obtains the cryptographic Hash of C1;B3-B4 form more top to C2, the cryptographic Hash of cryptographic Hash and B4 to B3 carries out
Cryptographic Hash operation obtains the cryptographic Hash of C2;B5 itself is one to C3, and the cryptographic Hash of B5 is exactly the cryptographic Hash of C3.
For C1-C3, C1-C2 form a more top to D1, the cryptographic Hash of cryptographic Hash and C2 to C1 carries out Hash
It is worth operation, obtains the cryptographic Hash of D1;C3 itself is one to D2, and the cryptographic Hash of C3 is exactly the cryptographic Hash of D2.
For D1-D2, the cryptographic Hash of cryptographic Hash and D2 to D1 carries out cryptographic Hash operation, obtains Merkel's tree root.
In one embodiment, data block is divided into block head and block body.Block body is the main body of data block, wherein
It include the Transaction Information of data block storage.Block head is the head of data block, does not contain Transaction Information, but contains
Ancillary information, including based on the calculated abstract (such as Merkel's tree root) of the All Activity information in notebook data block, label
The abstract of name and last data block.The effect of the abstract of last data block is, before including in each data block
The information of one data block, and the abstract of the data block itself includes in data block on block chain thereafter.In this way,
Each data block is interrelated, once a certain data block is tampered, the data block for including in latter data block
Abstract will be not corresponding with it, distorted to identify, ensure that on block chain store information safety.
After data block cochain, by the service node signed and be sent in the service node sub-network, make business section
Point signature according to the key pair specific to the accounting nodes carries out signature verification.
Specifically, in the case of include block head and block body in data block, in block head containing above-mentioned abstract and
Signature.In one embodiment, service node of the block hair into the service node sub-network can be made into service node
The signature in the block head is signed according to the key specific to the accounting nodes, the abstract in the block head that receives
Name verifying.
In one embodiment, according to the key specific to the accounting nodes, the abstract in the block head that receives to institute
State in block head signature carry out signature verification detailed process include:
Obtain the key specific to the accounting nodes;
It signs and is decrypted described in the key pair specific to the accounting nodes, obtain the transaction letter in the data block
The abstract of breath;
If the abstract received is consistent with the abstract that decryption obtains, signature verification success.
The key obtained specific to the accounting nodes can send key request to authentication center using above-described, from
Authentication center receives the mode of the key specific to accounting nodes corresponding with the mark, therefore does not repeat.
As shown in fig. 7, before step 310, the method also includes:
Step 301, the intelligent contract for generating service node and block chain operator;
The intelligent contract of generation is synchronized to the storage of each accounting nodes in accounting nodes sub-network by step 302.
In the embodiment, step 302 includes:
Step 3201, from the accounting nodes store the service node and block chain operator intelligent contract in, obtain
The permissions data of the service node.
In the embodiment, the intelligent contract of each service node and block chain operator can be stored in accounting nodes subnet
In each accounting nodes in network.The benefit of the embodiment is, since intelligent contract is all locally stored in each accounting nodes, significantly
Improve the processing speed that Transaction Information or cryptographic Hash are returned to service node.
Intelligent contract is the contract that store various permissions datas of the service node in terms of inquiring Transaction Information, it is industry
What business node and block chain operator were concluded in advance.Permissions data includes allowing the power of service node belonging to the Transaction Information of inquiry
The corresponding type of transaction of Transaction Information for limiting, allowing the daily permission period for inquiring Transaction Information, allowing to inquire.
Service node permission belonging to the Transaction Information inquired is allowed to refer to being related to the Transaction Information of which service node
There is search access right.Service node belonging to Transaction Information refers to the service node of both parties in Transaction Information.For example, in electronics
In the transaction of bill billing, the terminal for unit of making out an invoice and the terminal of neck ticket people (claimer) are business sections belonging to the Transaction Information
Point, the service node which is related to are the make out an invoice terminal of unit and the terminal of neck ticket people (claimer).For example,
, it is specified that service node permission belonging to the Transaction Information for allowing to inquire in the intelligent contract that A node and block chain operator are concluded
It is A node, i.e., only A querying node is allowed to be related to the Transaction Information of their own, as long as then A node is the make out an invoice terminal and neck of unit
One in the terminal of ticket people (claimer), it is considered as having search access right to the Transaction Information, otherwise without search access right.Example again
Such as, it is specified that service node belonging to the Transaction Information for allowing to inquire is weighed in the intelligent contract that A node and block chain operator are concluded
Limit is A node and its subordinate unit's node, i.e. A1 node, i.e., only A querying node is allowed to be related to A node and the Transaction Information of A1,
As long as then A node or A1 node be make out an invoice unit terminal and neck ticket people (claimer) terminal in one, be considered as to this
Transaction Information has search access right, otherwise without search access right.
The daily permission period for inquiring Transaction Information is allowed to refer to allow daily when the inquiry of cochain is traded
Information.For example, providing in the intelligent contract that A node is concluded with block chain operator, allow to inquire the daily permission of Transaction Information
Period is 9:00-17:00, then only receives A node to the Transaction Information in data block in daily 9:00-17:00
Inquiry request just thinks there is search access right to Transaction Information, otherwise without search access right.
The permissions data includes the corresponding type of transaction of Transaction Information for allowing to inquire.For example, it may be possible to simultaneously same
It is the Transaction Information of three kinds of type of transaction of cochain on block chain, i.e. supply chain financial transaction information, electronic invoice Transaction Information, legal
Digital cash Transaction Information.For example, providing in the intelligent contract that A node is concluded with block chain operator, allow the transaction inquired
The corresponding type of transaction of information is electronic invoice Transaction Information, only when the corresponding type of transaction of Transaction Information is that electronic invoice is handed over
When easy information, A node just has search access right, otherwise without search access right.
In one embodiment, step 301 includes:
Contract template is issued, contains contract function in the contract template;
Receive the permissions data of the service node using the contract function setup;
The permissions data is integrated into the contract template, the intelligence of the service node Yu block chain operator is formed
Contract.
Contract template is the contract pattern being suitable for for the intelligent contract of all service nodes and block chain operator.
Each intelligence contract can apply the pattern, and only wherein specific permissions data is different.It is in intelligent contract
It removes with different business node and the format field after different permissions datas.Contract function is the function being arranged in contract,
Different permissions datas can be set by calling the function in user.Publication contract template may include sending out to the accounting nodes
Cloth contract template also may include all accounting nodes publication contract templates into accounting nodes sub-network.The former the case where
Under, the administrator for operating the accounting nodes can define the competence after the concrete condition of audit service node for the service node
Data simultaneously input the accounting nodes.In the latter case, the administrator of any one accounting nodes can be in audit business section
After the concrete condition of point, defines the competence for the service node and data and input the accounting nodes.
The concrete condition of the service node of audit includes service node operation attribute data etc..Service node runs attribute number
According to being the data showed in the operation of service node affiliated unit.In one embodiment, it includes service node operation category
The daily work of the service node, service node affiliated unit of property subordinate unit, data service node affiliated unit or scoping unit
Period, type of transaction of service node affiliated unit etc..
Each service node is the terminal in a unit.Service node affiliated unit is exactly the unit of the terminal attaching.
For example, a computer of bill billing enterprise, as service node, the unit is exactly the bill billing enterprise.The business section
Point affiliated unit may be its branch company.In addition, the service node affiliated unit may be a functional department, administration is single
Position is exactly all units of functional department administration.For example, the scoping unit of Local Tax Bureau, the city XX can be all lists of paying taxes in the city XX
Position.Administrator can be by the service node and the subordinate unit, service node affiliated unit or the business section of scoping unit
Point is determined as service node permission belonging to the Transaction Information for allowing to inquire.It, can be with for example, company A is by Liang Ge branch company A1, A2
A, A1, A2 are determined as service node permission belonging to the Transaction Information for allowing to inquire, i.e., when in the both parties of Transaction Information
When there is one in A, A1, A2, it is believed that company A has the search access right to the Transaction Information.
The daily working time section of service node affiliated unit refers to service node affiliated unit daily in which period
Work.The daily working time section of service node affiliated unit can be determined as allowing to inquire the daily of Transaction Information by administrator
Allow the period.For example, company A daily 9:00-17:00 working, if can be to receive the inquiry of company A in 9:00-17:00
Request, it is believed that company A has the search access right to the Transaction Information.
The type of transaction of service node affiliated unit refers to which kind of transaction service node affiliated unit is engaged in.For example, the industry
There is supply and marketing chain financial business in business node affiliated unit, then its type of transaction includes supply and marketing chain financial transaction.For example, the service node
Affiliated unit's usage fixed number word moneytary operations, then its type of transaction includes legal digital cash transaction.Administrator can be by business
The type of transaction of node affiliated unit is determined as the corresponding type of transaction of Transaction Information for allowing to inquire.For example, company A is engaged in confession
Chain financial business is sold, if receiving company A to the inquiry request of the supply and marketing chain financial transaction information of a cochain, it is believed that
Company A has the search access right to the Transaction Information.
Administrator defines the competence after data, and the permission of the contract function setup service node is just utilized in accounting nodes
Data, in this way, the accounting nodes are received by the permissions data of the service node using the contract function setup, it will be described
Permissions data is integrated into the contract template, is formed the intelligent contract of the service node Yu block chain operator.
The advantages of embodiment is, contract template provides contract function, allow administrator according to service node the case where it is flexible
Permissions data is set, the flexibility of permissions data setting is improved.
In one embodiment, step 301 includes:
It receives the intelligent contract from service node and generates request, the intelligence contract, which generates in request, contains service node
Run attribute data;
Attribute data, determining permission corresponding with service node operation attribute data are runed according to the service node
Data;
The permissions data is integrated into the contract template, the intelligence of the service node Yu block chain operator is formed
Contract.
In the embodiment, when service node will generate intelligent contract, sends an intelligent contract and generate request, the intelligence
Contract generates in request and runs attribute data containing service node.After accounting nodes receive intelligence contract generation request, root
Attribute data is runed according to the service node, automatically determines permissions data corresponding with service node operation attribute data,
And the permissions data automatically determined is integrated into the contract template.
The advantages of embodiment is the automation for realizing intelligent contract and generating.
The above-mentioned method for automatically determining permissions data is as follows.
In one embodiment, service node operation attribute data include subordinate unit, service node affiliated unit or
The service node of scoping unit, the permissions data include allowing service node permission belonging to the Transaction Information of inquiry.It is described
Attribute data, determining permissions data corresponding with service node operation attribute data, packet are runed according to the service node
It includes: the service node of the service node and the subordinate unit, service node affiliated unit or scoping unit is determined as permitting
Perhaps service node permission belonging to the Transaction Information inquired.
The embodiment and administrator as described above are according to the subordinate unit, service node affiliated unit or scoping unit
Service node determines that the method for service node permission belonging to the Transaction Information for allowing to inquire is similar, and only it is straight by machine
It connects and the intelligent contract received is generated into the subordinate unit, service node affiliated unit in request or the business section of scoping unit
Point and the service node itself are determined directly as service node permission belonging to the Transaction Information for allowing to inquire, realize
Determining automation.
In one embodiment, the service node operation attribute data includes the daily work of service node affiliated unit
Period, the permissions data include the daily permission period for allowing to inquire Transaction Information.It is described according to the service node
Run attribute data, determining permissions data corresponding with service node operation attribute data, comprising: will be belonging to service node
The daily working time section of unit is determined as the daily permission period for allowing to inquire Transaction Information.
The embodiment and administrator as described above determine according to the daily working time section of service node affiliated unit to be permitted
Perhaps the method for inquiring the daily permission period of Transaction Information is similar, and only it is executed automatically by machine, realizes determination
Automation.
In one embodiment, the service node operation attribute data includes the transaction class of service node affiliated unit
Type, the permissions data include the corresponding type of transaction of Transaction Information for allowing to inquire.It is described according to the service node operation
Attribute data, determining permissions data corresponding with service node operation attribute data, comprising: by service node affiliated unit
Type of transaction be determined as allowing the corresponding type of transaction of Transaction Information inquired.
The embodiment allows to inquire with administrator as described above according to the determination of the type of transaction of service node affiliated unit
The corresponding type of transaction of Transaction Information method it is similar, only it is executed automatically by machine, is realized determining automatic
Change.
In another embodiment, intelligent contract is not to realize each accounting nodes for being stored in accounting nodes sub-network
In, but also upper chained record.In this way, can be looked into when each accounting nodes need to obtain permissions data from intelligent contract with cochain
It looks for.The advantages of embodiment, is, compared to the intelligence of one each service node of database purchase of each accounting nodes internal maintenance
Energy contract, saves the occupancy of intra-node memory space.
As shown in figure 8, in this embodiment, before step 310, which comprises
Step 301, the intelligent contract for generating service node and block chain operator;
Intelligent contract block corresponding with the service node is added in the intelligent contract of generation by step 303, is recorded in block
On chain.
Correspondingly, step 320 includes:
Step 3202, the intelligence contract block corresponding with the service node from block chain, obtain the service node and area
The intelligent contract of block chain operator;
Step 3203, from the intelligence contract, obtain the permissions data of the service node.
The step 301 of Fig. 8 is identical as the step 301 of Fig. 7, therefore does not repeat.
In one embodiment, step 303 includes:
By the intelligent contract of the generation block body for being stored in the intelligence contract block corresponding with service node mark;
Abstract operation and signature operation are applied to generation area block, is made a summary and is signed;
By the abstract of previous block on the abstract, signature and block chain, the block head of intelligent contract block is added;
After the intelligence contract block is known together between all accounting nodes of accounting nodes sub-network, it is recorded in block
On chain.
The effect of service node mark is easy for obtaining intelligent contract corresponding with service node in step 3202.
For example preceding combination Fig. 2A -2C of effect of the abstract of previous block, Fig. 3 A-3G, figure on abstract and signature and block chain
Described in 4A-4G, Fig. 5 A-5G, therefore do not repeat.
It knows together, has at present many total between all accounting nodes of accounting nodes sub-network about intelligent contract block
Know algorithm, therefore does not repeat.
Correspondingly, step 3202 may include:
From the block body of the intelligent contract block recorded on block chain, the mark of the service node is searched;
Obtain intelligence contract corresponding with the mark, the intelligence as the service node and block chain operator in the block body
It can contract.
In one embodiment, specific identifier can be added on the block head of intelligent contract block, by the specific mark
Knowledge can navigate to intelligent contract block from all data blocks on block chain.The advantages of embodiment is, relative to
The mark of searching service node one by one in all data blocks, substantially increases the efficiency of the intelligent contract of searching service node.
It in a step 330, include allowing service node permission belonging to the Transaction Information of inquiry in the permissions data
In the case of, the permissions data according to the service node determines that the service node has search access right to the Transaction Information, comprising:
If a both parties at least side in the Transaction Information and business section belonging to the Transaction Information for allowing to inquire
In the case where point permission match, determine that the service node has search access right to the Transaction Information.
A both parties at least side in the Transaction Information weighs with service node belonging to the Transaction Information for allowing to inquire
Limit matching refers to that at least side of the both parties in the Transaction Information is to allow service node belonging to the Transaction Information of inquiry
In one.
For example, service node permission belonging to the Transaction Information inquired is allowed to include service node A, A1, A2.A certain item is handed over
Easy information is that an electronic invoice is made out an invoice Transaction Information, and the both sides to make out an invoice make out an invoice unit terminal and claimer's terminal.If opened
Having a terminal in ticket unit terminal and claimer's terminal is A perhaps A1 or A2, it is determined that the service node is to the transaction
Information has search access right.
In a step 330, include the case where the daily permission period for allowing to inquire Transaction Information in the permissions data
Under, the permissions data according to the service node determines that the service node has search access right to the Transaction Information, comprising:
If the receiving time of the inquiry request, in the daily permission period for allowing to inquire Transaction Information, determining should
Service node has search access right to the Transaction Information.
For example, the daily permission period of A querying node Transaction Information is allowed to be daily 9:00-17:00, A section is received
The time of the inquiry request of point is 15:03, then it is assumed that A node has search access right to the Transaction Information.
In step 330, in the case where the permissions data includes the corresponding type of transaction of the Transaction Information that allows to inquire,
The permissions data according to the service node determines that the service node has search access right to the Transaction Information, comprising:
If the type of transaction for including in the inquiry request is the corresponding type of transaction of Transaction Information for allowing to inquire, really
The fixed service node has search access right to the Transaction Information.
For example, allowing the corresponding type of transaction of Transaction Information of A querying node by supply chain financial transaction and legal number
Moneytary operations.The type of transaction for including in the inquiry request that A node issues is supply chain financial transaction type, then it is assumed that A node
There is search access right to the Transaction Information.
Since in a step 330, inquiry request or return Transaction Information or return for service node are traded
The cryptographic Hash of information.By the calculation of above-mentioned Merkel's tree root it is found that if it is not known that some transaction in data block are believed
Breath, but the cryptographic Hash of these Transaction Informations is specified, it equally can finally calculate above-mentioned Merkel's tree root.Service node calculates
Merkel's tree root of the block head of data block for returning of Merkel's tree root and accounting nodes be compared, so that it may in progress
Hold verifying.If two Merkel's tree roots are consistent, illustrate that accounting nodes do not distort each Transaction Information.If two silent
Ke Er tree root is inconsistent, then there are accounting nodes and distorted some of transaction messages, last service node is caused to recalculate
Merkel's tree root and block head in the inconsistent possibility of Merkel's tree root.
As shown in figure 9, in one embodiment, after step 302, the method also includes:
The update of step 304, reception to service node and the intelligent contract of block chain operator;
Step 305 stores each accounting nodes being synchronized in accounting nodes sub-network that update.
In step 302, the intelligent contract of generation is synchronized to each accounting nodes in accounting nodes sub-network and stores it
Afterwards, if the operation attribute of service node changes, for example, the affiliated company of service node A only has a branch company before, it is corresponding
Service node be A1, now variation be You Liangjia branch company, corresponding service node be A1 and A2, it is necessary to intelligent contract
It is updated.At this time, it is necessary to receive the update to intelligent contract, then the update is synchronized in accounting nodes sub-network
Each accounting nodes storage.In this way, each accounting nodes in accounting nodes sub-network just remain with newest service node and area
The intelligent contract of block chain voice side.
The benefit of the embodiment is that each accounting nodes in accounting nodes sub-network safeguard the intelligence of each service node respectively
In the case where energy contract, the intelligent contract of each service node of each accounting nodes maintenance can be quickly updated.
In one embodiment, step 304 includes:
Contract template is issued, contains contract function in the contract template;
Receive the update of the permissions data of the service node using the contract function setup;
The update of the permissions data is integrated into the contract template, the service node and block chain operator are formed
Intelligent contract update.
The mode for issuing contract template is identical as the aforementioned publication mode of contract template when generating intelligent contract.
It receives in the way of the update of the permissions data of the service node of the contract function setup and aforementioned in life
It is almost the same in the way of the permissions data of the service node of the contract function setup at being received when intelligent contract, only not
Cross which permissions data is changed, only receiving can using the permissions data that these of contract function setup change
With.
Similarly, by the update of the permissions data be integrated into the contract template also with when generating intelligent contract by institute
It is similar to state the mode that permissions data is integrated into the contract template, therefore does not repeat.
The benefit of above-described embodiment is, can update of the typing to permissions data manually, administrator can be according to industry
The concrete condition of business node is flexibly service node setting permissions data, increases the flexibility that intelligent contract updates.
In one embodiment, step 304 includes:
It receives the intelligent contract from service node and updates request, the intelligence contract updates in request containing the industry changed
Business node runs attribute data;
Attribute data is runed according to the service node of the variation, it is determining corresponding with service node operation attribute data
Permissions data update;
The update of the permissions data is integrated into the contract template, the updated service node and block are formed
The intelligent contract of chain operator.
The intelligence contract, which updates, can contain only the service node operation attribute data changed in request, for not changing
Operation attribute data can not include.
It is described that attribute data is runed according to the service node of the variation, it is determining to run attribute data with the service node
The update of corresponding permissions data is that accounting nodes carry out automatically.It is automatic when the rule automatically updated is with generation intelligence contract
The mode for the data that define the competence is similar, only only needs the operation attribute data for considering to change, the determining operation with after the variation
The corresponding permissions data of attribute data, the permissions data before replacing.For example, the subsidiary/member companies of company described in service node A is former
Come only one, correspond to service node A1, become two A1 and A2 now, at this moment, with the operation attribute data pair after variation
The permissions data answered are as follows: allowing to inquire service node belonging to Transaction Information has A, A1 and A2.The permissions data instead before only
Allow to inquire the permissions data that service node belonging to Transaction Information is A and A1.
It will be by the power when update of the permissions data is integrated into the contract template also contract intelligent with generation
It is similar to the process in the contract template to limit Data Integration, therefore does not repeat.
The advantages of embodiment is the automation for realizing the update to the intelligent contract of service node, is not needed artificial
Intervene.
As shown in Figure 10, in one embodiment, after step 303, the method also includes:
The update of step 306, reception to service node and the intelligent contract of block chain operator;
Intelligent contract more new block corresponding with the service node is added in the update by step 307, is recorded in block chain
On.
The content of step 306 is identical as step 304, therefore does not repeat.
Due to the data block on block chain be it is not modifiable, if the block data on block chain changes, need
It updates, can only remember a data block again.In one embodiment, in step 307, updated intelligent contract can be added
Enter intelligent contract more new block corresponding with the service node, is recorded on block chain.In this way, working as accounting nodes to search industry
The permissions data of business node, may be in multiple numbers when searching the intelligent contract of service node and block chain operator on block chain
According to the intelligent contract for finding service node Yu block chain operator in block, the intelligent contract in a nearest data block is made
For updated intelligent contract, decide whether to return to Transaction Information to service node accordingly.
The embodiment in the case where upper chained record, intelligent contract is realized in a manner of faster and is existed after the generation of intelligent contract
Update on block chain.
In one embodiment, not only containing the power of service node in the intelligent contract of service node and block chain operator
Data are limited, whether are also the information for registering user containing service node.When needing to obtain permissions data to determine whether for business
Before node returns to Transaction Information, first obtain whether the service node is the information for registering user from intelligent contract.If not
User is registered, then the service node does not return to any number of deals at all without any transaction data of permission inquiry cochain for it
According to.If it is registration user, just obtains permissions data and judge whether it is service node return Transaction Information.
The advantages of embodiment is only return to registration user sentencing for the cryptographic Hash of Transaction Information or Transaction Information
It is fixed, do not return to any data to nonregistered user, it is therefore prevented that nonregistered user inquires cochain by the method for the embodiment of the present disclosure
Transaction Information improves the safety of uplink data inquiry.
In the embodiment, step 320 includes:
From service node and the intelligent contract of block chain operator, obtain whether the service node is the letter for registering user
Breath;
If the information indicates that the service node is registration user, closed from the intelligence of service node and block chain operator
In about, the permissions data of the service node is obtained.
In one embodiment, one field can be set specific position in intelligent contract.It is 1 in the field, indicates
Service node is registration user.The field is 0, indicates that service node is nonregistered user.By the field, the business section is obtained
Whether point is the information for registering user.If the field is 1, another from service node and the intelligent contract of block chain operator
The field of a storage permissions data, obtains the permissions data of the service node.If the field is 0, do not returned to service node
Transaction data.This may include not returning to any data to service node, or return to empty data to service node.Empty data are
The structure of only one storage data, but there is no the data of any content in the structure.
It containing service node whether is also the letter for registering user in the intelligent contract of service node and block chain operator
In the case where breath, in one embodiment, step 301 includes:
Contract template is issued, contains contract function in the contract template;
It receives using whether the permissions data of the service node of the contract function setup and the service node are registrations
The information of user;
It whether is to register the information of user to be integrated into the contract template by the permissions data and the service node,
Form the intelligent contract of the service node Yu block chain operator.
The embodiment with business section is not contained in the intelligent contract of service node and block chain operator as described above
Whether point is that the difference of detailed process of step 301 in the case where the information for registering user is:
First, administrator will not only utilize the permissions data of the contract function setup service node, also utilize contract
Whether the function setup service node is to register the information of user, and the two is inputted accounting nodes.The contract function can incite somebody to action
Both information all are arranged.Before whether the administrator setting service node is to register the information of user, administrator is wanted
Whether the querying node service node registered to responsible service node to block chain network is registration user.The method of inquiry can
To be that the node registered to responsible service node to block chain network issues inquiry request, and receives and be responsible for service node to block
Whether the service node that the node of chain network registration issues is the information for registering user.Service node registration when, to be responsible for
The node that service node is registered to block chain network sends registration request, and filling registration information.It is responsible for service node to block
The node of chain network registration correspondingly stores the mark of service node with registration information.It, should when receiving inquiry request
Inquiry request has the mark of service node, is responsible for whether the node that service node is registered to block chain network is deposited by inquiry
The registration information corresponding with the mark of the service node of storage, so that it may judge whether the service node is register node.It is responsible for
Service node can be a specified accounting nodes in accounting nodes sub-network to the node that block chain network is registered, can also be with
It is a dedicated node except accounting nodes sub-network.
Second, after receiving the two information, the two information are all integrated into the contract template by accounting nodes, shape
At the intelligent contract of the service node and block chain operator, rather than only integrate permissions data.
It containing service node whether is also the letter for registering user in the intelligent contract of service node and block chain operator
In the case where breath, in another embodiment, step 301 includes:
It receives the intelligent contract from service node and generates request, the intelligence contract, which generates in request, contains service node
Run attribute data;
Attribute data, determining permission corresponding with service node operation attribute data are runed according to the service node
Data;
The node registered to responsible service node to block chain network issues inquiry request;
It receives and is responsible for whether the service node that the node that service node is registered to block chain network issues is registration user
Information;
It whether is to register the information of user to be integrated into the contract template by the permissions data and the service node,
Form the intelligent contract of the service node Yu block chain operator.
The above process with without containing service node whether be note in the intelligent contract of service node and block chain operator
The difference of detailed process of step 301 is in the case where the information of volume user, due in addition to needing including power in intelligent contract
Limit data except, it is also necessary to including the service node whether be register user information, in order to obtain the information, need to be responsible for
The node that service node is registered to block chain network issues inquiry request, and receives and be responsible for service node to the registration of block chain network
Node issue the service node whether be register user information.Issue inquiry request and receive the service node whether be
The information and aforementioned administrator for registering user pass through whether contract function setup permissions data and the service node are registration users
Information embodiment in administrator obtain the service node whether be register user information process it is identical, only at this
In be not to be completed by administrator, and machine is automatically performed.
As described above, according to the Transaction Information inquired in block chain network in data block of an embodiment of the present disclosure
Method by accounting nodes sub-network an accounting nodes execute.The accounting nodes are described below in detail selects process.
In one embodiment, as shown in figure 11, the accounting nodes for executing the method are pressed from accounting nodes sub-network
It is selected according to following manner.In one embodiment, the inquiry request of service node is first sent to agent node, is pressed by agent node
Accounting nodes are selected according to following steps:
Step 410, the processing load for obtaining each accounting nodes in accounting nodes sub-network;
Step 420 determines each accounting nodes in accounting nodes sub-network to the service node for sending the inquiry request
Distance;
Step 430 is based on the processing load and the distance, determines and receives the book keeping operation section to cochain Transaction Information
Point.
Processing load is the parameter of the burden for the indicating that accounting nodes are being handled of the task.In one embodiment, it handles
Load can be measured with the untreated complete number of tasks of accounting nodes.Here task includes Transaction Information cochain task and inquiry
Task.These untreated complete number of tasks can represent the processing load of accounting nodes.
In one embodiment, step 410 includes:
It obtains the processing load that each accounting nodes are periodically sent and stores;
The processing load for the accounting nodes that accounting nodes the last time is stored is as the processing of the accounting nodes obtained
Load.
That is, in this embodiment, processing load can periodically (for example, every 5 seconds) be sent by each accounting nodes
To agent node.Agent node safeguards a processing load meter, and it is fixed that each accounting nodes received are recorded in the processing load meter
The processing load of phase broadcast.In this way, agent node can bear the processing for the accounting nodes that accounting nodes the last time stores
Processing load of the lotus as the accounting nodes obtained.
In this embodiment, agent node passively receives the processing load that accounting nodes are periodically sent.In another implementation
In example, the processing load of agent node active inquiry accounting nodes.In this embodiment, step 410 includes:
Into accounting nodes sub-network, each accounting nodes send processing load inquiry request;
Receive the processing load for the accounting nodes that each accounting nodes are sent.
In one embodiment, it in step 420, determines in accounting nodes sub-network and is looked into described in each accounting nodes to transmission
Ask the distance of the service node of request, comprising:
Into accounting nodes sub-network, each accounting nodes and the service node of the transmission inquiry request issue positioning
Information request;
Each accounting nodes and transmission institute are received from each accounting nodes and the service node for sending the inquiry request
State the location information of the service node of inquiry request;
Using the location information of each accounting nodes and the service node for sending the inquiry request, each book keeping operation section is determined
Distance of the point to the service node for sending the inquiry request.
Each service node and accounting nodes may have the positioning systems such as GPS, and therefore, they have from itself
The location information of itself can be obtained in GPS positioning system.It, will when receiving the location information requests that agent node is sent
The location information of itself obtained from GPS system is sent to agent node.When agent node obtain each accounting nodes and
After the location information for sending the service node of the inquiry request, these location informations are utilized, it will be able to determine each book keeping operation section
Distance of the point to the service node for sending the inquiry request.
In the above-described embodiments, location information is obtained using the mode by agent node activly request, is born with processing
Lotus is the same, the location information can also using from each accounting nodes and send the service node of the inquiry request periodically to
The mode that agent node is sent, therefore do not repeat.
The advantages of embodiment, is, when determining the accounting nodes for executing the method, considers not only each book keeping operation section
The processing load of point, it is also contemplated that each accounting nodes are with a distance from the service node for sending the inquiry request.Although may
The processing load of a certain accounting nodes is minimum, but the accounting nodes may be very from the service node for sending the inquiry request
Far, it is chosen as executing the accounting nodes of the method, increases network transmission burden, also reduce query processing speed.It should
Embodiment has comprehensively considered distance and processing load, and the book keeping operation section of inquiry is executed than determining according to distance or processing load merely
Point scheme, can substantially balanced each accounting nodes processing load and cause too big transmission burden to network.
In one embodiment, as shown in figure 12, step 430 may include:
Step 4301, the processing load based on each accounting nodes in accounting nodes sub-network, determine each book keeping operation
First score of node;
Step 4302, the distance based on each accounting nodes in accounting nodes sub-network, determine each accounting nodes
The second score;
Step 4303, the first score and the second score based on each accounting nodes determine the book keeping operation for executing the method
Node.
In step 4301, based on the processing load of each accounting nodes in accounting nodes sub-network, determine each
First score of accounting nodes can take the form for searching pre-set processing load and the first score mapping table.It should
Processing load is preset with the first score mapping table, wherein processing load is bigger, the first score is lower.Such as:
Table 1 handles load and the first score mapping table
In step 4302, based on the distance of each accounting nodes in accounting nodes sub-network, each book keeping operation section is determined
Second score of point can take the form for searching pre-set distance and the second score mapping table.The distance and second
Score mapping table is preset, wherein distance is bigger, the second score is lower.Such as:
Distance | Second score |
Within 50 meters | 5 |
50-200 meters | 4 |
200-1000 meters | 3 |
1000-5000 meters | 2 |
5000-20000 meters | 1 |
20000 meters or more | 0 |
2 distance of table and the second score mapping table
There are the first score and the second score of each accounting nodes, so that it may determine according to the first score and the second score
Execute the accounting nodes of the method.The advantages of embodiment, is, by the institute of accounting nodes each in accounting nodes sub-network
It states the described of each accounting nodes in processing load and accounting nodes sub-network and the side is executed to selection apart from the two factors
The influence fractionation of the accounting nodes of method improves the accuracy that selection executes the accounting nodes of the method.
In one embodiment, as shown in figure 13, step 4303 includes:
The weighted sum of step 43031, the first score for determining each accounting nodes and the second score;
Step 43032 is based on the weighted sum, determines the accounting nodes for executing the method.
In step 43031, when determining weighted sum, the weight distributed for the first score and the second score be can be according to warp
It tests preset.
In step 43032, the maximum accounting nodes of the weighted sum can be determined as receiving described to cochain transaction
Weighted sum can also be greater than in the accounting nodes of predetermined weighted sum threshold value optional one, as reception by the accounting nodes of information
The accounting nodes to cochain Transaction Information.It is all load as long as being believed that weighted sum is greater than predetermined weighted sum threshold value
Not counting it is too big and apart from the service node sent to cochain Transaction Information not counting too far, which chooses as the execution side
The accounting nodes of method are the same.In the latter matter, the equilibrium for also helping load prevents from all selecting in same time
The maximum accounting nodes of weighted sum, and cause the obvious overload state of the maximum accounting nodes of the weighted sum.
The advantages of embodiment is the weighted sum of the first score and the second score based on each accounting nodes, and determination connects
Receive the accounting nodes to cochain Transaction Information, compared to based on the first score and the second score and/or average value determination connect
The scheme for receiving the accounting nodes to cochain Transaction Information has fully taken into account the first score and the second score and determination has been held
The otherness of the contribution of the accounting nodes of row the method improves the reasonability for determining the accounting nodes for executing the method.
Above-mentioned determining embodiment the remembering mainly for Figure 1A -1B for receiving the accounting nodes to cochain Transaction Information
Account node sub-network end does not have the case where branch's accounting nodes sub-network.But the accounting nodes sub-network end shown in Fig. 1 C is divided into
It is then another situation in the embodiment of branch's accounting nodes sub-network.
In this embodiment, Transaction Information type, e.g. supply chain financial transaction or electronics hair are had in inquiry request
Ticket transaction or the transaction of legal digital cash.Accounting nodes in accounting nodes sub-network are in advance according to the Transaction Information class of processing
Type classification, the accounting nodes of the every one kind being divided into separately constitute corresponding branch accounting nodes sub-network, for example, supply chain
Financial transaction branch accounting nodes sub-network or electronic invoice transaction branch's accounting nodes sub-network or legal digital cash are handed over
Easily branched accounting nodes sub-network, a kind of each branch's accounting nodes sub-network special disposal transaction class corresponding with type of transaction
Type.Therefore, which will be dealt into respective type according to the Transaction Information type carried in inquiry request by agent node
In an accounting nodes in branch's accounting nodes sub-network.In order to reach this point, accounting nodes are stored in agent node
The Transaction Information type corresponding record of mark and Transaction Information type mapping table, accounting nodes mark and processing is saved in book keeping operation
In point identification and Transaction Information type mapping table.
In this embodiment, as shown in figure 14, execute the accounting nodes of the method from accounting nodes sub-network according to
Following manner is selected:
Transaction Information type in step 510, acquisition inquiry request;
Step 520, the friendship from accounting nodes mark and Transaction Information type mapping table, in lookup and inquiry request
The easily corresponding accounting nodes mark of information type;
Step 530, from the accounting nodes that the accounting nodes that find identify, determine receive it is described to cochain Transaction Information
Accounting nodes.
The benefit of the embodiment is to be divided into branch's accounting nodes sub-network for accounting nodes sub-network end shown in Fig. 1 C
Architecture, propose it is a kind of be suitble to the architecture reasonable selection execute the method accounting nodes mode.
It in one embodiment, include Transaction Information type in the Transaction Information type field in inquiry request.Step 510
In, can Transaction Information type directly be read from the Transaction Information type field.
Due to being provided with accounting nodes mark and Transaction Information type mapping table on agent node, in one embodiment
In, in step 520, from the table, accounting nodes mark corresponding with the Transaction Information type in inquiry request can be found.
As shown in figure 15, in one embodiment, step 530 includes:
Step 5301, the processing load for determining the accounting nodes that the accounting nodes each found identify;
Step 5302 determines the accounting nodes of the accounting nodes mark each found to the business of the transmission inquiry request
The distance of node;
Step 5303 is based on the processing load and the distance, determines the accounting nodes for executing the method.
The specific implementation process of step 5301-5303 and the specific implementation process of step 410-430 are similar, and difference is only that
Determined in the embodiment of Figure 15 processing load and to the service node for sending the inquiry request distance accounting nodes model
Enclose the book keeping operation section of accounting nodes mark corresponding with Transaction Information type in inquiry request that is being only limitted to find in step 520
Point is not all accounting nodes in accounting nodes sub-network, therefore does not repeat.
According to one embodiment of the disclosure, as shown in figure 16, additionally provides one kind and inquire data in block chain network
The accounting nodes of Transaction Information in block.The block chain network includes accounting nodes sub-network and service node sub-network.
The accounting nodes sub-network includes accounting nodes data block being recorded on block chain, the service node sub-network packet
Include the service node verified to the data block that accounting nodes are recorded on block chain.The accounting nodes include:
Inquiry request receiving unit 610, for receiving service node to the inquiry request of the Transaction Information in data block;
Permissions data acquiring unit 620, for obtaining the industry from the intelligent contract of service node and block chain operator
The permissions data of business node;
Transaction Information return unit 630, if determining the service node pair for the permissions data according to the service node
The Transaction Information has search access right, returns to the Transaction Information to the service node, conversely, returning to transaction letter to the service node
The cryptographic Hash of breath.
In one embodiment, the accounting nodes further include:
Intelligent contract generation unit (not shown), for generating the intelligent contract of service node Yu block chain operator;
Synchronization unit (not shown), for the intelligent contract generated to be synchronized to each accounting nodes in accounting nodes sub-network
Storage.
Permissions data acquiring unit is further used for: the service node and block chain operator stored from the accounting nodes
Intelligent contract in, obtain the permissions data of the service node.
In one embodiment, the accounting nodes further include:
Intelligent contract generation unit (not shown), for generating the intelligent contract of service node Yu block chain operator;
Chain element (not shown) on intelligent contract block, the intelligent contract for that will generate are added corresponding with the service node
Intelligent contract block, is recorded on block chain,
Permissions data acquiring unit is further used for:
Intelligence contract block corresponding with the service node, obtains the service node and block chain operator from block chain
Intelligent contract;
From the intelligence contract, the permissions data of the service node is obtained.
In one embodiment, intelligent contract generation unit is further used for:
Contract template is issued, contains contract function in the contract template;
Receive the permissions data of the service node using the contract function setup;
The permissions data is integrated into the contract template, the intelligence of the service node Yu block chain operator is formed
Contract.
In one embodiment, intelligent contract generation unit is further used for:
It receives the intelligent contract from service node and generates request, the intelligence contract, which generates in request, contains service node
Run attribute data;
Attribute data, determining permission corresponding with service node operation attribute data are runed according to the service node
Data;
The permissions data is integrated into the contract template, the intelligence of the service node Yu block chain operator is formed
Contract.
In one embodiment, service node operation attribute data include subordinate unit, service node affiliated unit or
The service node of scoping unit, the permissions data include allowing service node permission belonging to the Transaction Information of inquiry.It is described
Attribute data, determining permissions data corresponding with service node operation attribute data, packet are runed according to the service node
It includes: the service node of the service node and the subordinate unit, service node affiliated unit or scoping unit is determined as permitting
Perhaps service node permission belonging to the Transaction Information inquired.
In one embodiment, the service node operation attribute data includes the daily work of service node affiliated unit
Period, the permissions data include the daily permission period for allowing to inquire Transaction Information.It is described according to the service node
Run attribute data, determining permissions data corresponding with service node operation attribute data, comprising: will be belonging to service node
The daily working time section of unit is determined as the daily permission period for allowing to inquire Transaction Information.
In one embodiment, the service node operation attribute data includes the transaction class of service node affiliated unit
Type, the permissions data include the corresponding type of transaction of Transaction Information for allowing to inquire.It is described according to the service node operation
Attribute data, determining permissions data corresponding with service node operation attribute data, comprising: by service node affiliated unit
Type of transaction be determined as allowing the corresponding type of transaction of Transaction Information inquired.
It in one embodiment, include allowing service node permission belonging to the Transaction Information of inquiry in the permissions data
In the case where, the permissions data according to the service node determines that the service node has search access right to the Transaction Information, packet
It includes: if a both parties at least side in the Transaction Information and service node permission belonging to the Transaction Information for allowing to inquire
In matched situation, determine that the service node has search access right to the Transaction Information.
It in one embodiment, include allowing to inquire the feelings of the daily permission period of Transaction Information in the permissions data
Under condition, the permissions data according to the service node determines that the service node has search access right to the Transaction Information, comprising: such as
The receiving time of the fruit inquiry request determines the service node pair in the daily permission period for allowing to inquire Transaction Information
The Transaction Information has search access right.
It in one embodiment, include allowing the feelings for the corresponding type of transaction of Transaction Information inquired in the permissions data
Under condition, the permissions data according to the service node determines that the service node has search access right to the Transaction Information, comprising: such as
The type of transaction for including in inquiry request described in fruit is the corresponding type of transaction of Transaction Information for allowing to inquire, and determines the business section
Point has search access right to the Transaction Information.
In one embodiment, the accounting nodes further include:
Intelligent contract updates receiving unit (not shown), for receiving the intelligent contract to service node and block chain operator
Update;
Synchronization unit (not shown) is updated, for depositing each accounting nodes being synchronized in accounting nodes sub-network that update
Storage.
In one embodiment, the accounting nodes further include:
Intelligent contract updates receiving unit (not shown), for receiving the intelligent contract to service node and block chain operator
Update;
Chain element (not shown) in update, for intelligent contract more new district corresponding with the service node to be added in the update
Block is recorded on block chain.
In one embodiment, intelligent contract updates receiving unit and is further used for:
Contract template is issued, contains contract function in the contract template;
Receive the update of the permissions data of the service node using the contract function setup;
The update of the permissions data is integrated into the contract template, the service node and block chain operator are formed
Intelligent contract update.
In one embodiment, the update to service node and the intelligent contract of block chain operator is received, comprising:
It receives the intelligent contract from service node and updates request, the intelligence contract updates in request containing the industry changed
Business node runs attribute data;
Attribute data is runed according to the service node of the variation, it is determining corresponding with service node operation attribute data
Permissions data update;
The update of the permissions data is integrated into the contract template, the updated service node and block are formed
The intelligent contract of chain operator.
In one embodiment, the accounting nodes further include:
Signature generation unit (not shown), for utilizing the key specific to the accounting nodes, based on block chain to be added to
On a data block in be included Transaction Information, generate signature;
Transaction Information and upper chain element (not shown) of signing, for the number to be added in the signature of the Transaction Information and generation
According to block, it is added on block chain;
Signature transmission unit (not shown), the service node for the signature to be sent in the service node sub-network,
So that service node is signed according to the key pair specific to the accounting nodes and carries out signature verification.
In one embodiment, it is described in block chain network inquire data block in Transaction Information accounting nodes from
It is selected in the following way in accounting nodes sub-network:
Obtain the processing load of each accounting nodes in accounting nodes sub-network;
Determine each accounting nodes in accounting nodes sub-network to the service node for sending the inquiry request distance;
Based on the processing load and the distance, the Transaction Information inquired in data block in block chain network is determined
Accounting nodes.
In one embodiment, described to be based on the processing load and the distance, determination is inquired in block chain network
The accounting nodes of Transaction Information in data block, comprising:
Based on the processing load of each accounting nodes in accounting nodes sub-network, the first of each accounting nodes is determined
Score;
Based on the distance of each accounting nodes in accounting nodes sub-network, second point of each accounting nodes is determined
Number;
The first score and the second score based on each accounting nodes are determined and are inquired in data block in block chain network
Transaction Information accounting nodes.
In one embodiment, first score and the second score based on each accounting nodes is determined in block chain
The accounting nodes of the Transaction Information in data block are inquired in network, comprising:
Determine the first score of each accounting nodes and the weighted sum of the second score;
Based on the weighted sum, the accounting nodes that the Transaction Information in data block is inquired in block chain network are determined.
In one embodiment, described to be based on the weighted sum, it determines and is inquired in data block in block chain network
The accounting nodes of Transaction Information, comprising:
By the maximum accounting nodes of the weighted sum, it is determined as the transaction letter inquired in data block in block chain network
The accounting nodes of breath.
In one embodiment, the Transaction Information type with inquiry in the inquiry request, in accounting nodes sub-network
Accounting nodes in advance according to the Transaction Information classification of type of processing, the Transaction Information type of accounting nodes mark and processing is corresponding
It is recorded in accounting nodes mark and Transaction Information type mapping table.It is described to be inquired in data block in block chain network
The accounting nodes of Transaction Information selected in the following way from accounting nodes sub-network:
Obtain the Transaction Information type in inquiry request;
From accounting nodes mark and Transaction Information type mapping table, search corresponding with the Transaction Information type obtained
Accounting nodes mark;
From the accounting nodes that the accounting nodes found identify, the friendship inquired in data block in block chain network is determined
The accounting nodes of easy information.
In one embodiment, described from the accounting nodes that the accounting nodes found identify, it determines in block chain network
The accounting nodes of Transaction Information in middle inquiry data block, comprising:
Obtain the processing load of the accounting nodes of the accounting nodes mark each found;
Determine the accounting nodes of the accounting nodes mark each found to the transmission inquiry request service node away from
From;
Based on the processing load and the distance, the Transaction Information inquired in data block in block chain network is determined
Accounting nodes.
In one embodiment, permissions data acquiring unit 620 is further used for:
From service node and the intelligent contract of block chain operator, obtain whether the service node is the letter for registering user
Breath;
If the information indicates that the service node is registration user, closed from the intelligence of service node and block chain operator
In about, the permissions data of the service node is obtained.
The method for inquiring the Transaction Information in data block in the block chain network according to the embodiment of the present disclosure can be by
The accounting nodes 21 for the Transaction Information of Figure 17 inquired in data block in block chain network are realized.It is retouched referring to Figure 17
State the accounting nodes 21 that the Transaction Information in data block is inquired in block chain network according to the embodiment of the present disclosure.Figure 17 is aobvious
The accounting nodes 21 of the Transaction Information inquired in data block in block chain network shown are only an example, should not be to this
The function and use scope of open embodiment bring any restrictions.
As shown in figure 17, the accounting nodes 21 of the Transaction Information in data block are inquired in block chain network in terms of general
Calculate the form performance of equipment.The component that the accounting nodes 21 of the Transaction Information in data block are inquired in block chain network can be with
Including but not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, the different system components of connection
The bus 830 of (including storage unit 820 and processing unit 810).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810
Row, so that the processing unit 810 executes described in the description section of this specification above-mentioned example method according to the present invention
The step of various illustrative embodiments.For example, the processing unit 810 can execute each step as shown in Figure 6.
Storage unit 820 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 8201 and/or cache memory unit 8202, it can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205
8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
The accounting nodes 21 that the Transaction Information in data block is inquired in block chain network can also be with one or more
External equipment 700 (such as keyboard, sensing equipment, bluetooth equipment etc.) communication, can also be enabled a user to one or more with
This inquires the transaction of the Transaction Information in data block inquired in data block in block chain network in block chain network
Information accounting nodes 21 interaction equipment communication, and/or with make the friendship inquired in data block in block chain network
Any equipment that the accounting nodes 21 of easy information can be communicated with one or more of the other calculating equipment (such as router, adjust
Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, in block chain network
The accounting nodes 21 of Transaction Information in middle inquiry data block can also pass through network adapter 860 and one or more net
Network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adaptation
Other moulds that device 860 passes through bus 830 and the accounting nodes 21 for the Transaction Information inquired in data block in block chain network
Block communication.It should be understood that although not shown in the drawings, can be in conjunction with the Transaction Information inquired in block chain network in data block
Accounting nodes 21 use other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing
Unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer program medium is additionally provided, computer is stored thereon with
Readable instruction makes computer execute the above method and implements when the computer-readable instruction is executed by the processor of computer
The method of example part description.
According to one embodiment of the disclosure, a kind of journey for realizing the method in above method embodiment is additionally provided
Sequence product, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal
It is standby, such as run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want
These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended
Claim is pointed out.
Claims (15)
1. a kind of method for determining accounting nodes in block chain network, which is characterized in that the block chain network includes book keeping operation
The accounting nodes sub-network of node composition and the service node sub-network of service node composition, the method is by the accounting nodes
Agent node between sub-network and the service node sub-network executes, which comprises
Obtain the Transaction Information type in the inquiry request of service node;
From accounting nodes mark and Transaction Information type mapping table, search and the Transaction Information type pair in inquiry request
The accounting nodes mark answered;
From the accounting nodes that the accounting nodes found identify, determines and receive the accounting nodes to cochain Transaction Information.
2. the method according to claim 1, wherein being wrapped in Transaction Information type field in the inquiry request
Type containing Transaction Information, it is described obtain service node inquiry request in Transaction Information type, comprising: from the Transaction Information class
Type-word section reads Transaction Information type.
3. the method according to claim 1, wherein the accounting nodes identified from the accounting nodes found
In, it determines and receives the accounting nodes to cochain Transaction Information, comprising:
Determine the processing load of the accounting nodes of the accounting nodes mark each found;
Determine the accounting nodes of the accounting nodes mark each found to the distance for the service node for sending the inquiry request;
Based on the processing load and the distance, the accounting nodes for executing the method are determined.
4. according to the method described in claim 3, it is characterized in that, the book keeping operation for the accounting nodes mark that the determination is each found
The processing load of node, comprising:
It obtains the processing load that the accounting nodes that the accounting nodes each found identify periodically are sent and stores;
The processing load of the accounting nodes for the accounting nodes mark that each of the last storage is found is as the determining note
The processing load of account node.
5. according to the method described in claim 3, it is characterized in that, the book keeping operation for the accounting nodes mark that the determination is each found
The processing load of node, comprising:
The accounting nodes identified to each accounting nodes found send processing load inquiry request;
Receive the processing load that the accounting nodes of the accounting nodes mark each found are sent.
6. according to the method described in claim 3, it is characterized in that, the book keeping operation for the accounting nodes mark that the determination is each found
Distance of the node to the service node for sending the inquiry request, comprising:
The service node of the accounting nodes and the transmission inquiry request that identify to each accounting nodes found issues positioning
Information request;
The service node of the accounting nodes and the transmission inquiry request that identify from each accounting nodes found receives each
The location information of the service node of the accounting nodes and transmission inquiry request of the accounting nodes mark found;
Utilize the positioning of the service node of the accounting nodes and transmission inquiry request of the accounting nodes mark each found
Information determines the accounting nodes of the accounting nodes mark respectively found to the distance for the service node for sending the inquiry request.
7. according to the method described in claim 3, it is characterized in that, described be based on the processing load and the distance, determination
Execute the accounting nodes of the method, comprising:
The processing load of accounting nodes based on each accounting nodes mark found, determines first point of each accounting nodes
Number;
The distance of accounting nodes based on each accounting nodes mark found, determines the second score of each accounting nodes;
The first score and the second score of accounting nodes based on each accounting nodes mark found, determine and service the inquiry
The accounting nodes of request.
8. the method according to the description of claim 7 is characterized in that the book keeping operation based on each accounting nodes mark found
The processing load of node, determines the first score of each accounting nodes, comprising:
The processing load of accounting nodes based on each accounting nodes mark found, searches pre-set processing load
With the first score mapping table, the first score of the accounting nodes of the accounting nodes mark each found is determined.
9. the method according to the description of claim 7 is characterized in that the book keeping operation based on each accounting nodes mark found
The distance of node determines the second score of each accounting nodes, comprising:
The distance of accounting nodes based on each accounting nodes mark found, searches pre-set distance and second point
Number mapping table determines the second score of the accounting nodes of the accounting nodes mark each found.
10. the method according to the description of claim 7 is characterized in that the note based on each accounting nodes mark found
The first score and the second score of account node determine the accounting nodes for servicing the inquiry request, comprising:
Determine the first score of the accounting nodes of the accounting nodes mark each found and the weighted sum of the second score;
Based on the weighted sum, the accounting nodes for servicing the inquiry request are determined.
11. according to the method described in claim 10, it is characterized in that, it is described be based on the weighted sum, determine service described in look into
Ask the accounting nodes of request, comprising: save the maximum book keeping operation of weighted sum described in the accounting nodes of the accounting nodes found mark
Point is determined as servicing the accounting nodes of the inquiry request.
12. according to the method described in claim 10, it is characterized in that, it is described be based on the weighted sum, determine service described in look into
Ask the accounting nodes of request, comprising: weighted sum in the accounting nodes of the accounting nodes found mark is greater than predetermined weighted sum threshold
Optional one in the accounting nodes of value, as the accounting nodes for servicing the inquiry request.
13. a kind of agent node for determining accounting nodes in block chain network, which is characterized in that the block chain network includes
The accounting nodes sub-network of accounting nodes composition and the service node sub-network of service node composition, the accounting nodes sub-network
There is the agent node between the service node sub-network, the agent node includes:
Transaction Information type acquiring unit, the Transaction Information type in inquiry request for obtaining service node;
Searching unit is used for from accounting nodes mark and Transaction Information type mapping table, in lookup and inquiry request
The corresponding accounting nodes mark of Transaction Information type;
Accounting nodes determination unit, for determining described in receiving to cochain from the accounting nodes that the accounting nodes found identify
The accounting nodes of Transaction Information.
14. a kind of accounting nodes characterized by comprising
Memory is stored with computer-readable instruction;
Processor reads the computer-readable instruction of memory storage, is required described in any of 1-12 with perform claim
Method.
15. a kind of computer program medium, is stored thereon with computer-readable instruction, when the computer-readable instruction is calculated
When the processor of machine executes, computer perform claim is made to require method described in any of 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910679099.5A CN110471953B (en) | 2018-12-07 | 2018-12-07 | Method, proxy node and medium for determining accounting node in blockchain network |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811495811.8A CN109523385A (en) | 2018-12-07 | 2018-12-07 | Method, accounting nodes and the medium of Transaction Information are inquired in block chain network |
CN201910679099.5A CN110471953B (en) | 2018-12-07 | 2018-12-07 | Method, proxy node and medium for determining accounting node in blockchain network |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811495811.8A Division CN109523385A (en) | 2018-12-07 | 2018-12-07 | Method, accounting nodes and the medium of Transaction Information are inquired in block chain network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110471953A true CN110471953A (en) | 2019-11-19 |
CN110471953B CN110471953B (en) | 2023-05-26 |
Family
ID=65795899
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811495811.8A Pending CN109523385A (en) | 2018-12-07 | 2018-12-07 | Method, accounting nodes and the medium of Transaction Information are inquired in block chain network |
CN201910678553.5A Active CN110471952B (en) | 2018-12-07 | 2018-12-07 | Method, proxy node and medium for determining accounting node in blockchain network |
CN201910679099.5A Active CN110471953B (en) | 2018-12-07 | 2018-12-07 | Method, proxy node and medium for determining accounting node in blockchain network |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811495811.8A Pending CN109523385A (en) | 2018-12-07 | 2018-12-07 | Method, accounting nodes and the medium of Transaction Information are inquired in block chain network |
CN201910678553.5A Active CN110471952B (en) | 2018-12-07 | 2018-12-07 | Method, proxy node and medium for determining accounting node in blockchain network |
Country Status (1)
Country | Link |
---|---|
CN (3) | CN109523385A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597264A (en) * | 2020-05-15 | 2020-08-28 | 中国联合网络通信集团有限公司 | Block chain accounting method and device |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110135178A (en) * | 2019-04-11 | 2019-08-16 | 贝克链区块链技术有限公司 | Zero-lag account book access technique in the verifying of block chain |
CN110175913B (en) * | 2019-04-12 | 2021-03-02 | 创新先进技术有限公司 | Data processing system, method, computing device and storage medium based on block chain |
US11315115B2 (en) | 2019-04-12 | 2022-04-26 | Advanced New Technologies Co., Ltd. | Blockchain-based data processing system, method, computing device and storage medium |
CN110245187A (en) * | 2019-05-20 | 2019-09-17 | 深圳壹账通智能科技有限公司 | A kind of list type queries method and node based on block chain |
CN110263089B (en) * | 2019-05-20 | 2021-05-04 | 创新先进技术有限公司 | Receipt storage method and node combining conditional restrictions of transaction and event types |
CN110275892B (en) * | 2019-05-22 | 2022-08-19 | 深圳壹账通智能科技有限公司 | Block chain-oriented data management method, device, equipment and storage medium |
CN110489486B (en) * | 2019-08-02 | 2020-12-18 | 腾讯科技(深圳)有限公司 | Method, seed node and medium for generating block chain network |
CN110532324B (en) * | 2019-09-05 | 2023-10-03 | 腾讯科技(深圳)有限公司 | Block chain-based bulletin information display method, device, equipment and storage medium |
CN110597918B (en) * | 2019-09-23 | 2024-05-28 | 腾讯科技(深圳)有限公司 | Account management method, account management device and computer readable storage medium |
CN110708383B (en) * | 2019-10-12 | 2022-06-07 | 深圳市迅雷网络技术有限公司 | Network connection method of block chain node and related equipment |
CN110580245B (en) * | 2019-11-08 | 2020-03-10 | 支付宝(杭州)信息技术有限公司 | Private data sharing method and device |
CN110580412B (en) * | 2019-11-08 | 2020-03-06 | 支付宝(杭州)信息技术有限公司 | Permission query configuration method and device based on chain codes |
CN110580262B (en) * | 2019-11-08 | 2020-03-10 | 支付宝(杭州)信息技术有限公司 | Private data query method and device based on intelligent contract |
CN111475827A (en) * | 2019-11-08 | 2020-07-31 | 支付宝(杭州)信息技术有限公司 | Private data query method and device based on down-link authorization |
CN110580411B (en) * | 2019-11-08 | 2020-03-06 | 支付宝(杭州)信息技术有限公司 | Permission query configuration method and device based on intelligent contract |
CN111241594B (en) * | 2020-01-06 | 2023-10-13 | 平安科技(深圳)有限公司 | Method, device, computer equipment and storage medium for signing transaction information |
CN111400752A (en) * | 2020-03-12 | 2020-07-10 | 杭州城市大数据运营有限公司 | Data query method and system based on block chain and electronic equipment |
CN111464630B (en) * | 2020-03-31 | 2021-07-06 | 杭州复杂美科技有限公司 | Transaction broadcasting method, apparatus and storage medium |
CN111538783B (en) * | 2020-04-20 | 2023-05-05 | 成都质数斯达克科技有限公司 | Method, device, terminal and storage medium for intelligent contract execution constraint |
CN111680111B (en) * | 2020-05-29 | 2023-09-01 | 泰康保险集团股份有限公司 | Billing method and device, computer equipment and computer readable storage medium |
CN111695856A (en) * | 2020-06-08 | 2020-09-22 | 中设设计集团股份有限公司 | Ship information registration method based on block chain intelligent contract |
CN112200681B (en) * | 2020-12-04 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Service processing method, information processing method and node equipment of block chain network |
CN112291376B (en) * | 2020-12-31 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Data processing method and related equipment in block chain system |
CN113159678A (en) * | 2021-04-15 | 2021-07-23 | 广西综合交通大数据研究院 | Traffic logistics public information service platform based on block chain |
CN113781230A (en) * | 2021-09-24 | 2021-12-10 | 支付宝(杭州)信息技术有限公司 | Transaction processing method and device based on block chain |
CN113934933B (en) * | 2021-10-15 | 2024-04-05 | 北京智融云河科技有限公司 | Message forwarding method, device and storage medium with low delay |
CN114490781B (en) * | 2022-04-01 | 2022-07-22 | 中国信息通信研究院 | Block chain data processing method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312752A (en) * | 2012-03-13 | 2013-09-18 | 中国联合网络通信集团有限公司 | P2P (Peer to Peer) network information distribution method, downloading node, index server and P2P network information distribution system |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
CN107066893A (en) * | 2017-02-28 | 2017-08-18 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of accounts information in block chain |
US20170353320A1 (en) * | 2016-02-26 | 2017-12-07 | Apple Inc. | Obtaining and using time information on a secure element (se) |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
US20180268382A1 (en) * | 2017-03-20 | 2018-09-20 | Steven Victor Wasserman | Blockchain digital currency: systems and methods for use in enterprise blockchain banking |
CN108667632A (en) * | 2018-04-19 | 2018-10-16 | 阿里巴巴集团控股有限公司 | Based on the credit record sharing method and device of block chain, electronic equipment |
CN108665359A (en) * | 2017-03-29 | 2018-10-16 | 中国移动通信有限公司研究院 | Block chain processing method, accounting nodes and verification node |
CN108764797A (en) * | 2018-05-31 | 2018-11-06 | 腾讯科技(深圳)有限公司 | Circulation information querying method, device, equipment, system and storage medium |
CN108764868A (en) * | 2018-05-25 | 2018-11-06 | 全链通有限公司 | Block chain node-agent account checking method and block reconciliation agent node |
CN108777625A (en) * | 2018-06-28 | 2018-11-09 | 腾讯科技(深圳)有限公司 | Verification method, device and system, storage medium, the electronic device of signature |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190238550A1 (en) * | 2016-12-26 | 2019-08-01 | Cloudminds (Shenzhen) Robotics Systems Co., Ltd. | Permission control method, apparatus and system for block chain, and node device |
CN107018125B (en) * | 2017-02-17 | 2019-08-09 | 阿里巴巴集团控股有限公司 | A kind of block catenary system, date storage method and device |
CN113111388A (en) * | 2017-03-31 | 2021-07-13 | 唐晓领 | Method, device and system for sharing transaction metadata information by financing parties based on block chain |
CN107332826B (en) * | 2017-06-09 | 2019-12-03 | 中国联合网络通信集团有限公司 | The communication means and device of block chain agent node |
CN107545031A (en) * | 2017-07-17 | 2018-01-05 | 招商银行股份有限公司 | Account comprehensive inquiry service, system and computer-readable recording medium |
CN108470276A (en) * | 2018-03-12 | 2018-08-31 | 成都零光量子科技有限公司 | A kind of block chain common recognition method using agency's book keeping operation |
CN108717630B (en) * | 2018-05-19 | 2020-12-22 | 上海分布信息科技有限公司 | Block output method and implementation system thereof |
-
2018
- 2018-12-07 CN CN201811495811.8A patent/CN109523385A/en active Pending
- 2018-12-07 CN CN201910678553.5A patent/CN110471952B/en active Active
- 2018-12-07 CN CN201910679099.5A patent/CN110471953B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312752A (en) * | 2012-03-13 | 2013-09-18 | 中国联合网络通信集团有限公司 | P2P (Peer to Peer) network information distribution method, downloading node, index server and P2P network information distribution system |
US20170353320A1 (en) * | 2016-02-26 | 2017-12-07 | Apple Inc. | Obtaining and using time information on a secure element (se) |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
CN107066893A (en) * | 2017-02-28 | 2017-08-18 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of accounts information in block chain |
US20180268382A1 (en) * | 2017-03-20 | 2018-09-20 | Steven Victor Wasserman | Blockchain digital currency: systems and methods for use in enterprise blockchain banking |
CN108665359A (en) * | 2017-03-29 | 2018-10-16 | 中国移动通信有限公司研究院 | Block chain processing method, accounting nodes and verification node |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
CN108667632A (en) * | 2018-04-19 | 2018-10-16 | 阿里巴巴集团控股有限公司 | Based on the credit record sharing method and device of block chain, electronic equipment |
CN108764868A (en) * | 2018-05-25 | 2018-11-06 | 全链通有限公司 | Block chain node-agent account checking method and block reconciliation agent node |
CN108764797A (en) * | 2018-05-31 | 2018-11-06 | 腾讯科技(深圳)有限公司 | Circulation information querying method, device, equipment, system and storage medium |
CN108777625A (en) * | 2018-06-28 | 2018-11-09 | 腾讯科技(深圳)有限公司 | Verification method, device and system, storage medium, the electronic device of signature |
Non-Patent Citations (3)
Title |
---|
MAXIM AMELCHENKO等: "Blockchain abbreviation: Implemented by message passing and shared memory (Extended abstract)", 《 2017 IEEE 16TH INTERNATIONAL SYMPOSIUM ON NETWORK COMPUTING AND APPLICATIONS (NCA)》 * |
熊建英: "区块链技术在公安信息管理中的应用探索——以设计一种公民信息管理模型为例", 《江西警察学院学报》 * |
邵奇峰等: "区块链技术:架构及进展", 《计算机学报》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597264A (en) * | 2020-05-15 | 2020-08-28 | 中国联合网络通信集团有限公司 | Block chain accounting method and device |
CN111597264B (en) * | 2020-05-15 | 2023-06-23 | 中国联合网络通信集团有限公司 | Block chain accounting method and device |
CN112020018A (en) * | 2020-08-26 | 2020-12-01 | 济南浪潮高新科技投资发展有限公司 | Block chain accounting group generation method, consensus method and block chain system |
CN112020018B (en) * | 2020-08-26 | 2022-05-17 | 山东浪潮科学研究院有限公司 | Block chain accounting group generation method, consensus method and block chain system |
Also Published As
Publication number | Publication date |
---|---|
CN110471953B (en) | 2023-05-26 |
CN110471952B (en) | 2023-05-26 |
CN109523385A (en) | 2019-03-26 |
CN110471952A (en) | 2019-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110471953A (en) | Method, agent node and the medium of accounting nodes are determined in block chain network | |
CN109447811A (en) | Method, accounting nodes and the medium of Transaction Information are inquired in block chain network | |
CN110471951A (en) | Determine the method for the sequence of Transaction Information, accounting nodes and medium in data block | |
CN109447648A (en) | The method of recorded data zone block, accounting nodes and medium in block chain network | |
CN109635585A (en) | Method, agent node and the medium of Transaction Information are inquired in block chain network | |
CN109522735B (en) | Data permission verification method and device based on intelligent contract | |
US11836717B2 (en) | System and method for processing payments in fiat currency using blockchain and tethered tokens | |
US20200058023A1 (en) | Decentralized Data Marketplace | |
US20190354606A1 (en) | Private Cryptocoinage in Blockchain Environments | |
JP2020535543A (en) | Methods, devices, and computer-readable media for compliant tokenization and asset value control | |
CN108681898A (en) | A kind of data trade method and system based on block chain | |
CN108830490A (en) | A method of dynamic enterprise credit scoring is managed using publicly-owned block chain | |
CN109829767A (en) | A kind of point reward exchanging system and method based on block chain technology | |
CN110020956A (en) | A kind of exchange method and system, computer equipment and storage medium of transregional piece of chain | |
CN108197214B (en) | Method and system for inquiring digital currency transaction information | |
CN110520883A (en) | The method and apparatus of certificate is handled in block catenary system | |
CN109685504A (en) | It is a kind of that economic bookkeeping methods is shared based on block chain | |
CN109636610A (en) | A kind of data transacting system and method for decentralization | |
KR102230452B1 (en) | open market blockchain statistical analysis system for ship supplies | |
CN110365711A (en) | Multi-platform user identification relevancy method and device | |
Shaker et al. | Online rating system development using blockchain-based distributed ledger technology | |
Yoo et al. | A study for efficiency improvement of used car trading based on a public blockchain | |
Travizano et al. | Wibson: A decentralized marketplace empowering individuals to safely monetize their personal data | |
US20230419308A1 (en) | System and method for processing payments in fiat currency using blockchain and tethered tokens | |
CN110766548A (en) | Block chain based information processing method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40016822 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |