CN109359485A - Invoice data shared system and method based on block chain - Google Patents

Invoice data shared system and method based on block chain Download PDF

Info

Publication number
CN109359485A
CN109359485A CN201811087272.4A CN201811087272A CN109359485A CN 109359485 A CN109359485 A CN 109359485A CN 201811087272 A CN201811087272 A CN 201811087272A CN 109359485 A CN109359485 A CN 109359485A
Authority
CN
China
Prior art keywords
invoice data
data
block
node device
invoice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811087272.4A
Other languages
Chinese (zh)
Inventor
夏良超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811087272.4A priority Critical patent/CN109359485A/en
Priority to PCT/CN2018/124901 priority patent/WO2020057002A1/en
Publication of CN109359485A publication Critical patent/CN109359485A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/10Tax strategies

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Storage Device Security (AREA)

Abstract

This application involves a kind of invoice data shared systems and method based on block chain.The system includes: multiple node devices and the first verifying node device, wherein: and the corresponding first node equipment of seller enterprise and second node equipment corresponding with purchaser enterprise generate seller invoice data storage request and buyer invoice data storage request according to respective private key and invoice data to be stored respectively, and are sent to the first verifying node device;After first verifying node device obtains seller invoice data storage request and buyer invoice request of data, request is stored to seller invoice data respectively according to corresponding public key and buyer invoice data storage request is decrypted, obtain the first invoice data and the second invoice data, when the first invoice data and the second invoice data match, block data is generated according to the first invoice data or the second invoice data, and block data is written in block chain.The application is based on block chain technology and realizes that invoice data is shared.

Description

Invoice data shared system and method based on block chain
Technical field
This application involves block chain technical field, more particularly to it is a kind of based on the invoice data shared system of block chain with And method.
Background technique
Currently, invoice data is uniformly stored in third-party institution's server, such as the database of the tax bureau works as credit When mechanism authenticated to the invoice data of enterprise, confirm business standing, credit agency needs by the third party tax bureau Authorization obtain true and reliable invoice data, be just achieved credit process.With being continuously increased for invoice data, to third The performance requirement of square authority server is higher, and due to the insecurity factor of third-party institution's server, cause invoice data to hold It is subject to distort, it is difficult to ensure safety, authenticity and the reliability of invoice data.
Summary of the invention
Based on this, it is necessary to for above-mentioned invoice data be uniformly to be stored in third-party institution's server, it is difficult to ensure hair The technical issues of safety of ticket data, authenticity and reliability, provides a kind of shared system of the invoice data based on block chain System and method.
A kind of invoice data shared system based on block chain, the invoice data shared system include and seller enterprise Corresponding first node equipment, second node equipment corresponding with purchaser enterprise and the first verifying node device, in which:
The first node equipment, for according to the private key of the first node equipment and invoice data to be stored generation Seller invoice data storage request, and seller invoice data storage request is sent to the first verifying node device;
The second node equipment, for according to the private key of the second node equipment and invoice data to be stored generation Buyer invoice data storage request, and the buyer invoice data storage request is sent to the first verifying node device;
The first verifying node device, for obtaining the seller invoice data storage request and the buyer invoice Request of data;Seller invoice data storage request is decrypted according to the public key of the first node equipment and obtains the first invoice Data are decrypted buyer invoice data storage request according to the public key of the second node equipment and obtain the second invoice number According to;When first invoice data and second invoice data match, according to first invoice data or described the Two invoice datas generate block data, and the block data is written in block chain.
The first verifying node device is used in one of the embodiments:
Obtain the first identifier information of the first node equipment and the second identifier information of the second node equipment;
The identification information of block data is generated according to the first identifier information and the second identifier information;
Header information is generated according to the identification information and the identification information of a upper block data, is tested according to described first The private key for demonstrate,proving node device carries out encryption generation area block information to first invoice data or second invoice data;
The block data is generated according to the header information and the block body information.
The invoice data shared system based on block chain further includes that the second verifying node is set in one of the embodiments, It is standby;
The first verifying node device is used for according to the first identifier information, the second identifier information and described The private key of first verifying node device generates the corresponding signing messages of the block data, and the signing messages is sent to institute It states in the second verifying node device;
The second verifying node device carries out signature authentication to the signing messages for obtaining the signing messages;
When the second verifying node device passes through the signature authentication of the signing messages, the first verifying node The block data is written in block chain by equipment.
The invoice data shared system based on block chain further includes third node device in one of the embodiments,;
The third node device is for sending inquiry request to the first node equipment and the first verifying section Point device;
The first node equipment is also used to get the inquiry request, sends inquiry response according to the inquiry request It requests to the first verifying node device, wherein the inquiry response request includes the first mark of the first node equipment Know information;
The first verifying node device is also used to obtain the inquiry request and inquiry response request, according to institute It states inquiry request and inquiry response request sends the public key and the first identifier that described first verifies node device Information is to the third node device;
The third node device is searched in block chain and the first node equipment according to the first identifier information Relevant block data, and the block body information of block data is solved according to the public key of the first verifying node device It is close, obtain invoice data relevant to the first node equipment.
A kind of invoice data sharing method based on block chain, Ying Yu based in the invoice data shared system of block chain, The described method includes:
Receive the seller invoice data storage request that first node equipment is sent and the buyer that second node equipment is sent Invoice data storage request;Wherein, the seller invoice data storage request is by the first node equipment according to described first The private key of node device and invoice data to be stored generate;The buyer invoice data storage request is set by the second node It is standby to be generated according to the private key of the second node equipment and invoice data to be stored;
Seller invoice data storage request is decrypted according to the public key of the first node equipment and obtains the first invoice Data are decrypted buyer invoice data storage request according to the public key of the second node equipment and obtain the second invoice number According to;
If first invoice data matches with second invoice data, according to first invoice data or institute It states the second invoice data and generates block data, and the block data is written in block chain.
The block data includes header information and block body information in one of the embodiments,;
Described the step of block data is generated according to first invoice data or second invoice data, comprising:
Obtain the first identifier information of the first node equipment and the second identifier information of the second node equipment;
The identification information of block data is generated according to the first identifier information and the second identifier information;
Header information is generated according to the identification information and the identification information of a upper block data, is tested according to described first The private key for demonstrate,proving node device carries out encryption generation area block information to first invoice data or second invoice data;
The block data is generated according to the header information and the block body information.
In one of the embodiments, before the step block data being written in block chain, comprising:
Private key according to the first identifier information, the second identifier information and the first verifying node device is raw At the corresponding signing messages of the block data;
The step block data being written in block chain, comprising:
The signing messages is sent to the second verifying node device, wherein the signing messages is used to indicate described Two verifying node devices carry out signature authentication to the signing messages;
If signature authentication passes through, the block data is written in block chain.
In one of the embodiments, the method also includes:
Obtain the inquiry request that third node device is sent and the inquiry response that the first verifying node device is sent Request;Wherein, the inquiry response request includes the first identifier information of the first verifying node device;
According to the inquiry request and the inquiry response request send it is described first verifying node device public key with And the first identifier information is to the third node device;The first identifier information is used to indicate the third node device Search relevant to first node equipment block data, the described first public key for verifying node device is used to indicate described the The block body information of block data is decrypted in three node devices, obtains invoice number relevant to the first node equipment According to.
Above-mentioned invoice data shared system, method based on block chain, passes through the node device and pin of purchaser enterprise The node device of seller initiates buyer invoice data storage request and seller invoice according to same invoice data to be stored respectively Data storage request is sold, the invoice data in buyer invoice data storage request is in the matching by the first verifying node device After verifying, the first verifying node device generates block data according to invoice data to be stored and stores into block chain, realizes and divides Cloth is recorded, and each enterprise corresponds to a node in block chain, and shared account book is realized between node, effectively avoids invoice data It is tampered, improves safety, authenticity and the reliability of invoice data.
Detailed description of the invention
Fig. 1 is the application scenario diagram of the invoice data shared system based on block chain in one embodiment;
Fig. 2 is the structural block diagram of the invoice data shared system based on block chain in one embodiment;
Fig. 3 is the structural block diagram of the invoice data shared system based on block chain in another embodiment;
Fig. 4 is the flow diagram of the invoice data sharing method based on block chain in another embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
It should be noted that term involved in the embodiment of the present invention " first/second/third " be only distinguish it is similar Object does not represent the particular sorted for object, it is possible to understand that ground, " first/second/third " can be mutual in the case where permission Specific sequence or precedence are changed, so that the embodiment of the present invention described herein can be in addition to illustrating herein or describing Those of other than sequence implement.For example, term involved in the embodiment of the present invention " first node equipment ", " second node is set It is standby " and " third node device " be used only for different node device in difference block chain.
Invoice data shared system provided by the present application based on block chain can be applied to application ring as shown in Figure 1 In border.Wherein, each enterprise UE terminal 102 passes through network with node device 104 corresponding in block catenary system by network It is communicated, further includes verifying node device 106 in block catenary system, node device 104 and verifying node device 106 exist respectively The copy of block chain is locally stored, distributed storage is realized in decentralization between multiple node devices.
Specifically, the invoice data generated after trading between different enterprises, seller enterprise UE terminal 102a and pin Invoice data to be stored is sent to corresponding node device 104, seller enterprise respectively by seller's enterprise UE terminal 102b The corresponding node device 104a of industry generates seller invoice data storage request according to invoice data, by issuing to block chain network The mode of " transaction " (Transaction), which is realized to block chain, is written invoice data, meanwhile, the corresponding node of purchaser enterprise is set Standby 104b generates buyer invoice data storage request according to invoice data, real by way of issuing " transaction " to block chain network Invoice data now is written to block chain, wherein include the identification information of enterprise customer in invoice data storage request, to prove to look forward to The identity of industry user;Seller invoice data storage request and buyer invoice data storage request are verified node device 106 and test After card passes through and receives, invoice data is recorded into the new block of generation by verifying node device 106, is then published to block link network Invoice data is stored in block chain by network, realization.Wherein, verifying node device 106, which can be, executes common recognition competition mechanism Block chain node device;Enterprise UE terminal 102 can be, but not limited to be various personal computers, laptop, plate electricity The equipment such as brain, node device 104 and verifying node device 106 can be formed with the either multiple servers of independent server Server cluster realize.
Block chain in the embodiment of the present application can be alliance's block chain, i.e., is not that any one terminal all has to the block Chain carries out the permission of data read operation, storage operation, and only has specified terminal just to have and carry out data reading to the block chain It takes, the operating right of data storage, guarantees that data storage is the true of Information Security in the block chain and data with this Property.
In one embodiment, described as shown in Fig. 2, providing a kind of invoice data shared system based on block chain Invoice data shared system includes and the corresponding first node equipment 201 of seller enterprise, corresponding with purchaser enterprise second Node device 202 and the first verifying node device 203, in which:
First node equipment 201, for generating the seller according to the private key of first node equipment and invoice data to be stored Invoice data storage request, and seller invoice data storage request is sent to the first verifying node device 203;
Second node equipment 202, for generating buyer according to the private key of second node equipment and invoice data to be stored Invoice data storage request, and buyer invoice data storage request is sent to the first verifying node device 203;
First verifying node device 203, for obtaining seller invoice data storage request and buyer invoice request of data; Seller invoice data storage request is decrypted according to the public key of first node equipment 201 and obtains the first invoice data, according to The public key of second node equipment 201 is decrypted buyer invoice data storage request and obtains the second invoice data;When the first hair When ticket data and the second invoice data match, block data is generated according to the first invoice data or the second invoice data, and will Block data is written in block chain.
The invoice data shared system based on block chain provided in the present embodiment has multiple node devices, in Fig. 2 only It shows in this invoice data, and the corresponding first node equipment 201 of seller enterprise, the second section corresponding with purchaser enterprise Point device.Invoice data to be stored is generated after the completion of transaction between seller enterprise and purchaser enterprise, seller enterprise is corresponding First node equipment 201 is somebody's turn to do invoice data to be stored according to the key pair of itself and is encrypted, and seller invoice data storage is generated Request, and seller invoice data storage request is broadcasted to the first verifying node device 203 by block chain network, likewise, The corresponding second node equipment 202 of purchaser enterprise is encrypted according to the key pair invoice data to be stored of itself, and generation is bought Square invoice data storage request, and seller invoice data storage request is broadcasted by block chain network and is set to the first verifying node Standby 203;First verifying node device 203, which receives, to be sold, after buyer invoice data storage request, according to first node equipment 201 Public key and second node equipment 201 public key respectively to seller invoice data store request and buyer invoice request of data It is decrypted, obtains the first invoice data and the second invoice data, match in the first invoice data and the second invoice data When, the first verifying node device 203 generates block data according to the first invoice data or the second invoice data, and by block data It is written in block chain, invoice data to be stored is saved in block chain by realization.
Specifically, invoice data generally includes invoice type, invoice codes, purchaser's company information, seller enterprise letter Multiple data fields such as breath, Amount in Total;First invoice data matches when matching with the second invoice data can refer to first Each data field in invoice data is equal to each other with each data field in the second invoice data.By to first node The invoice data that equipment 201 and second node equipment 202 issue is verified, and the invoice data of write-in block chain is effectively avoided It malfunctions and prevents the false invoice data of personal forgery, improve the validity and reliability of invoice data in block chain.
The above-mentioned invoice data shared system based on block chain passes through the node device of purchaser enterprise and seller Node device initiates buyer invoice data storage request according to same invoice data to be stored respectively and seller invoice data is deposited Storage request, seller invoice data store the invoice data in request and buyer invoice data storage request by the first verifying After the matching verifying of node device, the first verifying node device generates block data according to invoice data to be stored and stores to area In block chain, distributed record is realized, each enterprise corresponds to a node in block chain, shared account book is realized between node, is had Effect avoids invoice data from being tampered, and improves safety, authenticity and the reliability of invoice data.
In one embodiment, the first verifying node device 203 is used to obtain the first identifier information of first node equipment And the second identifier information of second node equipment;Block data is generated according to first identifier information and second identifier information Identification information;Header information is generated according to identification information and the identification information of a upper block data, according to the first verifying node The private key of equipment carries out encryption generation area block information to the first invoice data or the second invoice data;According to header information and Block body information generates block data.
In the present embodiment, identification information is the unique identification number for being used to indicate corresponding node equipment, can be the node Public key, IP address, duty paragraph of corresponding enterprise of equipment etc..Block data generally includes header information and block body information;Head The identification information of identification information and a upper block in portion's information including this block data, so that multiple block datas form chain Item constitutes block chain;Wherein, identification information is to be marked by the first verifying node device 203 according to first identifier information and second Know what information generated, in subsequent progress invoice data inquiry, the node device for initiating inquiry request can be according to enterprise to be checked The identification information of the corresponding node device of industry, search block chain in each block data header data, thus obtain with it is to be checked The corresponding invoice data of enterprise is ask, the process of inquiry invoice data can be effectively simplified, saves the communication resource;And block body information Storage invoice data is treated according to the private key of itself by the first verifying node device 203 and carries out encryption generation, to invoice data It is encrypted, although each node device on block chain can read encryption invoice data, can not know tool The invoice data content of body, avoids the leakage of invoice data.
In one embodiment, it as shown in figure 3, providing a kind of invoice data shared system based on block chain, is based on The invoice data shared system of block chain further includes the second verifying node device 204;First verifying node device 203 is used for basis The private key of first identifier information, second identifier information and the first verifying node device generates the corresponding A.L.S. of block data Breath, and signing messages is sent in the second verifying node device 204;Second verifying node device 204 is for obtaining A.L.S. Breath carries out signature authentication to signing messages;When the second verifying node device 204 passes through the signature authentication of signing messages, the Block data is written in block chain by one verifying node device 203.
The present embodiment is realized before block data write-in block chain, verifies node device 204 to newly-generated by second Block data carries out secondary verifying, recognizes by the way that the private key progress of identification information and the first verifying equipment to node device is secondary Card realizes that the enterprise customer generated to invoice data, verifying equipment carry out authentication, avoids illegal node device generation area Block number evidence is further ensured that the safety of block chain and invoice data.Specifically, the first verifying 203 seller of node device hair Ticket data storage request and buyer invoice request of data generate block data when, according to the identification information of first node equipment, The private key information of the identification information of second node equipment and the first verifying node device itself generates the A.L.S. of block data Breath;After second verifying node device 204 of block chain receives the signing messages of block data, sign to the signing messages Certification, if signature authentication passes through, block data is written in block chain with more new block by the first verifying node device 203 Chain.
In one embodiment, the invoice data shared system based on block chain further includes third node device;Third section Point device is for sending inquiry request to first node equipment 201 and the first verifying node device 203;First node equipment 201 are also used to get inquiry request, send inquiry response according to inquiry request and request to the first verifying node device 203, In, inquiry response request includes the first identifier information of first node equipment;First verifying node device 203, which is also used to obtain, to be looked into Request and inquiry response request are ask, the first verifying node device 203 is sent according to inquiry request and inquiry response request Public key and first identifier information are to third node device;Third node device is searched in block chain according to first identifier information Block data relevant to first node equipment 201, and according to the public key of the first verifying node device 203 to the area of block data Block information is decrypted, and obtains invoice data relevant to first node equipment 201.
The present embodiment realizes the process of third party enterprise or mechanism inquiry invoice data;Third party enterprise or mechanism look into When asking the invoice data of a certain enterprise to be checked, the corresponding third node device of third party enterprise or mechanism passes through block link network Network is requested to the corresponding node device broadcast query of the first verifying node device and enterprise to be checked;If enterprise to be checked is agreed to Third party enterprise or mechanism obtain its invoice data, then node device sends inquiry response and ask after receiving inquiry request It asks to the first verifying node device;After first verifying node device receives inquiry request and the request of corresponding inquiry response, The identification information of the corresponding node device of public key and enterprise to be checked of itself is returned to third node device, third node is set It is standby according to the identification information of first node equipment is searched in block chain with the identification information of each block data, acquisition with it is to be checked The relevant block data of the corresponding node device of enterprise is ask, and is carried out according to block body information of the public key of acquisition to block data Decryption obtains the relevant invoice data of corresponding to enterprise to be checked node device, that is, obtains the invoice data of enterprise to be checked. Invoice data is stored according to block chain technology, realizes that each node can directly acquire invoice data in block chain, effectively simplify The process of invoice data is obtained, saves the communication resource, while may insure the safety and traceability of invoice data.
In one embodiment, as shown in figure 4, a kind of invoice data sharing method based on block chain is provided, with this Method Ying Yu is based on the first verifying node device in the invoice data shared system of block chain, comprising the following steps:
Step S310: the seller invoice data storage request and second node equipment hair that first node equipment is sent are received The buyer invoice data storage request sent;Wherein, seller invoice data storage request is by first node equipment according to first node The private key of equipment and invoice data to be stored generate;Buyer invoice data storage request is by second node equipment according to the second section The private key of point device and invoice data to be stored generate;
Step S320: acquisition first is decrypted to seller invoice data storage request according to the public key of first node equipment Invoice data is decrypted buyer invoice data storage request according to the public key of second node equipment and obtains the second invoice number According to;
Step S330: if the first invoice data matches with the second invoice data, according to the first invoice data or second Invoice data generates block data, and block data is written in block chain.
In the present embodiment, the first verifying node device receives seller invoice data storage request and buyer invoice data After storage request, seller invoice data is stored respectively according to the public key of first node equipment and the public key of second node equipment Request and buyer invoice request of data are decrypted, and the first invoice data and the second invoice data are obtained, described first When invoice data and second invoice data match, the first verifying node device is according to first invoice data or described Second invoice data generates block data, and the block data is written in block chain, and realization will invoice data be stored It is saved in block chain.
Specifically, invoice data generally includes invoice type, invoice codes, purchaser's company information, seller enterprise letter Multiple data fields such as breath, Amount in Total;First invoice data matches when matching with the second invoice data can refer to first Each data field in invoice data is equal to each other with each data field in the second invoice data.By to first node The invoice data that equipment and second node equipment issue is verified, effectively avoid the invoice data error of write-in block chain with And the false invoice data of personal forgery is prevented, improve the validity and reliability of invoice data in block chain.
The above-mentioned invoice data sharing method based on block chain passes through the node device of purchaser enterprise and seller Node device initiates buyer invoice data storage request according to same invoice data to be stored respectively and seller invoice data is deposited Storage request, sell, the invoice data in buyer invoice data storage request by first verifying node device matching verifying after, First verifying node device generates block data according to invoice data to be stored and stores into block chain, realizes distributed note It carries, each enterprise corresponds to a node in block chain, and shared account book is realized between node, effectively invoice data is avoided to be usurped Change, improves safety, authenticity and the reliability of invoice data.
In one embodiment, block data includes header information and block body information;According to the first invoice data or Second invoice data generates the step of block data, comprising: obtains the first identifier information and the second section of first node equipment The second identifier information of point device;The identification information of block data is generated according to first identifier information and second identifier information; Header information is generated according to identification information and the identification information of a upper block data, according to the private key of the first verifying node device It treats the first invoice data or the second invoice data carries out encryption generation area block information;Believed according to header information and block body Breath generates block data.
In the present embodiment, identification information is the unique identification number for being used to indicate corresponding node equipment, can be the node Public key, IP address, duty paragraph of corresponding enterprise of equipment etc..Block data generally includes header information and block body information;Head The identification information of identification information and a upper block in portion's information including this block data, so that multiple block datas form chain Item constitutes block chain;Wherein, identification information is to be believed by the first verifying node device according to first identifier information and second identifier What breath generated, in subsequent progress invoice data inquiry, the node device for initiating inquiry request can be according to enterprise pair to be checked The identification information for the node device answered searches the header data of each block data in block chain, to obtain and enterprise to be checked The corresponding invoice data of industry can effectively simplify the process of inquiry invoice data, save the communication resource;And block body information is by One verifying node device treats storage invoice data according to private key and carries out encryption generation, encrypts to invoice data, although Each node device on block chain can read encryption invoice data, but can not know in specific invoice data Hold, avoids the leakage of invoice data.
In one embodiment, block data is written to before the step in block chain, comprising: believed according to first identifier The private key of breath, second identifier information and the first verifying node device generates the corresponding signing messages of block data;By block counts According to the step being written in block chain, comprising: signing messages is sent to the second verifying node device, wherein signing messages is used Node device is verified in instruction second, and signature authentication is carried out to signing messages;If signature authentication passes through, block data is written to In block chain.
The present embodiment is realized before block data write-in block chain, verifies node device to newly-generated block by second Data carry out secondary verifying, carry out re-authentication by the private key of identification information and the first verifying equipment to node device, It realizes that the business account generated to invoice data, verifying equipment carry out authentication, illegal node device is avoided to generate block Data are further ensured that the safety of block chain and invoice data.
In one embodiment, method further include: obtain the inquiry request and the first verifying that third node device is sent The inquiry response request that node device is sent;Wherein, inquiry response request includes the first identifier letter of the first verifying node device Breath;The public key and first identifier information for sending the first verifying node device according to inquiry request and inquiry response request are to the Three node devices;First identifier information is used to indicate third node device and searches block data relevant to first node equipment, The public key of first verifying node device is used to indicate third node device and the block body information of block data is decrypted, and obtains Invoice data relevant to first node equipment.
The present embodiment realizes the process of third party enterprise or mechanism inquiry invoice data, is stored and is sent out according to block chain technology Ticket data realizes that each node can directly acquire invoice data in block chain, effectively simplifies the process for obtaining invoice data, section The about communication resource, while may insure the safety and traceability of invoice data.
It should be understood that although each step in the flow chart of Fig. 2 is successively shown according to the instruction of arrow, this A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 2 Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-steps It completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 5.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used for memory block data.The network interface of the computer equipment is used to pass through network with external terminal Connection communication.To realize a kind of invoice data sharing method side based on block chain when the computer program is executed by processor Method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (8)

1. a kind of invoice data shared system based on block chain, which is characterized in that the invoice data shared system include with The corresponding first node equipment of seller enterprise, second node equipment corresponding with purchaser enterprise and the first verifying node are set It is standby, in which:
The first node equipment, for generating the seller according to the private key of the first node equipment and invoice data to be stored Invoice data storage request, and seller invoice data storage request is sent to the first verifying node device;
The second node equipment, for generating buyer according to the private key of the second node equipment and invoice data to be stored Invoice data storage request, and the buyer invoice data storage request is sent to the first verifying node device;
The first verifying node device, for obtaining the seller invoice data storage request and the buyer invoice data Request;Seller invoice data storage request is decrypted according to the public key of the first node equipment and obtains the first invoice number According to, according to the public key of the second node equipment to buyer invoice data storage request be decrypted obtain the second invoice data;
When first invoice data and second invoice data match, according to first invoice data or described the Two invoice datas generate block data, and the block data is written in block chain.
2. system according to claim 1, which is characterized in that the first verifying node device is used for:
Obtain the first identifier information of the first node equipment and the second identifier information of the second node equipment;
The identification information of block data is generated according to the first identifier information and the second identifier information;
Header information is generated according to the identification information and the identification information of a upper block data, is saved according to first verifying The private key of point device carries out encryption generation area block information to first invoice data or second invoice data;
The block data is generated according to the header information and the block body information.
3. system according to claim 1, which is characterized in that further include the second verifying node device;
The first verifying node device is used for according to the first identifier information, the second identifier information and described first The private key for verifying node device generates the corresponding signing messages of the block data, and the signing messages is sent to described the In two verifying node devices;
The second verifying node device carries out signature authentication to the signing messages for obtaining the signing messages;
When the second verifying node device passes through the signature authentication of the signing messages, the first verifying node device The block data is written in block chain.
4. system according to claim 2, which is characterized in that further include third node device;
The third node device is set for sending inquiry request to the first node equipment and the first verifying node It is standby;
The first node equipment is also used to get the inquiry request, sends inquiry response request according to the inquiry request To the first verifying node device, wherein the inquiry response request includes that the first identifier of the first node equipment is believed Breath;
The first verifying node device is also used to obtain the inquiry request and inquiry response request, is looked into according to described It askes request and inquiry response request sends the public key and the first identifier information that described first verifies node device To the third node device;
The third node device is searched in block chain related to the first node equipment according to the first identifier information Block data, and according to it is described first verifying node device public key the block body information of block data is decrypted, obtain To invoice data relevant to the first node equipment.
5. a kind of invoice data sharing method based on block chain, which is characterized in that invoice data of the Ying Yu based on block chain is total It enjoys in system, which comprises
Receive the seller invoice data storage request that first node equipment is sent and the buyer invoice that second node equipment is sent Data storage request;Wherein, the seller invoice data storage request is by the first node equipment according to the first node The private key of equipment and invoice data to be stored generate;The buyer invoice data storage request is by the second node equipment root It is generated according to the private key of the second node equipment and invoice data to be stored;
Seller invoice data storage request is decrypted according to the public key of the first node equipment and obtains the first invoice data, Buyer invoice data storage request is decrypted according to the public key of the second node equipment and obtains the second invoice data;
If first invoice data matches with second invoice data, according to first invoice data or described Two invoice datas generate block data, and the block data is written in block chain.
6. according to the method described in claim 5, it is characterized in that, the block data includes header information and block body letter Breath;
Described the step of block data is generated according to first invoice data or second invoice data, comprising:
Obtain the first identifier information of the first node equipment and the second identifier information of the second node equipment;
The identification information of block data is generated according to the first identifier information and the second identifier information;
Header information is generated according to the identification information and the identification information of a upper block data, is saved according to first verifying The private key of point device carries out encryption generation area block information to first invoice data or second invoice data;
The block data is generated according to the header information and the block body information.
7. according to the method described in claim 6, it is characterized in that, the step block data being written in block chain Before rapid, comprising:
Institute is generated according to the private key of the first identifier information, the second identifier information and the first verifying node device State the corresponding signing messages of block data;
The step block data being written in block chain, comprising:
The signing messages is sent to the second verifying node device, wherein the signing messages is used to indicate described second and tests It demonstrate,proves node device and signature authentication is carried out to the signing messages;
If signature authentication passes through, the block data is written in block chain.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
Obtain the inquiry request that third node device is sent and the inquiry response request that the first verifying node device is sent; Wherein, the inquiry response request includes the first identifier information of the first verifying node device;
Public key and the institute of the first verifying node device are sent according to the inquiry request and inquiry response request First identifier information is stated to the third node device;The first identifier information is used to indicate the third node device and searches The public key of block data relevant to the first node equipment, the first verifying node device is used to indicate the third section The block body information of block data is decrypted in point device, obtains invoice data relevant to the first node equipment.
CN201811087272.4A 2018-09-18 2018-09-18 Invoice data shared system and method based on block chain Pending CN109359485A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811087272.4A CN109359485A (en) 2018-09-18 2018-09-18 Invoice data shared system and method based on block chain
PCT/CN2018/124901 WO2020057002A1 (en) 2018-09-18 2018-12-28 Invoice data sharing system and method based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811087272.4A CN109359485A (en) 2018-09-18 2018-09-18 Invoice data shared system and method based on block chain

Publications (1)

Publication Number Publication Date
CN109359485A true CN109359485A (en) 2019-02-19

Family

ID=65351195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811087272.4A Pending CN109359485A (en) 2018-09-18 2018-09-18 Invoice data shared system and method based on block chain

Country Status (2)

Country Link
CN (1) CN109359485A (en)
WO (1) WO2020057002A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245187A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 A kind of list type queries method and node based on block chain
CN110349322A (en) * 2019-07-17 2019-10-18 安徽航天信息有限公司 A kind of invoice data verification method, device and equipment
CN110598457A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Bill processing method, device, processing equipment and computer storage medium
CN110598479A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN111858769A (en) * 2020-07-28 2020-10-30 北京金山云网络技术有限公司 Data using method, device, node equipment and storage medium
CN112465575A (en) * 2019-09-09 2021-03-09 辽宁政税科技有限公司 Invoice management system and method based on block chain technology
CN112714095A (en) * 2019-10-25 2021-04-27 航天信息股份有限公司 Invoice management method and device based on block chain and computer equipment
CN113377869A (en) * 2021-06-18 2021-09-10 成都金融梦工场投资管理有限公司 Block chain shared information balanced storage method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160342989A1 (en) * 2015-05-21 2016-11-24 Mastercard International Incorporated Method and system for processing blockchain-based transactions on existing payment networks
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN106952094A (en) * 2017-03-10 2017-07-14 腾讯科技(深圳)有限公司 Electronic bill management method and device
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
TW201801009A (en) * 2016-06-30 2018-01-01 神通資訊科技股份有限公司 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240001B (en) * 2017-06-06 2020-12-04 北京汇通金财信息科技有限公司 Transaction method and system for digital assets
CN107451874A (en) * 2017-07-27 2017-12-08 武汉天喻信息产业股份有限公司 Electronic invoice integrated conduct method and system based on block chain
CN108389085A (en) * 2018-01-03 2018-08-10 浪潮软件集团有限公司 Invoice management method, device and system
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160342989A1 (en) * 2015-05-21 2016-11-24 Mastercard International Incorporated Method and system for processing blockchain-based transactions on existing payment networks
TW201801009A (en) * 2016-06-30 2018-01-01 神通資訊科技股份有限公司 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery
CN106952094A (en) * 2017-03-10 2017-07-14 腾讯科技(深圳)有限公司 Electronic bill management method and device
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李哲: "基于区块链的电子发票云平台构建研究", 中国优秀硕士学位论文全文数据库 经济与管理科学辑, pages 53 - 68 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245187A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 A kind of list type queries method and node based on block chain
CN110349322A (en) * 2019-07-17 2019-10-18 安徽航天信息有限公司 A kind of invoice data verification method, device and equipment
CN112465575A (en) * 2019-09-09 2021-03-09 辽宁政税科技有限公司 Invoice management system and method based on block chain technology
CN110598479A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN110598457A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Bill processing method, device, processing equipment and computer storage medium
CN110598457B (en) * 2019-09-24 2023-11-24 腾讯科技(深圳)有限公司 Bill processing method, bill processing device, bill processing equipment and computer storage medium
CN112714095A (en) * 2019-10-25 2021-04-27 航天信息股份有限公司 Invoice management method and device based on block chain and computer equipment
CN111858769A (en) * 2020-07-28 2020-10-30 北京金山云网络技术有限公司 Data using method, device, node equipment and storage medium
CN111858769B (en) * 2020-07-28 2024-05-03 北京金山云网络技术有限公司 Data use method, device, node equipment and storage medium
CN113377869A (en) * 2021-06-18 2021-09-10 成都金融梦工场投资管理有限公司 Block chain shared information balanced storage method
CN113377869B (en) * 2021-06-18 2023-04-28 成都金融梦工场投资管理有限公司 Block chain sharing information balanced storage method

Also Published As

Publication number Publication date
WO2020057002A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
CN109359485A (en) Invoice data shared system and method based on block chain
TWI723658B (en) Methods and devices for protecting sensitive data of transaction activity based on smart contract in blockchain
US11190358B2 (en) Hash-based data verification system
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN110599137B (en) Electronic bill data processing method and device and computer equipment
US11949791B2 (en) Hash contract generation and verification system
CN110365670A (en) Blacklist sharing method, device, computer equipment and storage medium
WO2019136959A1 (en) Data processing method and device, computer device and storage medium
CN108776936A (en) Settlement of insurance claim method, apparatus, computer equipment and storage medium
CN108830733A (en) A kind of information processing method, block scm cluster and system
CN109242467A (en) Network-building method, device, computer equipment and storage medium based on block chain
US20200242313A1 (en) Method for rfid tag authentication
WO2019119541A1 (en) Method and system for transferring rights and ownership of merchandise on basis of blockchain
EP3933624B1 (en) Blockchain-based identity verification method and related hardware
CN110489393A (en) Promise breaking information query method, device, computer equipment and storage medium
CN110378755A (en) Electronic invoice generation method, device, computer equipment and storage medium
CN112231284A (en) Block chain-based big data sharing system, method, device and storage medium
US11663595B1 (en) Blockchain transactional identity verification
CN109587154A (en) Digital identity verification method, device, computer equipment and storage medium
CN113015991A (en) Secure digital wallet processing system
CN111460457A (en) Real estate property registration supervision method, device, electronic equipment and storage medium
CN114666168B (en) Decentralized identity certificate verification method and device, and electronic equipment
CN110223159A (en) Credit data query method, apparatus, computer equipment and storage medium
CN110442654A (en) Promise breaking information query method, device, computer equipment and storage medium
CN113505398A (en) Method, system, electronic device and storage medium for safely sharing industrial big data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190219