CN110738536A - data processing method, device and storage medium based on block chain network - Google Patents

data processing method, device and storage medium based on block chain network Download PDF

Info

Publication number
CN110738536A
CN110738536A CN201910972178.5A CN201910972178A CN110738536A CN 110738536 A CN110738536 A CN 110738536A CN 201910972178 A CN201910972178 A CN 201910972178A CN 110738536 A CN110738536 A CN 110738536A
Authority
CN
China
Prior art keywords
data
user terminal
billing
invoicing
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.)
Pending
Application number
CN201910972178.5A
Other languages
Chinese (zh)
Inventor
蔡弋戈
秦青
张建俊
王宗友
郑罗海
蓝虎
张懿方
郭鹏
洪晓雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910972178.5A priority Critical patent/CN110738536A/en
Publication of CN110738536A publication Critical patent/CN110738536A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides data processing methods, devices and storage media based on a block chain network, wherein the method comprises the steps that after a billing device receives a billing request submitted by a billing party through a user terminal, position information of a user terminal is obtained, billing data are generated according to the billing request and the position information of a user terminal, the billing data are sent to a bill management server, and after the billing data are verified by the bill management server, the billing data including the position information during billing are written into a block chain through the block chain network, so that the geographic position during billing can be added into the bill information, the information content of an electronic bill is enriched, the improvement of the safety of the electronic bill is facilitated in steps, and the bill is effectively prevented from being forged.

Description

data processing method, device and storage medium based on block chain network
Technical Field
The present invention relates to the field of computer technologies, and in particular, to data processing methods and apparatuses based on a blockchain network, and a storage medium.
Background
At present, when invoicing is performed, invoices issued are generally basic invoice information (such as invoicing parties, invoicers, taxpayer identification numbers, transaction contents and the like) and invoice signatures of enterprises, so that the issued invoices are thousands of rules, the contained information amount is single , and how to effectively expand the information amount contained in the electronic invoices and further improve the safety of the electronic invoices becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides data processing methods, devices and storage media based on a block chain network, which can add the geographic position during invoicing into the bill information to enrich the information content of the electronic invoice and contribute to further improvement of the safety of the electronic invoice.
, an embodiment of the present invention provides a method for processing data based on a blockchain network, where the method includes:
after receiving an invoicing request submitted by an th user terminal, the invoicing equipment acquires the position information of the th user terminal;
the billing equipment generates billing data according to the billing request and the position information of the th user terminal;
and the billing equipment sends the billing data to a bill management server, so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises position information of the user terminal.
In a second aspect, an embodiment of the present invention provides a data processing method based on a blockchain network, where the blockchain network includes a plurality of nodes, and the method includes:
the ticket management server receives invoicing data sent by an invoicing device, the invoicing data is generated by the invoicing device according to an invoicing request submitted by an th user terminal and position information of a th user terminal, and the invoicing data comprises the position information of the th user terminal;
the bill management server verifies the billing data;
after the billing data is verified, the bill management server sends the data to be uplink corresponding to the billing data to the node in the block chain network, so that the node in the block chain network writes the data to be uplink into the block chain after passing the common identification verification of the data to be uplink, and the data to be uplink includes the location information of the th user terminal.
In a third aspect, an embodiment of the present invention provides data processing apparatuses, where the apparatuses include:
the acquisition module is used for acquiring the position information of the st user terminal after receiving an invoicing request submitted by the th user terminal;
the generating module is used for generating billing data according to the billing request and the position information of the th user terminal;
and the sending module is used for sending the billing data to a bill management server so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises position information of the user terminal.
In a fourth aspect, an embodiment of the present invention provides data processing apparatuses, which are applied to a blockchain network, where the blockchain network includes a plurality of nodes, and the apparatus includes:
the receiving module is used for receiving invoicing data sent by an invoicing device, the invoicing data is generated by the invoicing device according to an invoicing request submitted by an th user terminal and position information of the th user terminal, and the invoicing data comprises position information of the th user terminal;
the checking module is used for checking the invoicing data;
and the sending module is configured to send to-be-uplink data corresponding to the invoicing data to a node in the block chain network after the invoicing data is verified, so that the node in the block chain network writes the to-be-uplink data into a block chain after the to-be-uplink data is verified, where the to-be-uplink data includes location information of the th ue.
In a fifth aspect, an embodiment of the present invention provides kinds of billing devices, where the billing device includes a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, where the network interface is controlled by the processor to send and receive data, and the storage device is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the data processing method based on the blockchain network according to the aspect.
In a sixth aspect, an embodiment of the present invention provides ticket management servers, where the ticket management server includes a processor, a network interface, and a storage device, where the processor, the network interface, and the storage device are connected to each other, where the network interface is controlled by the processor to send and receive data, and the storage device is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the data processing method based on the blockchain network according to the second aspect.
In a seventh aspect, an embodiment of the present invention provides computer storage media, where the computer storage media stores program instructions, and the program instructions, when executed, are used to implement the data processing method based on the blockchain network according to the or the second aspect.
In the embodiment of the invention, after receiving a billing request submitted by a billing party through an user terminal, billing equipment acquires position information of a user terminal, generates billing data according to the billing request and the position information of a user terminal, and sends the billing data to a bill management server, and after the billing data is verified by the bill management server, the billing data including the position information during billing is written into a block chain through the block chain network, so that the geographic position during billing can be added into the bill information to enrich the information content of the electronic bill, which is beneficial to further to improve the security of the electronic bill and effectively prevent bill counterfeiting.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1a is a block diagram illustrating an architecture of data processing systems according to an embodiment of the present invention;
FIG. 1b is a schematic structural diagram of block chains provided in the embodiment of the present invention;
FIG. 1c is a schematic diagram of processes for generating new blocks according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of data processing methods based on a blockchain network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another data processing methods based on a blockchain network according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another data processing methods based on the blockchain network according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of data processing devices according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another data processing apparatuses according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of kinds of billing devices provided by the embodiment of the invention;
fig. 8 is a schematic structural diagram of ticket management servers according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
Aiming at the problems that the information contained in bills such as electronic invoices is comparatively simple and the like at present, the embodiment of the invention provides data processing methods based on a block chain network, which can add the geographic position during invoicing into the bill information to enrich the information content contained in the electronic invoices, are beneficial to further , and effectively prevent bill counterfeiting.
Referring to fig. 1a, it is a schematic diagram of an architecture of data processing systems according to an embodiment of the present invention, where the data processing system includes a blockchain network 10, a th user terminal 102, a billing device 103, a ticket management server 104, and a second user terminal 105, where:
the blockchain network 10 is a network for performing data sharing between nodes, and the blockchain network may include a plurality of nodes 101, each node 101 may receive input information during normal operation, and maintain shared data (i.e., blockchain) in the blockchain network based on the received input information, in order To ensure information intercommunication in the blockchain network, each node may have information connection, any two nodes may implement Peer-To-Peer (Peer To Peer, P2P) communication, and specifically, may perform P2P communication through a wired communication link or a wireless communication link, for example, when any node in the blockchain network receives the input information, other nodes acquire the input information according To a consensus algorithm, and store the input information as data in the shared data, so that the data stored in all nodes in the blockchain network are .
user terminal 102 may be a device corresponding to a biller, such as an airport, a taxi company, a hotel, a restaurant, a railway station, a mall, etc., who may provide services/goods, second user terminal 105 may be a device corresponding to a ticketed party, which generally refers to parties who purchase/use services/goods provided by the biller, billing device 103 may be a device corresponding to a billing facilitator, which may include, for example, a third party billing agent, etc., for providing billing services to the biller and providing electronic invoices made to the billed party, invoice management server 104 may be a tax bureau server for maintaining and managing invoices such as electronic invoices, which bill management server 104 may access to block chain network 10 and may communicate with node 101 in block chain network 10, for example, sending bill information to node 101 to write into block chain, wherein user terminal 102 and second user terminal 105 may be specifically a smart phone, a tablet computer, a notebook computer, or a computer-loaded computer.
It should be noted that the number of nodes shown in fig. 1a is only illustrative, and any number of nodes may be deployed according to actual needs.
Each node in the blockchain network has a node identifier corresponding thereto, and each node in the blockchain network may store node identifiers of other nodes in the blockchain network, so that a generated block is subsequently broadcast to other nodes in the blockchain network according to the node identifiers of the other nodes.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
The block chain is composed of a plurality of blocks, referring to fig. 1b, the block chain is composed of a plurality of blocks, a starting block comprises a block head and a block main body, an input information characteristic value, a version number, a timestamp and a difficulty value are stored in the block head, input information is stored in the block main body, the lower block of the starting block takes the starting block as a parent block, the lower block also comprises the block head and the block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value, the version number, the timestamp and the difficulty value of the parent block, and the like, so that the block data stored in each block in the block chain is related to the block data stored in the parent block, and the safety of the input information in the block is guaranteed.
When each block in the block chain is generated, referring to fig. 1c, when a node where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in a memory pool, and a hash tree used for recording the input information is updated; and then, updating the updating time stamp to the time of receiving the input information, and obtaining the current block by utilizing a Byzantine fault-tolerant technology BFT-RAFT algorithm. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the block chain network where the newly generated blocks are located according to the node identifications of the other nodes in the block chain network, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
In , in some possible embodiments, after receiving an invoicing request submitted by a th user terminal 102 (i.e., an invoicing party), the invoicing device 103 obtains location information of the th user terminal 102, the invoicing device 103 generates invoicing data according to the invoicing request and the th user terminal 102, then the invoicing device 103 sends the invoicing data to the ticket management server 104, the ticket management server 104 verifies the invoicing data, and after the verification passes, the invoicing data including the th user terminal 102 location information is written into a block chain through a node 101 in the block chain network 10, so that a geographic location at the time of invoicing can be added to the ticket information to enrich the information amount contained in the electronic invoice, which is helpful for further to improve the security of the electronic invoice and effectively prevent the ticket from being forged.
In , after the invoice management server 104 passes the verification of the invoice data, it may send a notification message that the invoice is allowed to be issued to the invoicing device 103, when the invoicing device 103 receives the notification message that the invoice is allowed to be issued, it generates an electronic invoice according to the invoice data, the generated electronic invoice includes the position information of the th user terminal 102, the invoicing device 103 sends the electronic invoice to the second user terminal 105, and the second user terminal 105 displays the electronic invoice after receiving the electronic invoice, so that the position information during the invoice issuance can be displayed during the display of the electronic invoice, thereby facilitating the verification of the authenticity of the invoice when reimbursement and entry are facilitated.
The implementation details of the technical scheme of the embodiment of the invention are explained in detail as follows:
please refer to fig. 2, which is a flowchart illustrating an data processing method based on a blockchain network provided by the data processing system shown in fig. 1a according to an embodiment of the present invention, where the data processing method based on a blockchain network according to an embodiment of the present invention is mainly described from a ticketing apparatus side, and the data processing method based on a blockchain network includes the following steps:
201. and after receiving the billing request submitted by the th user terminal, the billing equipment acquires the position information of the th user terminal.
The location information may include or more of longitude, latitude, altitude, and location identifiers, that is, the location information may refer to a refined geographic location including detailed location coordinates such as longitude, latitude, altitude, and the like, or may refer to a location identifier covering certain area, such as a Point of Interest (POI) in a geographic information system, for example, a name, a street, and the like of an airport, a hotel, a restaurant, a train station, a mall, and the like.
Specifically, when the th user terminal submits the billing request, the location information of the th user terminal may be added to the billing request, and the billing device may obtain the location information of the th user terminal carried in the billing request.
In , after receiving the request for ticket issuing submitted by the user terminal, the billing device may obtain the location information of the user terminal from the network service provider of the user terminal, for example, if the user terminal submits the request for ticket issuing through the mobile communication network, the location information of the user terminal may be obtained through a communication device such as a relevant base station, and if the user terminal submits the request for ticket issuing through the wireless access hotspot, the location information of the user terminal may be obtained through a relevant routing device.
202. And the billing equipment generates billing data according to the billing request and the position information of the th user terminal.
Specifically, the invoicing request may carry related transaction information, for example, consumption records of the user at an airport, a hotel, a restaurant, a train station, a shopping mall, and the like, and after receiving the invoicing request, the invoicing device may generate invoicing data according to the invoicing request and the acquired position information of the th user terminal, where the invoicing data is used to issue an electronic invoice.
203. And the billing equipment sends the billing data to a bill management server, so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises position information of the user terminal.
Specifically, after the billing equipment generates billing data, the billing data is sent to the bill management server for verification, the bill management server can verify the billing qualification and the transaction information of the billing party, if the billing party has the billing qualification and the transaction information is true and correct, the verification of the billing data is confirmed to be passed, and the billing data is sent to the block chain network, so that the block chain network writes the billing data including the position information during billing into the block chain.
In the embodiment of the invention, after receiving a billing request submitted by a billing party through an user terminal, billing equipment acquires position information of a user terminal, generates billing data according to the billing request and the position information of a user terminal, and sends the billing data to a bill management server, and after the billing data is verified by the bill management server, the billing data including the position information during billing is written into a block chain through the block chain network, so that the geographic position during billing can be added into the bill information to enrich the information content of the electronic bill, which is beneficial to further to improve the security of the electronic bill and effectively prevent bill counterfeiting.
In , when receiving a notification message that allows invoicing and is sent after the bill management server checks the invoice data, the invoicing device generates an electronic invoice according to the invoicing data to issue the electronic invoice, where the issued electronic invoice includes the location information of the th user terminal (i.e., the location information during invoicing), the invoicing device can send the electronic invoice to a second user terminal corresponding to a receiver (e.g., a consumer, a passenger, etc.), and the second user terminal can display the location information during invoicing after receiving the electronic invoice, so that the second user terminal can perform auxiliary check on the authenticity of the invoice in combination with the displayed geographic location during invoicing when reimbursing and entering account.
It should be noted that, considering that the location information is kinds of private information, the invoicing party may be allowed to choose not to expose the location information to the invoicee party, that is, the location information during invoicing is only written into the block chain, but the electronic invoice sent to the invoicee party does not include the location information of the th user terminal, that is, when the electronic invoice is displayed by the second user terminal corresponding to the invoicee party, the location information during invoicing is not and is displayed, in this case, when the electronic invoice for invoicing is checked, the location information corresponding to the electronic invoice may be queried from a node of the block chain network to determine whether the location information during invoicing corresponds to the travel plan .
In possible embodiments, when the enterprise reimburses and enters the electronic invoice provided by the employee, the enterprise may query the location information corresponding to the electronic invoice from the node of the blockchain network, and compare the location information with the invoicing location information shown in the electronic invoice provided by the employee to determine whether is satisfied, and if is satisfied, determine that the invoicing location shown in the electronic invoice is not tampered, so that the ticket may be verified by using the characteristic that the data in the blockchain cannot be tampered with, and step ensures the accuracy when the ticket is verified.
In , the position information during invoicing may be regarded as kinds of auxiliary information (or remark information) of the electronic invoice, and besides the position information, other data capable of indicating the position change behavior represented by the electronic invoice may also be regarded as auxiliary information, for example, a flight identifier, a train shift, and the like may be used as auxiliary information during invoicing of the trip-type electronic invoice, that is, information such as the flight identifier, the train shift, and the like may be displayed in the invoicing electronic invoice, and the information such as the flight identifier, the train shift, and the like may be associated with the invoicing data and written into a block chain, so that an enterprise may quickly check and verify records such as employee business trips.
Similarly to the location information, the th user terminal may add information such as a flight identifier and a train shift to an invoicing request submitted to the invoicing device, or may query information such as a flight identifier and a train shift of a party receiving the current invoicing by the invoicing device, which is not limited in the embodiment of the present invention.
In , to ensure readability of the issued electronic invoice, if the position information of the st user terminal is a refined geographic position such as longitude, latitude, altitude, etc., the issuing device may convert the position information of the th user terminal into POI data in a geographic information system when issuing the electronic invoice, and add the POI data to the electronic invoice, for example, if the acquired position information of the th user terminal is information such as longitude, latitude, altitude, etc. of the a airport, the issuing device may convert the name of the a airport into the name of the a airport, and may add the name of the a airport into the issued electronic invoice, and the electronic invoice displayed on the second user terminal corresponding to the person receiving the invoice may display the name of the a airport, thereby improving readability of the issued position information in the electronic invoice.
Please refer to fig. 3, which is a flowchart illustrating another data processing methods based on the blockchain network provided by the data processing system shown in fig. 1a according to an embodiment of the present invention, where the data processing method based on the blockchain network according to the embodiment of the present invention is mainly described from the bill management server side, the blockchain network includes a plurality of nodes, and the data processing method based on the blockchain network includes the following steps:
301. the ticket management server receives invoicing data sent by an invoicing device, the invoicing data is generated by the invoicing device according to an invoicing request submitted by an th user terminal and position information of a th user terminal, and the invoicing data comprises the position information of the th user terminal.
302. And the bill management server verifies the billing data.
The invoicing data may specifically include transaction information, location information of the user terminal, and the like, and the transaction information may include an invoicing party identifier, a ticketing receiver identifier, transaction content, and the like.
Specifically, after receiving the invoicing data sent by the invoicing equipment, the bill management server can inquire the invoicing qualification of the invoicing party according to the invoicing party identification and verify the transaction content, and if the invoicing party has the invoicing qualification and the transaction content is true, the check on the invoicing data is confirmed to be passed.
303. After the billing data is verified, the bill management server sends the data to be uplink corresponding to the billing data to the node in the block chain network, so that the node in the block chain network writes the data to be uplink into the block chain after passing the common identification verification of the data to be uplink, and the data to be uplink includes the location information of the th user terminal.
Specifically, after the checking of the billing data is passed, the ticket management server sends the to-be-uplink data corresponding to the billing data to the node in the block chain network, and after the co-identification verification of the to-be-uplink data is passed, the node in the block chain network writes the to-be-uplink data including the location information of the th user terminal into the block chain.
In the embodiment of the invention, the bill management server receives billing data sent by billing equipment, the billing data comprises position information during billing, the bill management server sends to-be-linked data corresponding to the billing data to the node in the block chain network after the billing data is verified, and the node in the block chain network writes the to-be-linked data comprising the position information during billing into the block chain after the to-be-linked data is verified, so that the geographic position during billing can be added into the bill information and written into the block chain, the information content contained in the electronic invoice is enriched, is facilitated, the safety of the electronic invoice is improved, and the bill forgery is effectively prevented.
In , after the checking of the billing data is passed, the ticket management server sends a notification message for allowing billing to the billing device, so that the billing device generates an electronic invoice according to the billing data, and sends the electronic invoice to the second user terminal, where the electronic invoice includes the location information of the user terminal, so that the billing device can automatically issue the electronic invoice with the billing location after the checking of the billing data by the ticket management server is passed.
In some possible embodiments, the ticket management server can obtain the summary (e.g. hash value) of the transaction information and use the summary of the transaction information and the position information of th ue as the to-be-linked data, so that the geographical position of the billing time can be written into the block chain.
Please refer to fig. 4, which is a flowchart illustrating an data processing method based on a blockchain network provided by the data processing system shown in fig. 1a according to an embodiment of the present invention, where the data processing method based on a blockchain network according to an embodiment of the present invention is mainly described from multiple sides, such as th user terminal, a billing device, a ticket management server, a second user terminal, and a node of the blockchain network, where the blockchain network includes a plurality of nodes, and the data processing method based on a blockchain network includes the following steps:
401. the user terminal submits a billing request to the billing device.
402. The billing device acquires location information of the user terminal.
403. And the billing equipment generates billing data according to the billing request and the position information of the th user terminal.
404. And the billing equipment sends the billing data to a bill management server.
405. And the bill management server verifies the billing data.
406. And after the bill management server passes the check on the billing data, the bill management server sends the data to be linked corresponding to the billing data to the node in the block chain network.
407. And after the node in the block chain network passes the consensus verification of the data to be uplink, writing the data to be uplink into a block chain.
408. And after the bill management server passes the check on the billing data, sending a notification message of allowing billing to the billing equipment.
409. And the billing equipment generates an electronic invoice according to the billing data.
410. And the billing equipment sends the electronic invoice to a second user terminal.
411. And the second user terminal displays the electronic invoice, wherein the displayed electronic invoice comprises the -th user terminal position information.
The specific implementation of steps 401 to 411 may be referred to in the foregoing embodiments, and will not be described herein again.
It should be noted that the sequence of steps 406, 407 and steps 408 to 411 is not limited, and steps 408 to 411 may be executed first, and of course, steps 406, 407 and steps 408 to 411 may also be executed synchronously.
Referring to fig. 5, a schematic structural diagram of data processing apparatuses according to an embodiment of the present invention is shown, where the data processing apparatus according to the embodiment of the present invention includes:
an obtaining module 501, configured to obtain location information of a st user terminal after receiving an invoicing request submitted by an th user terminal;
a generating module 502, configured to generate billing data according to the billing request and the location information of the th user terminal;
a sending module 503, configured to send the billing data to a ticket management server, so that the ticket management server writes the billing data into a block chain through the block chain network after the billing data is verified, where the billing data includes location information of the th user terminal.
Optionally, the generating module 502 is further configured to generate an electronic invoice according to the invoicing data when receiving a notification message that allows invoicing and is sent by the bill management server after the invoicing data is verified;
the sending module 503 is further configured to send the electronic invoice to a second user terminal, so that the second user terminal displays the electronic invoice after receiving the electronic invoice, where the displayed electronic invoice includes the location information of the -th user terminal.
Optionally, the obtaining module 501 is specifically configured to:
after receiving an invoicing request submitted by an th user terminal, acquiring the position information of the th user terminal carried in the invoicing request;
alternatively, the first and second electrodes may be,
after receiving the billing request submitted by the rd user terminal, obtaining the position information of the th user terminal from the network service provider of the th user terminal.
Optionally, the location information includes or more of longitude, latitude, altitude, and location identification.
It should be noted that the functions of each functional module of the data processing apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 6, a schematic structural diagram of another data processing apparatuses according to an embodiment of the present invention is shown, where the data processing apparatus according to the embodiment of the present invention is applied to a blockchain network, where the blockchain network includes a plurality of nodes, and the apparatus includes:
a receiving module 601, configured to receive invoicing data sent by an invoicing device, where the invoicing data is generated by the invoicing device according to an invoicing request submitted by an -th user terminal and location information of the -th user terminal after receiving the invoicing request, and the invoicing data includes location information of the -th user terminal;
a verification module 602, configured to verify the invoicing data;
a sending module 603, configured to send, to a node in the blockchain network, to-be-uplink data corresponding to the invoicing data after the invoicing data is verified, so that the node in the blockchain network writes the to-be-uplink data into a blockchain after the to-be-uplink data is verified, where the to-be-uplink data includes location information of the th ue.
Optionally, the sending module 603 is further configured to send a notification message allowing invoicing to the invoicing equipment after the invoicing data is verified, so that the invoicing equipment sends an electronic invoice corresponding to the invoicing data to a second user terminal, where the electronic invoice includes the location information of the th user terminal.
Optionally, the invoicing data further includes transaction information, and the apparatus further includes a determining module 604, wherein:
the determining module 604 is configured to obtain the summary of the transaction information, and use the summary of the transaction information and the location information of the th ue as the to-be-linked data corresponding to the billing data.
It should be noted that the functions of each functional module of the data processing apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Please refer to fig. 7, which is a schematic structural diagram of billing devices according to an embodiment of the present invention, the billing device according to an embodiment of the present invention includes a power supply module, and the like, and includes a processor 701, a storage device 702, and a network interface 703, where data may be exchanged between the processor 701, the storage device 702, and the network interface 703.
The storage 702 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 702 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means 702 may also comprise a combination of memories of the kind described above.
The processor 701 may be a Central Processing Unit (CPU) 701. in embodiments, the processor 701 may also be a Graphics processor 701 (GPU). the processor 701 may also be a combination of a CPU and a GPU. in embodiments, the storage device 702 is used to store program instructions the processor 701 may invoke the program instructions to perform the following operations:
after receiving an invoicing request submitted by an th user terminal, acquiring the position information of the th user terminal;
generating billing data according to the billing request and the position information of the th user terminal;
and sending the billing data to a bill management server, so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises the location information of the th user terminal.
Optionally, the processor 701 is further configured to:
when a notification message which is sent by the bill management server and allows billing after the billing data is verified is received, generating an electronic invoice according to the billing data;
and sending the electronic invoice to a second user terminal so that the second user terminal displays the electronic invoice after receiving the electronic invoice, wherein the displayed electronic invoice comprises the -th user terminal position information.
Optionally, the processor 701 is specifically configured to:
after receiving an invoicing request submitted by an th user terminal, acquiring the position information of the th user terminal carried in the invoicing request;
alternatively, the first and second electrodes may be,
after receiving the billing request submitted by the rd user terminal, obtaining the position information of the th user terminal from the network service provider of the th user terminal.
Optionally, the location information includes or more of longitude, latitude, altitude, and location identification.
In a specific implementation, the processor 701, the storage device 702, and the network interface 703 described in this embodiment of the present invention may execute the implementation described in the related embodiment of the block chain network-based data processing method of in the embodiment of the present invention provided in fig. 2, and may also execute the implementation described in the related embodiment of the data processing device of in the embodiment of the present invention provided in fig. 5, which is not described herein again.
Please refer to fig. 8, which is a schematic structural diagram of ticket management servers according to an embodiment of the present invention, the ticket management server according to an embodiment of the present invention includes a power supply module and the like, and includes a processor 801, a storage device 802, and a network interface 803, where data can be exchanged between the processor 801, the storage device 802, and the network interface 803.
The storage device 802 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 802 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), or the like; the storage means 802 may also comprise a combination of memories of the kind described above.
The processor 801 may be a Central Processing Unit (CPU), in embodiments, the processor 801 may also be a Graphics processor 801 (GPU), and the processor 801 may also be a combination of a CPU and a GPU, in embodiments, the storage device 802 is used to store program instructions, the processor 801 may call the program instructions to perform the following operations:
receiving billing data sent by billing equipment, wherein the billing data is generated by the billing equipment according to a billing request submitted by an user terminal and position information of a user terminal after the billing equipment receives the billing request, and the billing data comprises the position information of the user terminal;
verifying the billing data;
after the checking of the invoicing data is passed, sending to-be-uplink data corresponding to the invoicing data to a node in the block chain network, so that the node in the block chain network writes the to-be-uplink data into a block chain after passing the common identification verification of the to-be-uplink data, wherein the to-be-uplink data includes the location information of the th user terminal.
Optionally, the processor 801 is further configured to:
and after the checking of the invoicing data is passed, sending a notification message for allowing invoicing to the invoicing equipment, so that the invoicing equipment sends an electronic invoice corresponding to the invoicing data to a second user terminal, wherein the electronic invoice comprises the position information of the user terminal.
Optionally, the invoicing data further includes transaction information, and the processor 801 is further configured to:
and acquiring the abstract of the transaction information, and taking the abstract of the transaction information and the position information of the th user terminal as the to-be-linked data corresponding to the billing data.
In a specific implementation, the processor 801, the storage device 802, and the network interface 803 described in this embodiment of the present invention may execute the implementation manners described in the related embodiments of the data processing methods based on the blockchain network provided in fig. 3 in this embodiment of the present invention, and may also execute the implementation manners described in the related embodiments of the data processing apparatuses provided in fig. 6 in this embodiment of the present invention, which is not described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for simplicity of description, the aforementioned method embodiments are described as series of acts in combination, but those skilled in the art will recognize that the present invention is not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the invention.
For example, the above-described embodiments of the apparatus are merely illustrative, such as the above-described division of units, only logical function divisions, and other divisions may be possible in actual implementation, such as multiple units or components may be combined or integrated into another systems, or features may be omitted, or not executed, another point, and the shown or discussed coupling or direct coupling or communication connection between each other may be through interfaces, indirect coupling or communication connection of the apparatuses or units, and may be electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in places, or may also be distributed on multiple network units.
In addition, the functional units in the embodiments of the present invention may be integrated into processing units, or each unit may exist alone physically, or two or more units are integrated into units.
Based on the understanding, the technical solution of the present invention, which is essentially or partially contributed to by the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in storage media, which includes several instructions for causing computer devices (which may be personal computers, servers, or network devices, etc., and may specifically be processors in the computer devices) to execute all or part of the steps of the methods according to the embodiments of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1, A data processing method based on block chain network, the method includes:
after receiving an invoicing request submitted by an th user terminal, the invoicing equipment acquires the position information of the th user terminal;
the billing equipment generates billing data according to the billing request and the position information of the th user terminal;
and the billing equipment sends the billing data to a bill management server, so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises position information of the user terminal.
2. The method of claim 1, wherein after the billing device sends the billing data to a ticket management server, the method further comprises:
when the billing equipment receives a notification message which is sent by the bill management server and allows billing after the billing data is verified, generating an electronic invoice according to the billing data;
the invoicing equipment sends the electronic invoice to a second user terminal so that the second user terminal displays the electronic invoice after receiving the electronic invoice, wherein the displayed electronic invoice comprises the -th user terminal position information.
3. The method as claimed in claim 1 or 2, wherein the obtaining, by the ticketing apparatus, the location information of the th user terminal after receiving the ticketing request submitted by the th user terminal comprises:
after receiving an invoicing request submitted by an th user terminal, the invoicing equipment acquires the position information of the th user terminal carried in the invoicing request;
alternatively, the first and second electrodes may be,
after receiving the billing request submitted by the th user terminal, the billing device obtains the location information of the th user terminal from the network facilitator of the th user terminal.
4. The method of claim 1, wherein the location information comprises or more of longitude, latitude, altitude, and location identification.
5, A data processing method based on block chain network, wherein the block chain network includes a plurality of nodes, the method includes:
the ticket management server receives invoicing data sent by an invoicing device, the invoicing data is generated by the invoicing device according to an invoicing request submitted by an th user terminal and position information of a th user terminal, and the invoicing data comprises the position information of the th user terminal;
the bill management server verifies the billing data;
after the billing data is verified, the bill management server sends the data to be uplink corresponding to the billing data to the node in the block chain network, so that the node in the block chain network writes the data to be uplink into the block chain after passing the common identification verification of the data to be uplink, and the data to be uplink includes the location information of the th user terminal.
6. The method of claim 5, further comprising:
and after the bill management server passes the verification of the invoicing data, sending a notification message of allowing invoicing to the invoicing equipment, so that the invoicing equipment sends an electronic invoice corresponding to the invoicing data to a second user terminal, wherein the electronic invoice comprises the position information of the user terminal.
7. The method according to claim 5 or 6, wherein the billing data further includes transaction information, and before the ticket management server sends the uplink data to be linked corresponding to the billing data to the node in the blockchain network, the method further includes:
and the bill management server acquires the abstract of the transaction information, and takes the abstract of the transaction information and the position information of the th user terminal as the data to be linked up corresponding to the billing data.
A data processing apparatus of the type 8, , comprising:
the acquisition module is used for acquiring the position information of the st user terminal after receiving an invoicing request submitted by the th user terminal;
the generating module is used for generating billing data according to the billing request and the position information of the th user terminal;
and the sending module is used for sending the billing data to a bill management server so that the bill management server writes the billing data into a block chain through the block chain network after the billing data is verified, wherein the billing data comprises position information of the user terminal.
A data processing apparatus of the type , for use in a blockchain network comprising a plurality of nodes, the apparatus comprising:
the receiving module is used for receiving invoicing data sent by an invoicing device, the invoicing data is generated by the invoicing device according to an invoicing request submitted by an th user terminal and position information of the th user terminal, and the invoicing data comprises position information of the th user terminal;
the checking module is used for checking the invoicing data;
and the sending module is configured to send to-be-uplink data corresponding to the invoicing data to a node in the block chain network after the invoicing data is verified, so that the node in the block chain network writes the to-be-uplink data into a block chain after the to-be-uplink data is verified, where the to-be-uplink data includes location information of the th ue.
10, computer storage media, wherein the computer storage media stores program instructions, when executed, for implementing the blockchain network based data processing method of any of claims 1 to 4 or the blockchain network based data processing method of any of claims 5 to 7.
CN201910972178.5A 2019-10-14 2019-10-14 data processing method, device and storage medium based on block chain network Pending CN110738536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910972178.5A CN110738536A (en) 2019-10-14 2019-10-14 data processing method, device and storage medium based on block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910972178.5A CN110738536A (en) 2019-10-14 2019-10-14 data processing method, device and storage medium based on block chain network

Publications (1)

Publication Number Publication Date
CN110738536A true CN110738536A (en) 2020-01-31

Family

ID=69269974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910972178.5A Pending CN110738536A (en) 2019-10-14 2019-10-14 data processing method, device and storage medium based on block chain network

Country Status (1)

Country Link
CN (1) CN110738536A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111383016A (en) * 2020-03-05 2020-07-07 中国银行股份有限公司 Electronic invoice data processing method, device and system based on private chain
CN111507815A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Block chain based information acquisition method, device, equipment and storage medium
CN112256799A (en) * 2020-11-12 2021-01-22 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method
CN108776913A (en) * 2018-06-06 2018-11-09 阿里巴巴集团控股有限公司 Invoice source tracing method and device
CN108830600A (en) * 2018-06-19 2018-11-16 方欣科技有限公司 A kind of electronic invoice system and implementation method based on block chain
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109598148A (en) * 2018-10-31 2019-04-09 华中科技大学 A kind of invoice management method and system based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method
CN108776913A (en) * 2018-06-06 2018-11-09 阿里巴巴集团控股有限公司 Invoice source tracing method and device
CN108830600A (en) * 2018-06-19 2018-11-16 方欣科技有限公司 A kind of electronic invoice system and implementation method based on block chain
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109598148A (en) * 2018-10-31 2019-04-09 华中科技大学 A kind of invoice management method and system based on block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111383016A (en) * 2020-03-05 2020-07-07 中国银行股份有限公司 Electronic invoice data processing method, device and system based on private chain
CN111507815A (en) * 2020-04-20 2020-08-07 腾讯科技(深圳)有限公司 Block chain based information acquisition method, device, equipment and storage medium
CN112256799A (en) * 2020-11-12 2021-01-22 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, server and storage medium

Similar Documents

Publication Publication Date Title
US11042943B2 (en) Methods and systems for providing digital identification cards for mobile applications
WO2019001139A1 (en) Method and device for running chaincode
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
US10755284B2 (en) Method and apparatus for preparing, storing and recording compliant records for motor carriers, registrants, and governmental organizations
CN110738536A (en) data processing method, device and storage medium based on block chain network
CN110738471A (en) bill management method based on block chain network and related equipment
CN104378282A (en) Information sending method and information forwarding method, device and system
CN110401630A (en) Verification method, device, electronic equipment and the medium of transaction certificate
CN111311277B (en) Bill processing method and device based on block chain network and related equipment
CN110599273A (en) Data processing method, data processing device, node equipment and storage medium
CN113704802A (en) Data sharing exchange system and electronic equipment
CN111325586B (en) Bill generation method, device, server and medium based on block chain network
US20150019293A1 (en) System and method for privacy compliant gis file format delivery system for payment data
CN114707995A (en) Payment security management method and device and payment system
CN110599272A (en) Method for issuing electronic invoice and related product
US20170011456A1 (en) System and method for an electronic consumer debt extinguishment process
CN117474458A (en) Virtual resource issuing method, device, system, computer equipment and storage medium
CN109033884B (en) Real estate service processing method and block chain network
CN116452214A (en) Block chain-based after-sales information processing method and device and computer equipment
CN116308352A (en) Credential generation method, apparatus, computer device, and storage medium
CN106980889A (en) Analogy method, device and the analogue means of non-contact IC card
CN117078301A (en) Coupon processing method and device based on blockchain and computer equipment
Forero Velasco Microservices for a carrying hailing service system: management of cargo transports in real-time
CN117573717A (en) Resource interaction business record processing method, device, computer equipment and storage medium
CN114897618A (en) Data processing control method and device, computer equipment and data processing system

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