CN110400188B - Electronic bill generating method, electronic bill generating device, storage medium and computer equipment - Google Patents

Electronic bill generating method, electronic bill generating device, storage medium and computer equipment Download PDF

Info

Publication number
CN110400188B
CN110400188B CN201910689619.0A CN201910689619A CN110400188B CN 110400188 B CN110400188 B CN 110400188B CN 201910689619 A CN201910689619 A CN 201910689619A CN 110400188 B CN110400188 B CN 110400188B
Authority
CN
China
Prior art keywords
bill
electronic
electronic bill
identification
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910689619.0A
Other languages
Chinese (zh)
Other versions
CN110400188A (en
Inventor
蔡弋戈
秦青
戴传兵
张建俊
郑罗海
卢吉光
王宗友
屠海涛
周开班
蓝虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhishuilian Technology Co ltd
Original Assignee
Shenzhen Zhishuilian 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 Shenzhen Zhishuilian Technology Co ltd filed Critical Shenzhen Zhishuilian Technology Co ltd
Priority to CN201910689619.0A priority Critical patent/CN110400188B/en
Publication of CN110400188A publication Critical patent/CN110400188A/en
Application granted granted Critical
Publication of CN110400188B publication Critical patent/CN110400188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • G06F21/6272Protecting 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 by registering files or documents with a third party
    • 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
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Landscapes

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

Abstract

The application relates to an electronic bill generating method, which comprises the following steps: acquiring a receiver identifier and a resource transfer share; acquiring an electronic bill identifier which is associated with the current invoicing party identifier and is in an unused state; inquiring an electronic bill making condition corresponding to the invoicing party identifier from a block chain node in a block chain network; generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share; uploading the bill information to a block chain node; the bill information is used for indicating the block chain link points to generate electronic bill making inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill making inquiry codes according to the bill information, and writing the electronic bills into the data block; receiving an electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill. The scheme that this application provided can reduce the cost of invoice issuing.

Description

Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
The present application is a divisional application entitled "electronic bill generating method, apparatus, storage medium, and computer device" filed by the chinese patent office on 16/08/2018 with application number 201810936830.3, the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of computer technologies, and in particular, to an electronic ticket generating method, an electronic ticket generating apparatus, a computer-readable storage medium, and a computer device.
Background
The invoice is a consumption certificate provided by a business or an individual for a consumer when selling goods, providing services or doing other business activities to the consumer. When a business or an individual sells goods, provides services or engages in other business activities to a consumer, the business or the individual should make an invoice and legally pay taxes according to the invoice.
The traditional invoicing mode is that enterprises or individuals generally purchase special tax control equipment, invoices can be made only through the special tax control equipment, and the purchase, maintenance and use of the tax control equipment generate cost and expense, so that the invoicing cost is high.
Disclosure of Invention
In view of the above, it is necessary to provide an electronic bill generating method, an electronic bill generating apparatus, a computer-readable storage medium, and a computer device, aiming at the technical problem that the traditional invoicing is expensive.
An electronic ticket generating method, comprising:
acquiring a receiver identifier and a resource transfer share;
acquiring an electronic bill identifier associated with a current invoicer identifier;
generating bill information according to the invoicing party identification, the electronic bill identification, the receiving party identification and the resource transfer share;
uploading the bill information to a block chain node; the uploaded bill information is used for indicating the block link points to generate electronic bill making inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill making inquiry codes according to the bill information, and writing the electronic bills into a data block;
and receiving the electronic bill billing inquiry code returned by the block chain node.
An electronic ticket generating apparatus comprising:
the acquisition module is used for acquiring the receiver identification and the resource transfer share;
the acquisition module is also used for acquiring an electronic bill identifier associated with the current invoicing party identifier;
the generating module is used for generating bill information according to the invoicing party identification, the electronic bill identification, the receiving party identification and the resource transfer share;
the uploading module is used for uploading the bill information to the block chain node; the uploaded bill information is used for indicating the block link points to generate electronic bill making inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill making inquiry codes according to the bill information, and writing the electronic bills into a data block;
and the receiving module is used for receiving the electronic bill billing inquiry code returned by the block chain node.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to execute the steps of the electronic ticket generating method.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the electronic ticket generating method.
The electronic bill generation method, the electronic bill generation device, the computer readable storage medium and the computer equipment generate the bill information according to the invoicing party identifier, the electronic bill identifier associated with the current invoicing party identifier, the receiver identifier and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete making of the invoice on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bills into the data blocks, so that the safety, reliability and reliability of the electronic bills can be guaranteed, and the authenticity of the electronic bill billing inquiry codes received by enterprises or individuals is further guaranteed.
Drawings
FIG. 1 is a diagram showing an application environment of an electronic ticket generating method according to an embodiment;
FIG. 2 is a schematic flow chart showing an electronic ticket generating method according to an embodiment;
FIG. 3 is a flowchart illustrating the steps of generating an electronic ticket billing inquiry code corresponding to the ticket information in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating the step of feeding back electronic ticket identifications in one embodiment;
FIG. 5 is a schematic diagram of the consensus algorithm in one embodiment;
FIG. 6 is a schematic flow chart showing an electronic ticket generating method in another embodiment;
FIG. 7 is a flowchart showing an electronic ticket generating method according to an embodiment;
fig. 8 is a flowchart showing an electronic ticket generating method in another embodiment;
FIG. 9 is a diagram of a deployment of a data processing system for electronic tickets in one embodiment;
FIG. 10 is a schematic diagram of a flow interface for a blockchain electronic invoice in one embodiment;
FIG. 11 is a schematic view of a flow interface for a blockchain electronic invoice in accordance with an alternative embodiment;
FIG. 12 is a schematic diagram of a flow interface for a blockchain electronic invoice in accordance with yet another embodiment;
FIG. 13 is a schematic view of a flow interface for a blockchain electronic invoice in accordance with yet another embodiment;
FIG. 14 is a block diagram showing the structure of an electronic ticket generating apparatus according to an embodiment;
fig. 15 is a block diagram showing the construction of an electronic ticket generating apparatus in another embodiment;
FIG. 16 is a block diagram showing the structure of an electronic ticket generating apparatus according to an embodiment;
fig. 17 is a block diagram showing the construction of an electronic ticket generating apparatus according to another embodiment;
FIG. 18 is a block diagram showing the construction of a computer device according to one embodiment;
fig. 19 is a block diagram showing a configuration of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a diagram of an application environment of the electronic ticket generating method in one embodiment. Referring to fig. 1, the electronic ticket generating method is applied to a data processing system regarding an electronic ticket. The data processing system related to the electronic bill comprises a billing party device 110 and a block chain network, wherein the block chain network comprises a plurality of block chain nodes, specifically comprising a block chain node corresponding to a tax office server, a billing party block link point 120 corresponding to a billing enterprise, a block link point corresponding to an electronic bill public server, a block chain node corresponding to a reimbursement enterprise and the like. And data can be transmitted between every two block chain nodes. The invoicer device 110 may be a terminal or a server. The invoicer device 110 and the invoicer blockchain node 120 are connected by a network. The terminal may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
As shown in fig. 2, in one embodiment, an electronic ticket generating method is provided. This embodiment is illustrated primarily by the method applied to the biller block link point 120 in FIG. 1 above. Referring to fig. 2, the electronic bill generating method specifically includes the following steps:
s202, receiving an invoicing request; the billing request carries bill information; the bill information includes an invoicing party identifier, an electronic bill identifier, a receiving party identifier and a resource transfer share.
The billing request is used for issuing an electronic bill, and the billing request carries bill information. The bill information is information used to generate an electronic bill, including an invoice issuer identification, an electronic bill identification, a receiver identification, and a resource transfer share. The electronic bill identification is used for uniquely identifying an electronic bill, and specifically can comprise a bill code and a bill number of the electronic bill. An electronic ticket is a ticket that is stored electronically, such as may be stored in a storage medium or computer device.
The invoicing party identifier is an identifier corresponding to the device initiating the invoicing request and is used for uniquely identifying the invoicing party. The invoicing party may be a selling enterprise, and the invoicing party needs to provide a consumption certificate, i.e. an electronic bill, for the consumer when selling goods, providing services or engaging in other business activities. The invoicing party identification can be specifically a name of a seller, a taxpayer identification number of the seller, an account number of the seller for opening an account, and the like.
The receiver identification is used for uniquely identifying the electronic bill receiver. The recipient may in particular be a consuming individual or a consuming enterprise. After the consuming person or the consuming enterprise consumes at the selling enterprise, the selling enterprise can provide the consuming person or the consuming enterprise with the consumption certificate, namely the electronic bill. The receiver identification may be a name of the purchaser, a taxpayer identification number of the purchaser, an account number of the purchaser, or the like. The resource transfer share is the specific share of the resource consumed by the consumer.
A blockchain node is a data processing node in a blockchain network. A blockchain network is a carrier and organization of the operation blockchain technology. The block chain technology, bt (block chain technology) for short, also called distributed book technology, is an internet database technology, and is characterized by decentralized and transparent disclosure, so that everyone can participate in data recording. The blockchain technology is a brand new distributed infrastructure and computing mode that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data.
In particular, the recipient identification and resource transfer share may be provided to the invoicer device after the individual or business is finished consuming. And the invoicing party equipment generates the bill information together according to the invoicing party identifier, the electronic bill identifier which is associated with the invoicing party identifier and is in an unused state, the receiver identifier and the resource transfer share. The invoicing side equipment can send invoicing requests carrying bill information to the block chain nodes. The block link point receives the billing request.
In one embodiment, the block link point where the invoicer device uploads data may be a block link node corresponding to the invoicer device. In other embodiments, the block link point where the invoicing side device uploads data may also correspond to a computer device in another authority role. The block chain node corresponding to the invoicing party device can be a block chain link point formed by the invoicing party device, and can also be a block chain link point formed by a third party agent device authorized by the invoicing party.
In one embodiment, the invoicer device signs the ticket information with a private key corresponding to the invoicer device, resulting in an invoiced signature on the ticket information. The billing request sent by the billing party device to the block chain node carries the billing signature and the bill information related to the bill information. And after receiving the invoicing request, the block chain node verifies the invoicing signature through a public key which is locally cached in the block chain node and corresponds to the invoicing party identifier, and when the verification is passed, the subsequent steps are continuously executed.
And S204, generating an electronic bill making inquiry code corresponding to the bill information.
The electronic bill billing inquiry code is used for inquiring the electronic bill and is only corresponding to the electronic bill. The electronic bill billing inquiry code can be specifically a character string, a two-dimensional code or a bar code and the like. Specifically, the block link points can perform hash operation on the bill information through a hash algorithm to obtain the electronic bill billing inquiry code. Examples of the Hash Algorithm include MD5(Message Digest Algorithm, fifth edition), SHA1(Secure Hash Algorithm), SHA2, and the like, and the embodiment is not limited in this respect.
In one embodiment, the block link points may encrypt the ticket information using an encryption algorithm to obtain a ticket ciphertext. And generating a corresponding electronic bill billing inquiry code according to the bill ciphertext. Among them, the encryption algorithm, such as symmetric encryption algorithm and asymmetric encryption algorithm, etc. A symmetric Encryption Algorithm, such as DES (Data Encryption Standard), AES (Advanced Encryption Standard), IDEA (International Data Encryption Algorithm), and the like. Asymmetric cryptographic algorithms, such as RSA (Rivest, Shamir, Adleman, cryptographic Algorithm), DSA (Digital Signature Algorithm), or ECC (Elliptic curve cryptography), etc.
In one embodiment, the blockchain node may extract the ticket information in the billing request, and perform a hash operation on the ticket information to obtain a hash value of the ticket information. Or, the block link point can also perform hash operation on the bill ciphertext to obtain a corresponding bill hash value.
In one embodiment, the blockchain node may directly use the ticket hash value as the electronic ticket billing inquiry code. In another embodiment, the block chain node generates the electronic bill billing inquiry code according to the hash value of the bill and the signature data including the private key signature of the billing party device.
In one embodiment, the authenticity of the electronic ticket issuing inquiry code is approved for both the issuing party and the block link point. Step S204, namely, the step of generating the electronic ticket issuing inquiry code corresponding to the ticket information specifically includes the following steps:
and S302, generating a bill hash value according to the bill information.
Specifically, the block link point may perform hash operation on the ticket information through a hash algorithm to obtain a ticket hash value.
S304, sending the hash value of the bill to the invoicer equipment corresponding to the invoicer identification; and the sent bill hash value is used for indicating the invoicing side equipment to sign the bill hash value to obtain signature data.
In particular, the blockchain node may send the ticket hash value to the invoicer device corresponding to the invoicer identification. And after receiving the ticket hash value, the invoicing side equipment signs the ticket hash value by using a local private key of the invoicing side equipment to obtain signature data, and the signature data is transmitted back to the block chain node.
In one embodiment, after receiving the ticket hash value, the invoicing device can perform hash operation on the ticket information by using the same hash algorithm to verify the authenticity of the ticket hash value sent by the blockchain node. And after the verification is passed, the local private key of the invoicing side equipment is adopted to sign the hash value of the bill to obtain signature data.
And S306, receiving the signature data returned by the invoicing party device.
And S308, when the signature data passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
Specifically, after receiving the signature data returned by the invoicing party device, the block chain node verifies the signature data through the public key corresponding to the invoicing party identifier locally cached at the block chain node. And after the signature data passes the verification, the block link point performs hash operation on the hash value of the bill and the signature data to generate an electronic bill billing inquiry code.
In one embodiment, after receiving the signature data returned by the invoicing side device, the block link point can transmit the signature data and the bill information to other block link nodes in the block link network, and after the block link nodes achieve consensus, the block link point generates the electronic bill invoicing query code according to the hash value of the bill and the signature data.
In the embodiment, the bill hash value is generated according to the bill information, and the bill billing inquiry code is generated through the signature data obtained by signing the bill hash value by the equipment of the billing party, so that the authenticity of the electronic bill billing inquiry code can be guaranteed to be approved by both the block chain node and the equipment of the billing party, and the authenticity of the electronic bill is further guaranteed.
And S206, generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information, and writing the electronic bill into the data block.
Wherein, the electronic bill is an electronically stored bill. A data block is a memory module in a block link point that is used to store data.
Specifically, after the block link points generate the electronic bill billing inquiry code, the bill information and the electronic bill billing inquiry code can be associated to generate the electronic bill. The block chain node may write the generated electronic ticket to the data block.
In one embodiment, the blockchain node can generate the electronic bill according to the bill information and associate the electronic bill with the electronic bill billing inquiry code, so that the electronic bill billing inquiry code can be regarded as an index of the electronic bill and used for searching the corresponding electronic bill.
In one embodiment, the blockchain node can generate the electronic bill according to the association between the bill information and the electronic bill billing inquiry code. Therefore, when the electronic bill inquiry code is used for inquiring, the bill information corresponding to the electronic bill inquiry code can be inquired.
In one embodiment, before generating the electronic bill billing inquiry code, the blockchain node sends corresponding bill information and the like to other blockchain nodes in the blockchain network, and after the blockchain nodes reach the consensus, the blockchain nodes generate the electronic bill billing inquiry code. At this point, the block chain node may write the electronic ticket directly to the data block as new blocks are generated. Therefore, after the bill information achieves consensus through the block chain network, the block chain node generates the electronic bill billing inquiry code according to the bill information, and authenticity and reliability of the electronic bill billing inquiry code can be guaranteed.
In one embodiment, the blockchain node may send the electronic ticket to other blockchain nodes in the blockchain network after generating the electronic ticket, and the blockchain nodes write the electronic ticket into the data block after reaching the consensus.
S208, responding to the billing request, and feeding back the billing inquiry code of the electronic bill; the electronic bill billing inquiry code is used for inquiring the electronic bill.
Specifically, the block link point responds to the invoicing request, and feeds back an electronic bill invoicing query code to the invoicing party equipment corresponding to the invoicing party identifier, wherein the electronic bill invoicing query code is used for querying an electronic bill. After the invoicing side equipment receives the electronic bill invoicing query code, the corresponding electronic bill invoicing query code can be fed back to the consumer.
In one embodiment, the block chain node point feeds back the electronic ticket issuing inquiry code and the feedback information indicating the success of issuing the ticket to the equipment of the corresponding issuing party of the issuing party identification in response to the issuing request. The feedback information indicating the successful invoicing may specifically be a feedback code indicating the successful invoicing, such as 0000 or 1111.
In one embodiment, after receiving the electronic bill billing query code fed back by the blockchain node, the invoicing party device can search the corresponding electronic bill from the blockchain node in the blockchain network according to the electronic bill billing query code. The invoicing side device can extract the bill information from the electronic bill and feed the bill information back to the consumer.
In one embodiment, the consumer may store the ticket information through an electronic ticket public server and log into the electronic ticket public server with the consumer identification to view the ticket information associated with the consumer identification.
In one embodiment, the electronic ticket written in the data block includes an encrypted ticket cryptogram. When the block chain link points are encrypted by the public key corresponding to the invoicing party equipment, the invoicing party equipment can correspondingly decrypt the electronic bills acquired from the block chain network according to the private key corresponding to the invoicing party equipment to acquire bill information.
In one embodiment, the electronic ticket written in the data block includes an encrypted ticket cryptogram. When the block chain node feeds back the electronic bill billing inquiry code to the billing party equipment, the corresponding decryption key can be fed back at the same time, so that the billing party equipment can decrypt the electronic bill according to the corresponding decryption key to obtain the bill information. Accordingly, the invoicing party device can transmit the corresponding decryption key and the electronic bill invoicing inquiry code to the consumer.
In one embodiment, the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identifier is an enterprise identifier.
The block chain electronic invoice is an electronic invoice processed based on a block chain technology. The blockchain electronic invoice number may specifically include an invoice code and an invoice number. The enterprise identifier is used for uniquely identifying an enterprise, and can be a unique identifier distributed to the enterprise by a tax bureau after the enterprise is registered by the tax bureau.
Specifically, after the paper invoice is electronized, before the electronic invoice is not issued, the concept of a blank invoice can be considered to be no longer existed. Then, the billing enterprise claims the block chain electronic invoice number capable of issuing the invoice in the tax bureau, and uploads the billing party identifier, the block chain electronic invoice number, the receiver identifier and the resource transfer share to the block chain node to generate the block chain electronic invoice when the block chain electronic invoice needs to be issued.
The electronic bill generation method receives the billing request carrying the bill information through the block chain link points in the block chain network, wherein the bill information comprises a billing party identifier, an electronic bill identifier, a receiver identifier and a resource transfer share. And the block chain link points generate corresponding electronic bill billing inquiry codes according to the bill information, generate electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and write the electronic bills into the data block. And returning the electronic bill issuing inquiry code for inquiring the electronic bill so as to complete issuing the invoice on the block link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
In one embodiment, the electronic ticket generating method further includes a step of feeding back an electronic ticket identifier, and the step specifically includes:
s402, receiving an electronic bill identification receiving request; the electronic bill identification receiving request carries an identification of the invoicer.
Wherein the electronic bill identification reception request is used for obtaining available electronic bill identification. Specifically, when the invoicing party needs to make an invoice, the block chain node may obtain an electronic bill receiving request triggered by the invoicing party equipment, where the electronic bill receiving request carries an identifier of the invoicing party.
S404, determining the electronic bill identification which is associated with the invoicer identification and is in an unused state in the blockchain node.
Specifically, when the block chain node receives an electronic bill identification receiving request, the invoicing party identification can be extracted from the electronic bill identification receiving request, and the electronic bill identification which is associated with the invoicing party identification and is in an unused state is searched in the block chain network.
In one embodiment, the blockchain node may store the electronic ticket identification belonging to the invoicer in association with the invoicer identification in the data block. When the block chain node receives an electronic bill identification receiving request initiated by the invoicing side equipment, the electronic bill identification related to the requester identification is searched in the data block. The blockchain node may sift out electronic ticket identifications in an unused state from the electronic ticket identifications associated with the invoicer identifications.
In one embodiment, after the blockchain node feeds back the electronic bill identifier in the unused state to the billing enterprise, the blockchain node can mark the bill state of the electronic bill identifier as the used state.
And S406, responding to the electronic bill identification receiving request, and feeding back the determined electronic bill identification.
Specifically, the block link point feeds back the determined electronic ticket identifier associated with the invoicer identifier and in an unused state to the invoicer device in response to the electronic ticket identifier receiving request.
In one embodiment, after the invoicing party device acquires the electronic bill identifier which is associated with the invoicing party identifier and is in an unused state, the invoicing party device generates bill information according to the acquired receiver identifier and the resource transfer share. And the invoicing side equipment sends an invoicing request carrying bill information to the block chain link points.
In the above embodiment, the request for receiving the electronic ticket identifier carrying the invoicing party identifier is received, and in response to the request, the electronic ticket identifier which is associated with the invoicing party identifier and is in an unused state is fed back. The electronic bill identification which is associated with the bill making party identification and is in an unused state can be acquired from the block link point by the bill making party, so that a bill making enterprise does not need to apply a blank invoice in advance. Therefore, the invoice issuing efficiency is greatly improved, and the invoice issuing cost is reduced.
In one embodiment, the electronic ticket generating method further includes a step of verifying the issuing condition of the electronic ticket, and the step specifically includes: inquiring the electronic bill making conditions corresponding to the bill maker identification from the block chain nodes; and verifying the legality of the bill information according to the electronic bill issuing condition. Step S308, namely, after the signature data passes the verification, the step of generating the electronic bill billing inquiry code according to the hash value of the bill and the signature data comprises the following steps: and when the signature data passes the verification and the bill information passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
The electronic bill issuing condition is a constraint condition for limiting the electronic bill issuing according to the electronic bill issuing control cycle. The electronic bill making condition can also be called electronic bill making intelligent contract. The electronic ticket issuing control cycle is a time length for controlling electronic ticket issuing data, such as one or more of a natural day, a natural week, a natural month, or a natural year. And controlling the billing data of the electronic bill, such as controlling the billing quantity of the electronic bill or the billing amount of a single electronic bill. For example, the electronic bill issuing conditions are specifically as follows: the amount of invoices of an enterprise A (an invoicing party) capable of opening value-added tax electronic bill in a natural month is 300, and the maximum invoicing amount of a single electronic bill is one thousand yuan.
In one embodiment, the electronic bill making conditions corresponding to the invoicer identifications are set by the electronic bill management server in a user-defined mode according to the invoicer feature data corresponding to the invoicer identifications, and are uploaded to the block chain network so that each block chain link point can be inquired and used when needed. The characteristic data of the invoicers comprises basic data of the invoicers and/or behavior data of the invoicers. The invoicer basic data is data reflecting the basic characteristics of the invoicer. The invoicer behavior data is data reflecting the invoicer behavior characteristics.
For example, when the invoicer identifies the identified invoicer as an enterprise user, the invoicer base data is such as: business name, business type or business scope, etc. Biller behavior data such as: enterprise billing data, enterprise ticketing data, enterprise tax payment data, and the like.
It is understood that the electronic ticket issuing condition set corresponding to the invoicer identification is updatable. The invoicing party can register with the real name through the electronic bill management server, and after the registration is completed, the electronic bill management server can set the electronic bill making conditions corresponding to the invoicing party identification for the first time according to the basic data of the invoicing party in the registration data. For example, the billing enterprise can issue 300 electronic invoices of value-added tax every month. And then, the electronic bill management server can automatically update the electronic bill making conditions corresponding to the invoicer identification according to the updated basic data and/or the invoicer behavior data, and can also respond to a request initiated by the invoicer identification to update the electronic bill making conditions corresponding to the invoicer identification.
In one embodiment, the block link point extracts the billing information in the billing request after receiving the billing request. The blockchain node may query the electronic ticket issuing conditions corresponding to the invoicer identification in the blockchain network. And verifying the legality of the bill information by the block chain node according to the inquired electronic bill making condition. For example, it is verified whether the number of invoices by an invoicing party in the electronic bill issuing control period conforms to the electronic bill issuing condition or not, or whether the invoicing amount of a single electronic bill conforms to the electronic bill issuing condition or not, and the like.
When the bill information conforms to the electronic bill making condition and the signature data is verified to be really sent by the bill making equipment, the block chain node can transmit the bill information and the signature data to other block chain nodes in the block chain network to finish consensus. After the block chain nodes achieve consensus, namely when the signature data passes verification and the bill information passes verification, the block chain nodes generate the electronic bill billing inquiry code according to the hash value of the bill and the signature data.
Common consensus algorithms in the blockchain network include POW (Proof of Work), POS (Proof of interest), DPOS (guaranteed Proof of interest), PBFT (Practical Byzantine Fault-tolerant algorithm), and the like.
The consensus algorithm employed in one particular embodiment is specifically a consensus algorithm (Bft-Raft) based on a consensus algorithm (e.g., Raft) and a Byzantine fault-tolerant algorithm (e.g., Bft). Of course, other consensus algorithms may be adopted in other embodiments of the present invention, and the embodiments of the present invention are not limited herein.
For example, FIG. 5 shows a schematic diagram of the consensus algorithm in one embodiment. Referring to fig. 5, a Client (Client, specifically, may be a blockchain electronic invoice application platform as shown in fig. 9) initiates a consensus Request (Request) and sends the consensus Request to a blockchain node (master node Leader a) in a Leader state. And the block chain nodes in the leader state are obtained by jointly electing each block chain link point in the block chain network. Continuing to enter an application Entity stage, broadcasting the consensus content (or intermediate data obtained after processing the consensus content) corresponding to the consensus request to other blockchain nodes (following nodes, namely, Follower B, Follower C and Follower D …) which are not in a Leader state in the blockchain network by the Leader A; and continuing to enter an application Response stage, broadcasting the received consensus content to other blockchain nodes by each slave node, entering a Commit stage when the consensus contents broadcast by the other blockchain nodes with the preset number (2f +1) are consistent, and feeding back the confirmation result to the master node by each slave node. And when the master node receives the feedback confirmation of other block link points with the preset number (2f +1), judging that the consensus is completed and feeding back (Reply) the result of the completion of the consensus to the Client. Wherein, 3f +1 is not more than N, N is the number of the block chain nodes in the block chain network. f is the number of bad blockchain nodes in the blockchain network.
In the above embodiment, the validity of the ticket information is verified through the electronic ticket issuing condition, and when the signature data passes the verification and the ticket information passes the verification, the electronic ticket issuing inquiry code is generated according to the hash value of the ticket and the signature data, so that the validity of the generated electronic ticket can be guaranteed.
In one embodiment, the electronic ticket generating method further includes a step of encrypting ticket information, and the step specifically includes: generating a bill symmetric key corresponding to the bill information; encrypting the bill information through the bill symmetric key to obtain a bill ciphertext; acquiring a public key of the invoicing party corresponding to the identifier of the invoicing party; and encrypting the bill symmetric key through the public key of the invoicing party to obtain a first bill symmetric key ciphertext. The step of producing the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information specifically comprises the following steps: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing inquiry code.
The ticket symmetric key is a key of the electronic ticket and is a symmetric key. And encrypting the bill information by using the bill symmetric key to obtain a bill ciphertext, and decrypting the bill ciphertext by using the bill symmetric key to obtain the bill information.
The invoicer public key is the public key of the key pair associated with the invoicer identification. The invoicing party device can generate a key pair corresponding to the invoicing party identifier, wherein the key pair comprises an invoicing party public key and an invoicing party private key. The invoicing party device can automatically store the private key of the invoicing party and disclose the public key of the invoicing party. The blockchain node may cache the invoicer public key corresponding to the invoicer identification. It will be appreciated that the data is encrypted by the biller public key and decrypted by the corresponding biller private key. Similarly, the data is encrypted by the private key of the invoicer and can be decrypted by the corresponding public key of the invoicer.
Specifically, after acquiring the ticket information, the blockchain node may randomly generate a ticket symmetric key corresponding to the ticket information. And encrypting the bill information through the bill symmetric key to obtain a bill ciphertext. And searching the public key of the invoicing party corresponding to the identifier of the invoicing party. And the block chain node encrypts the bill symmetric key through the public key of the bill issuer to obtain a first bill symmetric key ciphertext.
Furthermore, the block chain node can correlate the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing inquiry code to generate an electronic bill, and then write the electronic bill into the data block.
In the above implementation, when the electronic ticket stored in the blockchain network is encrypted data. When the invoicing party receives the electronic bill invoicing inquiry code fed back by the block chain point, the electronic bill corresponding to the electronic bill invoicing inquiry code can be searched from the block chain network. And decrypting the ciphertext of the bill by using the private key of the invoicing party corresponding to the identifier of the invoicing party to obtain the symmetric key of the bill, and decrypting the ciphertext of the bill by using the symmetric key of the bill to obtain the information of the bill in the plaintext.
In the above embodiment, the ticket information is encrypted in a symmetric encryption manner to obtain a ticket ciphertext, and the ticket symmetric key is encrypted by the public key of the invoker corresponding to the identifier of the invoker to obtain a first ticket symmetric key ciphertext. The electronic bill is generated according to the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing query code, so that only the billing party with the billing party private key can obtain the plaintext data of the electronic bill, and the data security of the electronic bill is guaranteed.
In one embodiment, the electronic ticket generating method further includes a step of encrypting through a consumer public key, and the step specifically includes: acquiring a consumer identifier corresponding to the bill information; searching a consumer public key corresponding to the consumer identification; and encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext. The step of generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information specifically comprises the following steps: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code.
Wherein the consumer identification is used to uniquely identify the consumer. The consumer identification may specifically be a user name and password, a certificate number of the consumer, or a registration code of the consumer, etc. The consumer public key is the public key of the key pair associated with the consumer identification. The consumer can log in the electronic bill public server through the registered consumer identification, and a key pair corresponding to the consumer identification is generated through the electronic bill public server and comprises a consumer public key and a consumer private key. The public server of the electronic bill can help the consumer to store the private key of the consumer and disclose the public key of the consumer. The blockchain node may cache a consumer public key corresponding to the consumer identification. It will be appreciated that data encrypted by a consumer public key may be decrypted by a corresponding consumer private key. Likewise, data encrypted by a consumer private key may be decrypted by a corresponding consumer public key.
In one embodiment, the ticket information further includes a customer identification. And the block chain node can search the public key of the invoicer corresponding to the identifier of the invoicer from the locally cached secret key according to the identifier of the consumer. And the block chain node encrypts the bill symmetric key through the public key of the bill issuer to obtain a second bill symmetric key ciphertext.
Furthermore, the block chain node can correlate the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code to generate an electronic bill, and then write the electronic bill into the data block.
In one embodiment, no customer identification is included in the ticket information. The block chain node feeds back the electronic bill billing inquiry code to the billing party equipment, and the billing party equipment transmits the electronic bill billing inquiry code and the ownership of the electronic bill to the consumer. The consumer can temporarily store the delivered electronic bill to the electronic bill public server. And the electronic bill public server acquires the consumer identification and uploads the consumer identification to the block chain node. And obtaining the consumer identification by the block chain link points, searching the consumer public key corresponding to the consumer identification, and encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext. And updating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code.
In the above embodiment, the electronic ticket includes the first ticket symmetric key ciphertext encrypted by the public key of the invoicing party and the second ticket symmetric key ciphertext encrypted by the public key of the consumer, so that both the invoicing party and the consumer can decrypt the electronic ticket by their respective private keys to obtain the electronic ticket plaintext, that is, the ticket information.
In the above embodiment, the ticket symmetric key is encrypted by the consumer public key corresponding to the consumer identifier, so as to obtain the second ticket symmetric key ciphertext. The electronic bill is generated according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing query code, so that only the billing party with the private key of the billing party and the consumer with the public key of the consumer can obtain the plaintext data of the electronic bill, and the data security of the electronic bill is guaranteed.
In a specific embodiment, the electronic ticket generating method specifically includes the following steps:
s602, receiving an electronic bill identifier receiving request; the electronic bill identification receiving request carries an identification of the invoicer.
S604, determining the electronic bill identification which is associated with the invoicer identification and is in an unused state in the block chain node.
And S606, responding to the electronic bill identifier receiving request, and feeding back the determined electronic bill identifier.
S608, receiving a billing request; the billing request carries bill information; the ticket information comprises an invoicer identification, an electronic ticket identification which is associated with the invoicer identification and is in an unused state, a receiver identification and a resource transfer share.
S610, inquiring the electronic bill making condition corresponding to the invoicing party identification from the block chain node.
And S612, verifying the legality of the bill information according to the electronic bill issuing condition.
And S614, generating the bill hash value according to the bill information.
S616, sending the hash value of the bill to the invoicing party device corresponding to the invoicing party identifier; and the sent bill hash value is used for indicating the invoicing side equipment to sign the bill hash value to obtain signature data.
And S618, receiving the signature data returned by the invoicing side device.
And S620, when the signature data pass the verification and the bill information passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
S622, a ticket symmetric key corresponding to the ticket information is generated.
And S624, encrypting the bill information through the bill symmetric key to obtain a bill ciphertext.
And S626, acquiring the public key of the invoicer corresponding to the identifier of the invoicer.
And S628, encrypting the bill symmetric key through the public key of the invoicing party to obtain a first bill symmetric key ciphertext.
S630, acquiring the consumer identification corresponding to the bill information.
S632, finding the public key of the consumer corresponding to the consumer identification.
And S634, encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext.
And S636, generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code, and writing the electronic bill into the data block.
S638, responding to the billing request, feeding back the electronic bill billing inquiry code; the electronic bill billing inquiry code is used for inquiring the electronic bill.
The electronic bill generation method receives the billing request carrying the bill information through the block chain link points in the block chain network, wherein the bill information comprises a billing party identifier, an electronic bill identifier, a receiver identifier and a resource transfer share. And the block chain link points generate corresponding electronic bill billing inquiry codes according to the bill information, generate electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and write the electronic bills into the data block. And returning the electronic bill issuing inquiry code for inquiring the electronic bill so as to complete issuing the invoice on the block link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
Fig. 6 is a flowchart illustrating an electronic ticket generating method according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 7, in one embodiment, an electronic ticket generating method is provided. The present embodiment is mainly illustrated by applying the method to the invoicing apparatus 110 in fig. 1. Referring to fig. 7, the electronic ticket generating method specifically includes the following steps:
s702, acquiring the receiver identification and the resource transfer share.
The receiver identification is used for uniquely identifying the electronic bill receiver. The recipient may in particular be a consuming individual or a consuming enterprise. After the consuming person or the consuming enterprise consumes at the selling enterprise, the selling enterprise can provide the consuming person or the consuming enterprise with the consumption certificate, namely the electronic bill. The receiver identification may be a name of the purchaser, a taxpayer identification number of the purchaser, an account number of the purchaser, or the like. The resource transfer share is the specific share of the resource consumed by the consumer.
In one embodiment, the invoicing party device can display the bill information input interface and obtain the receiver identification and the resource transfer share input into the bill information input interface. Or the invoicing party can display the bill information input interface on the terminal, and the terminal where the invoicing party is located can send the receiver identification and the resource transfer share in the bill information input interface to the invoicing party equipment.
In one embodiment, after a consumer consumes through a payment application, a server corresponding to the payment application may upload transaction information to the blockchain network. The billing device can directly acquire the receiver identification and the resource transfer share corresponding to the consumer identification from the blockchain network. The transaction information is related information of resource transfer between the consumer (or consumer enterprise) and the sales enterprise, such as details, amount, time, location, consumer identification, sales enterprise identification, and the like of the item to be transacted.
S704, acquiring the electronic bill identification associated with the current invoicer identification.
Specifically, the billing enterprise may obtain the electronic ticket identification associated with the current biller identification from a block link point.
In one embodiment, the biller device sends an electronic ticket identification acceptance request to the block link point; the request for receiving the electronic bill identification carries an identification of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicing party identification and is in an unused state; and receiving the electronic bill identification fed back by the block chain node.
Specifically, when the invoicing party needs to make an invoice, an electronic bill identification receiving request carrying the invoicing party identification can be sent to the block chain nodes. And the block chain node searches the electronic bill identification which is associated with the invoicing party identification and is in an unused state in the block chain network, and feeds back the determined electronic bill identification which is associated with the invoicing party identification and is in the unused state to the invoicing party equipment.
In one embodiment, when the electronic ticket identifications associated with the invoicer identifications in the blockchain node are all marked as used states, the electronic ticket generation method further includes a step of claiming the electronic ticket identifications, which specifically includes: receiving feedback information fed back by the block chain link points, wherein the feedback information indicates that electronic bill identifications which are related to the invoicer identifications and are in an unused state are not inquired; responding to the feedback information, and initiating an electronic bill identification claiming request to an electronic bill management server; the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
The electronic bill management server is a server for managing the circulation process of the electronic bill, such as a server provided by a tax bureau. The electronic bill identification claiming request is used for applying for claiming available electronic bill identifications from the electronic bill management server. Before claiming the electronic bill identification from the electronic bill management server, the invoicing party needs to register the electronic bill circulation management server successfully.
The electronic bill claim condition is a constraint condition for limiting the electronic bill claim according to the electronic bill making control period. The electronic bill billing control period is a time length for controlling the electronic bill billing data, such as one or more of natural days, natural weeks, natural months, or natural years. And controlling the billing data of the electronic bill, such as controlling the billing quantity of the electronic bill or the billing amount of a single electronic bill.
Specifically, when the invoicing side device sends an electronic bill identifier receiving request to the block link point, and the block link point does not search the electronic bill identifier which is associated with the invoicing side identifier and is in an unused state in the block link network, the block link node feeds back corresponding feedback information to the invoicing side device. And the invoicing side equipment responds to the feedback information and initiates an electronic bill identification claiming request to the electronic bill management server. And the electronic bill management server distributes unused electronic bill identification for the invoicers according to the electronic bill claim condition, and uploads the distributed electronic bill identification and the invoicer identification to the block chain node in a correlation manner.
In the above embodiment, when the block link point feeds back the feedback information of the electronic bill identifier associated with the invoicing party identifier and in an unused state, the block link point initiates an electronic bill identifier claiming request to the electronic bill management server. Therefore, unused electronic bill identification is distributed and linked up through the electronic bill management server, time consumption caused by manual application of paper bills by invoices is avoided, and bill application efficiency is improved. Moreover, the electronic bill identification and the invoicing party identification are linked up in a related mode, and the safety and reliability of the bill application data are guaranteed through the block chain.
S706, generating bill information according to the invoice party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
Specifically, the invoicing party device can associate an invoicing party identifier, an electronic bill identifier, a receiving party identifier and a resource transfer share, and generate bill information according to a preset bill format.
S708, uploading the bill information to a block chain node in a block chain network; and the uploaded bill information is used for indicating the block chain link points to generate electronic bill billing inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and writing the electronic bills into the data block.
Specifically, the billing enterprise may upload the ticket information to the blockchain node in the blockchain network. And generating an electronic bill billing inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill billing inquiry code according to the bill information, and writing the electronic bill into the data block. The step of generating the electronic bill billing inquiry code corresponding to the bill information by the block link point, generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information, and writing the electronic bill into the data block may refer to the specific implementation manner of the above steps S204 to S206.
In one embodiment, there may be an invoicer blockchain node in the blockchain network that corresponds to the invoicer device. When the invoicing side equipment intends to write data into the block chain network, the data can be directly transmitted to the invoicing side block chain link point through an interface provided by the corresponding invoicing side block chain link point, and the invoicing side block chain link point is identified with other block chain link points in the block chain node in a cooperation manner, and then the data is written into the data block.
In one embodiment, it is understood that the electronic ticket management server first uploads the electronic ticket id assigned to the invoicer device to the corresponding block link point, and the block link point cooperates with other block link nodes to achieve consensus, and then writes the electronic ticket id assigned to the invoicer device into the data block. And after the block link points cooperate with other block link nodes to achieve consensus and write the generated electronic bill into a data block, the block link points corresponding to the electronic bill management server form a block chain with the block link points corresponding to the invoicing side equipment.
It should be noted that the block chain link points corresponding to different invoicing party devices and the block chain link points corresponding to the electronic bill management server form different block chains, and the different block chains can operate independently without mutual influence.
S710, receiving an electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
Specifically, the block chain node feeds back an electronic bill billing inquiry code to the billing party device corresponding to the billing party identifier, and the electronic bill billing inquiry code is used for inquiring the electronic bill. After the invoicing side equipment receives the electronic bill invoicing query code, the corresponding electronic bill invoicing query code can be fed back to the consumer. Accordingly, the step of receiving the electronic bill billing inquiry code returned by the blockchain node may refer to the specific implementation of the step S208.
The electronic bill generating method generates bill information according to the invoice party identifier, the electronic bill identifier associated with the current invoice party identifier, the receiver identifier and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete invoice making on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bills into the data blocks, so that the safety, reliability and reliability of the electronic bills can be guaranteed, and the authenticity of the electronic bill billing inquiry codes received by enterprises or individuals is further guaranteed.
In one embodiment, step S706 specifically includes: inquiring the electronic bill making conditions corresponding to the invoicing party identification from the block chain nodes; and generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
The electronic bill issuing condition is a constraint condition for limiting the electronic bill issuing according to the electronic bill issuing control cycle. The electronic bill making condition can also be called electronic bill making intelligent contract. When invoicing is required, the invoicing side equipment can inquire the electronic bill issuing conditions corresponding to the invoicing side identification from the corresponding block chain nodes. And generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
For example, the electronic ticket issuing conditions include an issuing amount of a single electronic ticket, for example, an issuing amount of a single electronic ticket for an a corporation (issuing party) issuing an electronic ticket with an added-value tax is one kilo yuan at maximum. When the resource transfer share is one thousand wubai, two unused electronic bill identifiers are needed. For example, the invoicing party identifier A, the electronic bill identifier 1, the receiver identifier and the resource transfer share Jiubai are associated to generate a bill message; and generating another piece of bill information by the invoicing party identifier A, the electronic bill identifier 2, the receiver identifier and the resource transfer share continental herborist.
In the embodiment, the electronic bill making conditions corresponding to the invoicer identification are inquired from the block link points, and the bill information is generated according to the inquired electronic bill making conditions, so that the accuracy and the legality of the bill information are guaranteed.
In a specific embodiment, referring to fig. 8, the electronic ticket generating method includes:
s802, acquiring the receiver identification and the resource transfer share.
S804, sending an electronic bill identification receiving request to the block link point; the request for receiving the electronic bill identification carries an identification of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicer identification and is in an unused state.
And S806, receiving the electronic bill identification fed back by the block chain node.
And S808, receiving feedback information fed back by the block link points, wherein the feedback information indicates that the electronic bill identifier which is associated with the invoicing party identifier and is in an unused state is not inquired.
S810, responding to the feedback information, and initiating an electronic bill identification claiming request to the electronic bill management server; the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
S812, inquiring the electronic bill making conditions corresponding to the invoicing party identification from the block chain nodes.
S814, generating bill information according to the inquired electronic bill making conditions and according to the bill making party identification, the electronic bill identification, the receiver identification and the resource transfer share.
S816, uploading the bill information to a block chain node in the block chain network; and the uploaded bill information is used for indicating the block chain link points to generate electronic bill billing inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and writing the electronic bills into the data block.
S818, receiving the electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
The electronic bill generating method generates bill information according to the invoice party identifier, the electronic bill identifier associated with the current invoice party identifier, the receiver identifier and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete invoice making on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bills into the data blocks, so that the safety, reliability and reliability of the electronic bills can be guaranteed, and the authenticity of the electronic bill billing inquiry codes received by enterprises or individuals is further guaranteed.
Fig. 8 is a flowchart illustrating an electronic ticket generating method according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Referring to FIG. 9, a diagram of a deployment of a data processing system for electronic tickets is shown in one particular embodiment. In a specific block chain electronic invoice application scenario, referring to fig. 9, a block chain network includes at least 4 block chain nodes to form a federation chain, which are respectively a block chain node corresponding to a tax office server, a block chain node corresponding to an invoicing enterprise, a block chain node corresponding to an electronic invoice utility server, and a block chain node corresponding to an reimbursement enterprise. Typically, the devices of each role interact with the corresponding tile link points. The electronic bill public server is used for storing the issued block chain electronic invoices for the consumers, and can be a WeChat server and the like.
On one hand, the tax office server provides an access interface (an internal interface for tax office terminals and an external interface for enterprise users) for the equipment of each role to access through the reverse proxy service, hosts the identity key of each role and manages the characteristic data of each role. On the other hand, data of the blockchain network (or data to be written after consensus) is synchronously written in from the blockchain network module in the corresponding blockchain node through a synchronization tool in real time so as to query and count the blockchain electronic invoice related data of each role.
On one hand, each block link point in the block chain network provides an access interface for corresponding equipment to access through reverse proxy service (for example, equipment of an invoicing enterprise accesses the block link point corresponding to the invoicing enterprise). On the other hand, the data sent by the corresponding device through the reverse proxy service is received through the blockchain electronic invoice application platform (for example, the device of the billing enterprise uploads the data to the blockchain link point corresponding to the billing enterprise, that is, the data is transmitted to the blockchain electronic invoice application platform through an interface provided by the reverse proxy service, etc.). The blockchain electronic invoice application platform then transmits the data to the blockchain network module. The block chain network modules of each block chain node jointly form a consensus network, and after consensus is achieved in the consensus network, data is written into the block chain network modules. The blockchain node also comprises a cache database used for caching various data, such as an enterprise public key obtained from a system center server.
The deployment map may further include a block chain network module system central server, which stores the mapping between the enterprise identification and the public key of each enterprise, is isolated from the tax office server, and is mainly used for identity authentication (e.g., only the tax office is restricted to issue invoices, and constraint conditions related to the enterprise are changed). Subsequent operations which need to be centralized are uniformly put into the central server of the system to be executed.
The reverse proxy service may specifically be nginx. The blockchain electronic invoice Application platform realizes the main business logic of the blockchain electronic invoice, and exposes sdk (Software Development Kit) and api (Application Programming Interface) interfaces for interaction of a third party through reverse proxy service access. The blockchain network module can be specifically realized based on the Tencent underlay blockchain technology (trustSQL). The cache region may be specifically implemented by a mysql database. It is to be understood that the present embodiments are for illustration and not intended to limit the implementations employed in specific implementations.
In a specific application scenario, the electronic ticket may specifically be a blockchain electronic invoice, the electronic ticket management server may specifically be a tax office server, the invoicing party device may specifically be a terminal or a server corresponding to an electronic ticket invoicing party (an electronic ticket submitting party), and the electronic ticket public server may specifically be a public storage service for providing an electronic ticket originating from a blockchain link point, such as a wechat server. It can be understood that the billing enterprise can be used as an electronic bill billing party to make an electronic bill and can also be used as an electronic bill reporting party to reimburse the electronic bill.
Specific steps of the electronic bill generation method are exemplified according to the specific application scenario. The consumer consumes at the billing enterprise, and the billing enterprise can issue a corresponding invoice according to the amount of money consumed by the consumer. The customer provides the invoice with a new line, i.e., the identifier of the reimburser, to the billing enterprise. The billing enterprise uploads the invoicing party identifier, the block chain electronic invoice number, the receiver identifier and the consumption amount to block chain link points in a block chain network in a correlated manner, the block chain link points generate block chain electronic invoices (also called digital invoices), and feeds back electronic bill billing inquiry codes of the block chain electronic invoices to the invoicing enterprise, so that the invoicing enterprise gives the invoicing inquiry codes to consumers, and the invoicing is completed.
It is understood that in a blockchain network, there may be blockchain link points corresponding to KA (key Account) tax enterprises, and there may also be blockchain link points corresponding to third party proxy devices. And the third-party agent equipment is used for medium and small enterprises to access the blockchain network.
The following is specifically illustrated by two specific application scenarios:
the first business scenario is a parking lot charging scenario.
For small and medium-sized enterprises, block chain electronic invoices can be issued through third-party agent equipment. If the taxpayer does not get through the parking system or receives cash and the like from the sentry box, the invoicing two-dimensional code can be printed by the receipt printer and delivered to the user, and the user submits information by scanning the invoicing two-dimensional code so as to issue the block chain electronic invoice. Referring to fig. 10, fig. 10 illustrates a flow interface diagram of a blockchain electronic invoice in one embodiment. The user can scan the billing two-dimensional code through a mobile application (such as WeChat), and the step 1 is carried out: and entering an invoicing interface through an application (such as a WeChat invoicing applet) provided by the third-party agent equipment, and enabling a user to enter related information such as invoice head-up on the invoicing interface. Entering a step 2: and applying for making an invoice, uploading corresponding information to a block chain node in a block chain network through the third-party agent equipment by the application provided by the third-party agent equipment to generate an electronic bill, and feeding back the plaintext information of the corresponding electronic bill to the user. Entering a step 3: the user can receive the 'new ticket issue reminding' prompted by WeChat. Entering step 4, the user can insert the new ticket into the WeChat card package. And the WeChat server stores the received block chain electronic invoice for the user.
For KA tax enterprises, through opening the parking system, a user can scan a code through the mobile terminal, submit the head to raise the head and then invoice. Referring to fig. 11, fig. 11 is a schematic diagram of a circulation interface of a blockchain electronic invoice according to another embodiment. Steps 1-7 in fig. 11 particularly show the complete process of the user completing payment and collecting invoices issued by the billing enterprise through the mobile application (WeChat). Firstly, step 1, the enterprise where the parking lot is located can present the payment code, and the user can enter the payment interface by scanning the payment code through the mobile application. And then step 2 is entered, the user can bind the license plate number of the user and the invoice new head in the payment interface. And then, entering a step 3, calling the parking record of the vehicle corresponding to the license plate number of the user by the billing enterprise, and generating a payment link of corresponding money. Step 3.1, the user can view the corresponding details of the order to be paid. And 4, the user pays corresponding amount to the merchant. Step 5 is entered after payment is complete and the user can view the order details. The billing enterprise can upload invoice information in order details to block chain nodes in a block chain network to generate electronic bills and feed back plaintext information of the corresponding electronic bills to users. And step 6, the user can receive a new ticket issue prompt of the WeChat prompt. Proceeding to step 7, the user may insert a new ticket into the wechat card package. And the WeChat server stores the received block chain electronic invoice for the user.
And the second business scene is a catering charging scene.
For KA tax enterprises, through a free order system, users can make invoices by scanning codes, submitting heads up. Referring to fig. 12, fig. 12 is a schematic diagram of a circulation interface of a blockchain electronic invoice according to another embodiment. Steps 1-5 in fig. 12 particularly show the complete process of the user completing payment and collecting invoices issued by the billing enterprise through the mobile application (WeChat). Firstly, step 1, the billing enterprise can show the billing two-dimensional code in the order bill generated after the user pays, and the user can scan the billing two-dimensional code through the mobile application to enter a billing interface. And then, entering the step 2, and filling the invoice head-up and receipt information in the invoicing interface by the user. And then, entering a step 3, wherein the billing enterprise can upload the invoice information to the block chain nodes in the block chain network to generate the electronic bills and feed back the plaintext information of the corresponding electronic bills to the user. And 4, entering a step 4, wherein the user can receive a new ticket issue prompt of the WeChat prompt. Entering step 5, the user can insert the new ticket into the WeChat card package. And the WeChat server stores the received block chain electronic invoice for the user.
For small and medium-sized enterprises, block chain electronic invoices can be issued through third-party agent equipment. The third party proxy device may provide standard services such as providing an application for invoicing, and the user may log in to the application to fill out invoice information. Referring to fig. 13, fig. 13 shows a flow interface diagram of a blockchain electronic invoice in a further embodiment. Entering a step 1: the user may scan the billing application two-dimensional code provided by the third party agent device via a mobile application (such as WeChat) to access the billing applet. Entering a step 2: the user may enter the amount and type of goods in an invoicing interface provided by the invoicing application. Entering a step 3: the user can input related information such as invoice head-up and the like on an invoicing interface provided by the invoicing application. Entering a step 4: and applying for billing, and sending corresponding information to the merchant for confirmation by the application provided by the third-party agent equipment. And entering the step 5 and the step 6, and the merchant reviews the information related to the block chain electronic invoice. And uploading the invoice information to a block chain node in the block chain network through third-party proxy equipment after the invoice information passes the verification so as to generate an electronic bill, and feeding back the plaintext information of the corresponding electronic bill to the user. Entering a step 7: the user can receive the 'new ticket issue reminding' prompted by WeChat. Proceeding to step 8, the user may insert a new ticket into the wechat card package. And the WeChat server stores the received block chain electronic invoice for the user.
As shown in fig. 14, in one embodiment, there is provided an electronic ticket generating apparatus 1400 including: a receiving module 1401, a generating module 1402 and a feedback module 1403.
A receiving module 1401, configured to receive an invoicing request; the billing request carries bill information; the bill information includes an invoicing party identifier, an electronic bill identifier, a receiving party identifier and a resource transfer share.
And the generating module 1402 is configured to generate an electronic billing inquiry code corresponding to the billing information.
The generating module 1402 is further configured to generate an electronic ticket corresponding to the electronic ticket billing inquiry code according to the ticket information, and write the electronic ticket into the data block.
A feedback module 1403, configured to respond to the billing request and feed back the electronic bill billing query code; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the electronic ticket generating apparatus 1400 further comprises a determination module 1404.
The receiving module 1401 is further configured to receive an electronic ticket identifier receiving request; the electronic bill identification receiving request carries an identification of the invoicer.
A determining module 1404, configured to determine an electronic ticket identifier associated with the invoicer identifier and in an unused state in the blockchain node.
The feedback module 1403 is further configured to feed back the determined electronic ticket identity in response to the request for receiving the electronic ticket identity.
In one embodiment, the generating module 1402 is further configured to generate a ticket hash value according to the ticket information; sending the hash value of the bill to the invoicing party equipment corresponding to the invoicing party identification; the sent bill hash value is used for indicating the invoicing party equipment to sign the bill hash value to obtain signature data; receiving signature data returned by the invoicing party equipment; and when the signature data passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
In one embodiment, the electronic ticket generating apparatus 1400 further comprises a query module 1405 and a validation module 1406.
A query module 1405 for querying the electronic ticket issuing conditions corresponding to the invoicer identification from the block link points.
The verification module 1406 is used for verifying the validity of the bill information according to the electronic bill making condition.
The generating module 1402 is further configured to generate an electronic ticket issuing inquiry code according to the hash value of the ticket and the signature data after the signature data passes the verification and the ticket information passes the verification.
Referring to fig. 15, in one embodiment, the electronic ticket generating apparatus 1400 further includes an encryption module 1407 and an acquisition module 1408.
The generating module 1402 is further configured to generate a ticket symmetric key corresponding to the ticket information.
And the encrypting module 1407 is configured to encrypt the ticket information with the ticket symmetric key to obtain a ticket cryptograph.
An obtaining module 1408, configured to obtain the public key of the invoicing party corresponding to the identifier of the invoicing party.
The encrypting module 1407 is further configured to encrypt the ticket symmetric key through the public key of the invoicing party to obtain a first ticket symmetric key ciphertext.
The generating module 1402 is further configured to generate an electronic ticket according to the ticket cryptograph, the first ticket symmetric key cryptograph, and the electronic ticket billing query code.
In one embodiment, the obtaining module 1408 is further configured to obtain a consumer identification corresponding to the ticket information; the query module is also used for searching a consumer public key corresponding to the consumer identifier; the encryption module is also used for encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext; the generating module is also used for generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code.
In one embodiment, the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identifier is an enterprise identifier.
The electronic bill generating device receives the billing request carrying the bill information through the block chain link points in the block chain network, wherein the bill information comprises a billing party identifier, an electronic bill identifier, a receiver identifier and a resource transfer share. And the block chain link points generate corresponding electronic bill billing inquiry codes according to the bill information, generate electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and write the electronic bills into the data block. And returning the electronic bill issuing inquiry code for inquiring the electronic bill so as to complete issuing the invoice on the block link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bills into the data blocks, so that the safety, reliability and reliability of the electronic bills can be guaranteed, and the authenticity of the electronic bill billing inquiry codes received by enterprises or individuals is further guaranteed.
As shown in fig. 16, in one embodiment, there is provided an electronic ticket generating apparatus 1600 including: an acquisition module 1601, a generation module 1602, an upload module 1603, and a reception module 1604.
An obtaining module 1601 is configured to obtain a receiver identifier and a resource transfer share.
The obtaining module 1601 is further configured to obtain an electronic ticket identifier associated with the current invoicer identifier.
The generating module 1602 is configured to generate the ticket information according to the identifier of the invoicing party, the identifier of the electronic ticket, the identifier of the receiving party, and the resource transfer share.
An upload module 1603, configured to upload the ticket information to a blockchain node in a blockchain network; and the uploaded bill information is used for indicating the block chain link points to generate electronic bill billing inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and writing the electronic bills into the data block.
The receiving module 1604 is configured to receive the electronic bill billing query code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the obtaining module 1601 is further configured to send an electronic ticket identification acceptance request to the block link point; the request for receiving the electronic bill identification carries an identification of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicing party identification and is in an unused state; and receiving the electronic bill identification fed back by the block chain node.
Referring to FIG. 17, in one embodiment, the electronic ticket generating apparatus 1600 further includes a request initiation module 1605.
The receiving module 1604 is further configured to receive feedback information fed back by the block link point, where the feedback information indicates that the electronic ticket id associated with the invoicing party id and in the unused state is not queried.
A request initiating module 1605, configured to initiate an electronic bill identification claiming request to the electronic bill management server in response to the feedback information; the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
In one embodiment, the generating module 1602 is further configured to query the block link points for the electronic ticket issuing conditions corresponding to the invoicer identifier; and generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
The electronic bill generating device generates bill information according to the invoicing party identification, the electronic bill identification associated with the current invoicing party identification, the receiver identification and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete invoice making on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
FIG. 18 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the invoicer device 110 in fig. 1. As shown in fig. 18, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the electronic ticket generating method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to execute the electronic ticket generating method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
FIG. 19 is a diagram showing an internal structure of a computer device in one embodiment. The computer device may specifically be block link point 120 in fig. 1. As shown in fig. 19, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the electronic ticket generating method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to execute the electronic ticket generating method.
It will be appreciated by those skilled in the art that the configurations shown in fig. 18 and 19 are only block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computer device to which the present disclosure may be applied, and a particular computer device may include more or less components than those shown in the figures, or may combine some components, or have a different arrangement of components.
In one embodiment, the electronic ticket generating apparatus provided in the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 18 or fig. 19. The memory of the computer device may store various program modules constituting the electronic ticket generating apparatus, such as the receiving module, the generating module, and the feedback module shown in fig. 14. The computer program constituted by the respective program modules causes the processor to execute the steps in the electronic ticket generating method of the respective embodiments of the present application described in the present specification. Also for example, the acquiring module, the generating module, the uploading module and the receiving module shown in fig. 16. The computer program constituted by the respective program modules causes the processor to execute the steps in the electronic ticket generating method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 18 may execute step S202 by the receiving module in the electronic ticket generating apparatus shown in fig. 12. The computer device may perform steps S204 and S206 by the generation module. The computer device may perform step S208 through the feedback module.
For example, the computer device shown in fig. 19 may execute steps S702 and S704 by the acquiring module in the electronic ticket generating apparatus shown in fig. 16. The computer device may perform step S706 through the generation module. The computer device may perform step S708 through the upload module. The computer device may perform step S710 through the receiving module.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: receiving a billing request; the billing request carries bill information; the bill information comprises an invoicing party identifier, an electronic bill identifier, a receiving party identifier and a resource transfer share; generating an electronic bill billing inquiry code corresponding to the bill information; generating an electronic bill corresponding to the electronic bill billing inquiry code according to the bill information, and writing the electronic bill into the data block; responding to the billing request, and feeding back the billing inquiry code of the electronic bill; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the computer program causes the processor to further perform the steps of: receiving an electronic bill identification receiving request; the request for receiving the electronic bill identification carries an identification of a biller; determining an electronic bill identifier which is associated with the invoicer identifier and is in an unused state in the block chain node; and feeding back the determined electronic bill identification in response to the electronic bill identification receiving request.
In one embodiment, the computer program causes the processor, when executing the step of generating the electronic ticket issuing inquiry code corresponding to the ticket information, to specifically execute the following steps: generating a bill hash value according to the bill information; sending the hash value of the bill to the invoicing party equipment corresponding to the invoicing party identification; the sent bill hash value is used for indicating the invoicing party equipment to sign the bill hash value to obtain signature data; receiving signature data returned by the invoicing party equipment; and when the signature data passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
In one embodiment, the computer program causes the processor to further perform the steps of: inquiring the electronic bill making conditions corresponding to the bill maker identification from the block chain nodes; and verifying the legality of the bill information according to the electronic bill issuing condition. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill billing inquiry code according to the bill hash value and the signature data after the signature data passes the verification: and when the signature data passes the verification and the bill information passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
In one embodiment, the computer program causes the processor to further perform the steps of: generating a bill symmetric key corresponding to the bill information; encrypting the bill information through the bill symmetric key to obtain a bill ciphertext; acquiring a public key of the invoicing party corresponding to the identifier of the invoicing party; and encrypting the bill symmetric key through the public key of the invoicing party to obtain a first bill symmetric key ciphertext. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing inquiry code.
In one embodiment, the computer program causes the processor to further perform the steps of: acquiring a consumer identifier corresponding to the bill information; searching a consumer public key corresponding to the consumer identification; and encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code.
In one embodiment, the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identifier is an enterprise identifier.
The computer equipment receives the billing request carrying the bill information through the block chain link points in the block chain network, wherein the bill information comprises a billing party identifier, an electronic bill identifier, a receiver identifier and a resource transfer share. And the block chain link points generate corresponding electronic bill billing inquiry codes according to the bill information, generate electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and write the electronic bills into the data block. And returning the electronic bill issuing inquiry code for inquiring the electronic bill so as to complete issuing the invoice on the block link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring a receiver identifier and a resource transfer share; acquiring an electronic bill identifier associated with a current invoicer identifier; generating bill information according to the invoice party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share; uploading the bill information to a block chain node in a block chain network; the uploaded bill information is used for indicating the block link points to generate electronic bill making inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill making inquiry codes according to the bill information, and writing the electronic bills into the data block; receiving an electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the computer program causes the processor in performing the step of obtaining an electronic ticket identity associated with the current invoicer identity to perform in particular the steps of: sending an electronic bill identification receiving request to the block link points; the request for receiving the electronic bill identification carries an identification of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicing party identification and is in an unused state; and receiving the electronic bill identification fed back by the block chain node.
In one embodiment, the computer program causes the processor to further perform the steps of: receiving feedback information fed back by the block chain link points, wherein the feedback information indicates that electronic bill identifications which are related to the invoicer identifications and are in an unused state are not inquired; responding to the feedback information, and initiating an electronic bill identification claiming request to an electronic bill management server; the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
In one embodiment, the computer program causes the processor to perform the steps of generating ticket information based on the biller identification, the electronic ticket identification, the recipient identification, and the resource transfer share, in particular by: inquiring the electronic bill making conditions corresponding to the invoicing party identification from the block chain nodes; and generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
The computer equipment generates bill information according to the invoicing party identification, the electronic bill identification associated with the current invoicing party identification, the receiver identification and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete invoice making on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of: receiving a billing request; the billing request carries bill information; the bill information comprises an invoicing party identifier, an electronic bill identifier, a receiving party identifier and a resource transfer share; generating an electronic bill billing inquiry code corresponding to the bill information; generating an electronic bill corresponding to the electronic bill billing inquiry code according to the bill information, and writing the electronic bill into the data block; responding to the billing request, and feeding back the billing inquiry code of the electronic bill; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the computer program causes the processor to further perform the steps of: receiving an electronic bill identification receiving request; the request for receiving the electronic bill identification carries an identification of a biller; determining an electronic bill identifier which is associated with the invoicer identifier and is in an unused state in the block chain node; and feeding back the determined electronic bill identification in response to the electronic bill identification receiving request.
In one embodiment, the computer program causes the processor, when executing the step of generating the electronic ticket issuing inquiry code corresponding to the ticket information, to specifically execute the following steps: generating a bill hash value according to the bill information; sending the hash value of the bill to the invoicing party equipment corresponding to the invoicing party identification; the sent bill hash value is used for indicating the invoicing party equipment to sign the bill hash value to obtain signature data; receiving signature data returned by the invoicing party equipment; and when the signature data passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
In one embodiment, the computer program causes the processor to further perform the steps of: inquiring the electronic bill making conditions corresponding to the bill maker identification from the block chain nodes; and verifying the legality of the bill information according to the electronic bill issuing condition. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill billing inquiry code according to the bill hash value and the signature data after the signature data passes the verification: and when the signature data passes the verification and the bill information passes the verification, generating an electronic bill billing inquiry code according to the hash value of the bill and the signature data.
In one embodiment, the computer program causes the processor to further perform the steps of: generating a bill symmetric key corresponding to the bill information; encrypting the bill information through the bill symmetric key to obtain a bill ciphertext; acquiring a public key of the invoicing party corresponding to the identifier of the invoicing party; and encrypting the bill symmetric key through the public key of the invoicing party to obtain a first bill symmetric key ciphertext. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing inquiry code.
In one embodiment, the computer program causes the processor to further perform the steps of: acquiring a consumer identifier corresponding to the bill information; searching a consumer public key corresponding to the consumer identification; and encrypting the bill symmetric key through the consumer public key to obtain a second bill symmetric key ciphertext. The computer program causes the processor to specifically execute the following steps when executing the step of generating the electronic bill corresponding to the electronic bill billing inquiry code according to the bill information: and generating the electronic bill according to the bill ciphertext, the first bill symmetric key ciphertext, the second bill symmetric key ciphertext and the electronic bill billing inquiry code.
In one embodiment, the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identifier is an enterprise identifier.
The computer readable storage medium receives an invoicing request carrying bill information through a block chain link point in a block chain network, wherein the bill information comprises an invoicing party identifier, an electronic bill identifier, a receiver identifier and a resource transfer share. And the block chain link points generate corresponding electronic bill billing inquiry codes according to the bill information, generate electronic bills corresponding to the electronic bill billing inquiry codes according to the bill information, and write the electronic bills into the data block. And returning the electronic bill issuing inquiry code for inquiring the electronic bill so as to complete issuing the invoice on the block link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of: acquiring a receiver identifier and a resource transfer share; acquiring an electronic bill identifier associated with a current invoicer identifier; generating bill information according to the invoice party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share; uploading the bill information to a block chain node in a block chain network; the uploaded bill information is used for indicating the block link points to generate electronic bill making inquiry codes corresponding to the bill information, generating electronic bills corresponding to the electronic bill making inquiry codes according to the bill information, and writing the electronic bills into the data block; receiving an electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
In one embodiment, the computer program causes the processor in performing the step of obtaining an electronic ticket identity associated with the current invoicer identity to perform in particular the steps of: sending an electronic bill identification receiving request to the block link points; the request for receiving the electronic bill identification carries an identification of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicing party identification and is in an unused state; and receiving the electronic bill identification fed back by the block chain node.
In one embodiment, the computer program causes the processor to further perform the steps of: receiving feedback information fed back by the block chain link points, wherein the feedback information indicates that electronic bill identifications which are related to the invoicer identifications and are in an unused state are not inquired; responding to the feedback information, and initiating an electronic bill identification claiming request to an electronic bill management server; the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
In one embodiment, the computer program causes the processor to perform the steps of generating ticket information based on the biller identification, the electronic ticket identification, the recipient identification, and the resource transfer share, in particular by: inquiring the electronic bill making conditions corresponding to the invoicing party identification from the block chain nodes; and generating bill information according to the inquired electronic bill making conditions and according to the bill making party identifier, the electronic bill identifier, the receiver identifier and the resource transfer share.
The computer-readable storage medium generates the bill information according to the invoicer identifier, the electronic bill identifier associated with the current invoicer identifier, the receiver identifier, and the resource transfer share. And uploading the bill information to block chain link points in a block chain network, generating an electronic bill making inquiry code corresponding to the bill information by the block chain link points, generating an electronic bill corresponding to the electronic bill making inquiry code according to the bill information, writing the electronic bill into a data block, and finally returning the electronic bill making inquiry code for inquiring the electronic bill so as to complete invoice making on the block chain link points. Therefore, enterprises or individuals only need to upload bill information to the block chain nodes in the block chain network, invoicing of invoices is completed through the block chain nodes, the enterprises or the individuals do not need to purchase special tax control equipment, and paper file invoices do not need to be invoiced, the cost of invoicing is greatly reduced, and the efficiency of invoicing is improved. In addition, the block link points write the electronic bill into the data block, so that the safety and reliability of the electronic bill can be guaranteed, and the authenticity of the electronic bill billing inquiry code received by an enterprise or an individual is further guaranteed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. An electronic ticket generating method performed by a biller device, the method comprising:
acquiring a receiver identifier and a resource transfer share;
sending an electronic bill identification receiving request to the block link points; the electronic bill identification receiving request carries an identifier of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicer identification and is in an unused state;
receiving the electronic bill identification fed back by the block chain node;
inquiring an electronic bill making condition corresponding to the invoicing party identifier from a block chain node in a block chain network according to the invoicing party identifier;
generating bill information according to the inquired electronic bill making conditions and the bill making party identification, the electronic bill identification, the receiver identification and the resource transfer share;
uploading the bill information to the blockchain node; the uploaded bill information is used for indicating the block link points to generate bill hash values according to the bill information;
receiving the bill hash value fed back by the block chain node, and signing the bill hash value to obtain signature data;
sending the signature data to the blockchain node; the sent signature data is used for indicating the block link node to verify the signature data, generating an electronic bill billing query code according to the bill hash value and the signature data after the verification is passed, generating an electronic bill corresponding to the electronic bill billing query code according to the bill information, and writing the electronic bill into a data block;
receiving an electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
2. The method of claim 1, wherein obtaining the recipient identification and the resource transfer share comprises:
after the resource transfer between the receiver and the invoicer is completed through the payment application, the receiver identification and the resource transfer share related to the resource transfer are uploaded to the block chain node through a server corresponding to the payment application;
and acquiring the receiver identification and the resource transfer share from the block chain node.
3. The method of claim 1, wherein obtaining the recipient identification and the resource transfer share comprises:
displaying a bill information input interface;
and acquiring the receiver identification and the resource transfer share input into the bill information input interface.
4. The method of claim 1, further comprising:
receiving feedback information fed back by the block link points, wherein the feedback information indicates that electronic bill identifications which are related to the invoicing party identifications and are in an unused state are not inquired;
responding to the feedback information, and initiating an electronic bill identification application request to an electronic bill management server; and the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
5. The method of claim 1, wherein uploading the ticket information to the blockchain node comprises:
signing the bill information through a private key of the invoicing party corresponding to the invoicing party identification to obtain a corresponding invoicing signature;
generating an invoicing request according to the bill information and the corresponding invoicing signature;
sending the billing request to the block link points; and the transmitted invoicing request is used for indicating the block link points to verify the invoicing signature through an invoicing party public key corresponding to the invoicing party identification, and a ticket hash value is generated according to ticket information after the verification is passed.
6. The method according to claim 1, wherein the uploaded bill information is used for instructing the block link points to generate a bill symmetric key corresponding to the bill information, the bill information is encrypted through the bill symmetric key to obtain a bill ciphertext, the bill symmetric key is encrypted through a biller public key corresponding to the biller identification to obtain a first bill symmetric key ciphertext, and an electronic bill is generated according to the bill ciphertext, the first bill symmetric key ciphertext and the electronic bill billing inquiry code; the method further comprises the following steps:
inquiring the electronic bill from the block chain node according to the electronic bill billing inquiry code;
decrypting a first bill symmetric key ciphertext in the electronic bill by adopting a private key of the invoicing party corresponding to the invoicing party identifier to obtain a bill symmetric key;
and decrypting the bill ciphertext in the electronic bill according to the bill symmetric key obtained by decryption to obtain the bill information of the plaintext.
7. The method of claim 1, further comprising:
inquiring the electronic bill from the block chain node according to the electronic bill billing inquiry code;
and transmitting the electronic bill to an electronic bill public server logged in through the consumer identification.
8. The method according to any one of claims 1 to 7, wherein the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identification is an enterprise identification.
9. An electronic ticket generating apparatus comprising:
the acquisition module is used for acquiring the receiver identification and the resource transfer share;
the acquisition module is also used for sending an electronic bill identification acceptance request to the block link points; the electronic bill identification receiving request carries an identifier of a biller; the electronic bill identification receiving request is used for indicating the block chain node to inquire the electronic bill identification which is associated with the invoicer identification and is in an unused state; receiving the electronic bill identification fed back by the block chain node;
the acquisition module is also used for inquiring the electronic bill making conditions corresponding to the invoicing party identification from the block chain nodes in the block chain network according to the invoicing party identification;
the generating module is used for generating bill information according to the inquired electronic bill making conditions and the bill making party identification, the electronic bill identification, the receiver identification and the resource transfer share;
the uploading module is used for uploading the bill information to the block chain node; the uploaded bill information is used for indicating the block link points to generate bill hash values according to the bill information;
the receiving module is used for receiving the bill hash value fed back by the block link node and signing the bill hash value to obtain signature data;
the uploading module is further configured to send the signature data to the block chain node; the sent signature data is used for indicating the block link node to verify the signature data, generating an electronic bill billing query code according to the bill hash value and the signature data after the verification is passed, generating an electronic bill corresponding to the electronic bill billing query code according to the bill information, and writing the electronic bill into a data block;
the receiving module is also used for receiving the electronic bill billing inquiry code returned by the block chain node; the electronic bill billing inquiry code is used for inquiring the electronic bill.
10. The apparatus according to claim 9, wherein the obtaining module is further configured to upload, through a server corresponding to a payment application, a recipient identifier and a resource transfer share related to the resource transfer to the blockchain node after the resource transfer between the recipient and the invoicer is completed through the payment application; and acquiring the receiver identification and the resource transfer share from the block chain node.
11. The apparatus of claim 9, wherein the obtaining module is further configured to display a ticket information input interface; and acquiring the receiver identification and the resource transfer share input into the bill information input interface.
12. The apparatus of claim 9, further comprising:
the receiving module is further used for receiving feedback information fed back by the block link points, wherein the feedback information indicates that electronic bill identifications which are associated with the invoicing party identifications and are in an unused state are not inquired;
the request initiating module is used for responding to the feedback information and initiating an electronic bill identification claiming request to the electronic bill management server; and the electronic bill identification claiming request is used for indicating the electronic bill management server to distribute the electronic bill identification according to the electronic bill claiming condition and uploading the distributed electronic bill identification and the invoicing party identification to the block chain node in a correlation manner.
13. The apparatus of claim 9, wherein the upload module is further configured to sign the ticket information with a private key of the biller corresponding to the biller identifier to obtain a corresponding billing signature; generating an invoicing request according to the bill information and the corresponding invoicing signature; sending the billing request to the block link points; and the transmitted invoicing request is used for indicating the block link points to verify the invoicing signature through an invoicing party public key corresponding to the invoicing party identification, and a ticket hash value is generated according to ticket information after the verification is passed.
14. The apparatus according to claim 9, wherein the uploaded ticket information is used to instruct the block link point to generate a ticket symmetric key corresponding to the ticket information, encrypt the ticket information with the ticket symmetric key to obtain a ticket symmetric key ciphertext, encrypt the ticket symmetric key with a biller public key corresponding to the biller identifier to obtain a first ticket symmetric key ciphertext, and generate an electronic ticket according to the ticket ciphertext, the first ticket symmetric key ciphertext, and the electronic ticket billing inquiry code;
the acquisition module is also used for inquiring the electronic bill from the block chain node according to the electronic bill billing inquiry code; decrypting a first bill symmetric key ciphertext in the electronic bill by adopting a private key of the invoicing party corresponding to the invoicing party identifier to obtain a bill symmetric key; and decrypting the bill ciphertext in the electronic bill according to the bill symmetric key obtained by decryption to obtain the bill information of the plaintext.
15. The apparatus according to claim 9, wherein the obtaining module is further configured to query the electronic ticket from the blockchain node according to the electronic ticket billing query code; and transmitting the electronic bill to an electronic bill public server logged in through the consumer identification.
16. The apparatus according to any one of claims 9 to 15, wherein the electronic ticket is a blockchain electronic invoice; the electronic bill identification is a block chain electronic invoice number; the invoicing party identification is an enterprise identification.
17. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
18. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
CN201910689619.0A 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment Active CN110400188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910689619.0A CN110400188B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810936830.3A CN109034924B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN201910689619.0A CN110400188B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810936830.3A Division CN109034924B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110400188A CN110400188A (en) 2019-11-01
CN110400188B true CN110400188B (en) 2021-08-13

Family

ID=64631814

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201910682701.0A Active CN110428292B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN201910689619.0A Active CN110400188B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN201810936830.3A Active CN109034924B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910682701.0A Active CN110428292B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810936830.3A Active CN109034924B (en) 2018-08-16 2018-08-16 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Country Status (1)

Country Link
CN (3) CN110428292B (en)

Families Citing this family (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801117A (en) * 2018-12-20 2019-05-24 航天信息股份有限公司 It is a kind of for carrying out endowed method and system to electronic bill
CN110019326A (en) * 2018-12-25 2019-07-16 阿里巴巴集团控股有限公司 True from false of bills verification method and device and electronic equipment based on block chain
CN109889343B (en) * 2018-12-29 2023-04-14 航天信息股份有限公司 Electronic invoice circulation control method, device and system
CN109872201A (en) * 2019-02-28 2019-06-11 浪潮软件集团有限公司 It is a kind of to support make out an invoice invoice management method, system and the invoice system at end more
CN111091429B (en) * 2019-03-06 2024-03-22 深圳市智税链科技有限公司 Electronic bill identification distribution method and device and electronic bill generation system
CN110189184B (en) * 2019-04-26 2024-04-26 深圳市智税链科技有限公司 Electronic invoice storage method and device
CN110084655B (en) * 2019-05-05 2023-06-23 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN110136276A (en) * 2019-05-16 2019-08-16 江苏因为信息科技有限公司 A kind of parking taxation control system
CN110245943B (en) * 2019-05-20 2021-04-23 创新先进技术有限公司 Receipt storage method and node based on judgment condition
CN110378755B (en) * 2019-06-21 2023-02-07 深圳壹账通智能科技有限公司 Electronic invoice generation method and device, computer equipment and storage medium
CN110517049A (en) * 2019-07-25 2019-11-29 初建刚 A kind of bill anti-counterfeit recognition methods and device based on two dimensional code and block chain
US10956903B2 (en) 2019-07-31 2021-03-23 Advanced New Technologies Co., Ltd. Obtaining a blockchain-based, real-name, electronic bill
CN110458631B (en) * 2019-07-31 2020-11-10 创新先进技术有限公司 Bill number distribution method and device based on block chain and electronic equipment
CN110471986B (en) * 2019-07-31 2020-08-04 阿里巴巴集团控股有限公司 Bill real name getting method and device based on block chain and electronic equipment
US11049115B2 (en) * 2019-07-31 2021-06-29 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
CN110458562B (en) * 2019-08-08 2021-05-18 腾讯科技(深圳)有限公司 Bill reimbursement method, device and equipment and computer storage medium
CN110457957B (en) * 2019-08-22 2024-04-12 腾讯科技(深圳)有限公司 Information processing method and device of electronic bill, electronic equipment and medium
CN110599266B (en) * 2019-09-16 2021-07-06 腾讯科技(深圳)有限公司 Electronic bill data processing method and device, computer equipment and storage medium
CN110599270B (en) * 2019-09-16 2024-05-10 腾讯科技(深圳)有限公司 Electronic bill generation method and device and computer equipment
CN110599267B (en) * 2019-09-16 2024-06-25 腾讯科技(深圳)有限公司 Electronic invoice issuing method and device, computer readable storage medium and computer equipment
CN110597834B (en) * 2019-09-16 2024-09-06 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment
CN110633963B (en) * 2019-09-16 2023-12-12 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN110599269B (en) * 2019-09-16 2024-10-11 腾讯科技(深圳)有限公司 Bill generation method, bill generation device, computer readable storage medium and computer equipment
CN110599137B (en) * 2019-09-16 2024-06-11 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment
CN110599268A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill generating method, electronic bill generating device, computer equipment and storage medium
CN110619511A (en) * 2019-09-18 2019-12-27 腾讯科技(深圳)有限公司 Electronic bill processing method and device, readable storage medium and computer equipment
CN110599272B (en) * 2019-09-20 2024-05-14 腾讯科技(深圳)有限公司 Method for issuing electronic invoice and related products
CN110599273B (en) * 2019-09-20 2021-07-06 腾讯科技(深圳)有限公司 Data processing method, data processing device, node equipment and storage medium
CN110598457B (en) * 2019-09-24 2023-11-24 腾讯科技(深圳)有限公司 Bill processing method, bill processing device, bill processing equipment and computer storage medium
CN110738536A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 data processing method, device and storage medium based on block chain network
CN110909383A (en) * 2019-11-15 2020-03-24 深圳市网心科技有限公司 Electronic invoice management method and device, electronic equipment and storage medium
CN111026789B (en) * 2019-11-29 2020-12-15 蚂蚁区块链科技(上海)有限公司 Block chain-based electronic bill query method and device and electronic equipment
CN111027086B (en) * 2019-12-16 2021-04-20 支付宝(杭州)信息技术有限公司 Private data protection method and system
CN111274506A (en) * 2019-12-18 2020-06-12 航天信息股份有限公司 Invoice issuing system based on two-dimensional code
CN111062766B (en) * 2019-12-20 2024-02-09 中国银联股份有限公司 Electronic invoice issuing method and device based on blockchain
CN113127559B (en) * 2019-12-31 2024-02-09 航天信息股份有限公司 Account book establishment method and device of financial block chain and computer equipment
CN111310202A (en) * 2020-01-20 2020-06-19 腾讯科技(深圳)有限公司 Information processing method for block chain network, block chain node device and medium
CN111292144B (en) * 2020-01-22 2021-12-21 腾讯科技(深圳)有限公司 Bill processing method and device based on block chain network and storage medium
CN111260421B (en) * 2020-02-11 2023-07-18 中国银联股份有限公司 Electronic invoice management and control method and device based on block chain
CN111369307A (en) * 2020-02-27 2020-07-03 腾讯科技(深圳)有限公司 Electronic invoice management method and device
CN111476617B (en) * 2020-04-03 2021-06-25 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and medium
CN111274831B (en) * 2020-04-24 2024-03-29 杭州趣链科技有限公司 Information circulation system, method, equipment and storage medium based on RFID
CN111598635B (en) * 2020-05-18 2021-09-28 腾讯科技(深圳)有限公司 Bill information processing method and device, equipment and readable storage medium
CN111770081B (en) * 2020-06-28 2021-11-05 国网江苏省电力有限公司信息通信分公司 Role authentication-based big data confidential file access method
CN111914033A (en) * 2020-08-17 2020-11-10 上海联恬信息技术有限公司 Electronic bill drawing method, device, equipment and storage medium
CN112488777B (en) * 2020-10-31 2024-01-16 远光软件股份有限公司 Bill processing method and related device
CN112132588B (en) * 2020-11-26 2021-06-15 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, routing equipment and storage medium
CN113031883B (en) * 2021-02-26 2024-07-16 广东核电合营有限公司 Label data printing method, apparatus, computer device and storage medium
CN112801797A (en) * 2021-03-30 2021-05-14 支付宝(杭州)信息技术有限公司 Method and apparatus for processing ticket data using a down-link trusted device
CN113469758B (en) * 2021-06-11 2024-03-22 深圳前海星际同辉科技有限公司 Billing method, device, equipment and storage medium of blockchain and tax system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412037A (en) * 2016-09-19 2017-02-15 中国银联股份有限公司 Security electronic file processing system and method based on block link structure
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
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
CN107767192A (en) * 2016-08-19 2018-03-06 方正国际软件(北京)有限公司 A kind of verification method of electronic bill, apparatus and system
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767613B (en) * 2014-01-02 2018-02-13 腾讯科技(深圳)有限公司 Signature verification method, apparatus and system
CN106355488A (en) * 2016-09-28 2017-01-25 深圳市喜悦智慧数据有限公司 Tax control method and system based on credit investigation
CN106530021A (en) * 2016-10-31 2017-03-22 青岛瑞宏科技有限公司 Electronic invoice making out system apparatus
CN107077682A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Method and device for inquiring state information of electronic ticket and block link point
CN108256929A (en) * 2016-12-28 2018-07-06 航天信息股份有限公司 A kind of electronic invoice based on Quick Response Code issues method and system
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN108364203A (en) * 2018-02-07 2018-08-03 深圳壹账通智能科技有限公司 Electronic invoice generation method, system, computer equipment and storage medium
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767192A (en) * 2016-08-19 2018-03-06 方正国际软件(北京)有限公司 A kind of verification method of electronic bill, apparatus and system
CN106412037A (en) * 2016-09-19 2017-02-15 中国银联股份有限公司 Security electronic file processing system and method based on block link structure
CN106780033A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of digital ticket transaction system construction method based on alliance's chain
CN106952094A (en) * 2017-03-10 2017-07-14 腾讯科技(深圳)有限公司 Electronic bill management method and device
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
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Also Published As

Publication number Publication date
CN110400188A (en) 2019-11-01
CN109034924B (en) 2023-04-07
CN110428292A (en) 2019-11-08
CN110428292B (en) 2021-05-11
CN109034924A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN110400188B (en) Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN110428293B (en) Data processing method, device, storage medium and equipment for electronic bill
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN109165943B (en) Data processing method, device, storage medium and equipment for electronic bill
CN108961030B (en) Data processing method, apparatus, system, medium, and device for electronic ticket
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN109191272B (en) Data processing method, device, storage medium and equipment for electronic bill
CN109087078B (en) Data processing method, device, storage medium and equipment for electronic bill
CN110599137B (en) Electronic bill data processing method and device and computer equipment
CN110599266B (en) Electronic bill data processing method and device, computer equipment and storage medium
US11182783B2 (en) Electronic payment method and electronic device using ID-based public key cryptography
CN110378755B (en) Electronic invoice generation method and device, computer equipment and storage medium
CN107832632B (en) Asset certification authorization query method, system, electronic device and computer readable storage medium
CN110599270B (en) Electronic bill generation method and device and computer equipment
CN111160998B (en) Comment data processing method and device based on block chain and comment system
CN112328689A (en) Universal asset business ecosystem based on block chain
CN110633963A (en) Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
CN109741016B (en) Electronic contract signing method, electronic contract signing device, computer equipment and storage medium
CN114401268A (en) Cross-link data sharing method, system, equipment and readable storage medium
CN114358766A (en) Method, equipment and blockchain system for trading green electric certificates
CN110349322B (en) Invoice data verification method, device and equipment
CA3173536A1 (en) Cryptosystem, systems, methods and applications for zero-knowledge anonymously-individualized marketing and loyalty management based on end-to-end encrypted transfer of statements like receipts or script
CN110599347A (en) Bill processing method, device, computer readable storage medium and computer equipment
US20240291649A1 (en) Non-fungible token (nft) vehicle information
CN116228437A (en) Asset transfer method, device, electronic equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40020050

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant