Data processing method, related equipment and storage medium based on blockchain network

By using smart contracts in the blockchain network to process tax refund requests, the problem of low efficiency of existing tax refund methods is solved, an efficient and safe automated tax refund process is realized, and the user experience is improved.

CN110599349BActive Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910915917.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-24
Publication Date
2024-08-27
Estimated Expiration
2040-06-06

AI Technical Summary

Technical Problem

Existing tax refund methods are time-consuming and inefficient, and cannot meet users' needs for efficient and fast tax refunds.

Method used

Using a data processing method based on the blockchain network, the tax refund request is obtained through the node, the smart contract is called to generate the tax refund transaction, including the tax refund amount and the account specified by the user, and the transaction is sent to the tax terminal to realize automated and intelligent tax refund.

Benefits of technology

While ensuring security, the tax refund efficiency is improved, the user consumption experience is improved, and the automated and intelligent tax refund process is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110599349B
    Figure CN110599349B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a data processing method based on a blockchain network, related equipment and storage medium, wherein the method comprises: a node obtains a tax refund request, the tax refund request carries an invoice identifier, and the node is any one of the multiple nodes; the node calls a smart contract to generate a tax refund transaction corresponding to the invoice identifier, the tax refund transaction includes a tax refund amount and an account specified by a user; the node sends the tax refund transaction to a tax terminal, so that the tax terminal refunds the money to the account specified by the user according to the tax refund transaction. Through this implementation method, the user's demand for automation and intelligence of tax refunds can be met, and the tax refund efficiency is improved while ensuring security, thereby enhancing the user's consumption experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, related equipment and storage medium based on a blockchain network. Background Art

[0002] At present, when consumers shop abroad, they mainly apply for tax refund manually by submitting invoices, passports and other documents. This manual tax refund method is time-consuming and inefficient. Therefore, how to make shopping tax refund more efficient and fast has become an urgent problem to be solved. Summary of the invention

[0003] The embodiments of the present invention provide a data processing method, related equipment and storage medium based on a blockchain network, which can meet the user's demand for automation and intelligence of tax refunds, and improve the tax refund efficiency while ensuring security, thereby enhancing the user's consumption experience.

[0004] In a first aspect, an embodiment of the present invention provides a data processing method based on a blockchain network, wherein the blockchain network includes multiple nodes, and the method includes:

[0005] The node obtains a tax refund request, the tax refund request carries an invoice identifier, and the node is any one of the multiple nodes;

[0006] The node calls a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account specified by a user;

[0007] The node sends the tax refund transaction to the tax terminal, so that the tax terminal refunds the tax to the account designated by the user according to the tax refund transaction.

[0008] In a second aspect, an embodiment of the present invention provides a data processing device, which is arranged on a node in a blockchain network, and the device includes:

[0009] An acquisition module, used to acquire a tax refund request, wherein the tax refund request carries an invoice identifier;

[0010] A generation module, used to call a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account specified by a user;

[0011] The sending module is used to send the tax refund transaction to the tax terminal, so that the tax terminal refunds the tax refund to the account designated by the user according to the tax refund transaction.

[0012] In a third aspect, an embodiment of the present invention provides a node device, including: a processor and a memory, wherein the processor is configured to execute:

[0013] Obtaining a tax refund request, wherein the tax refund request carries an invoice identifier;

[0014] Calling a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account designated by a user;

[0015] The tax refund transaction is sent to a tax terminal, so that the tax terminal refunds the tax to the account designated by the user according to the tax refund transaction.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, in which program instructions are stored. When the program instructions are executed, they are used to implement the method described in the first aspect above.

[0017] The embodiment of the present invention obtains a tax refund request and calls a smart contract to generate a tax refund transaction corresponding to the invoice identifier carried in the tax refund request, wherein the tax refund transaction includes the tax refund amount and the account specified by the user; thereby sending the tax refund transaction to the tax terminal so that the tax terminal refunds the amount to the account specified by the user according to the tax refund transaction. This implementation method can meet the user's demand for automated and intelligent tax refunds, improve tax refund efficiency and enhance user consumption experience while ensuring security. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1a It is a structural schematic diagram of a tax refund system provided by an embodiment of the present invention;

[0020] Figure 1b It is a schematic diagram of the structure of a blockchain provided by an embodiment of the present invention;

[0021] Figure 1c is a schematic diagram of a process of generating a new block provided by an embodiment of the present invention;

[0022] Figure 2 It is a flowchart of a data processing method based on a blockchain network provided by an embodiment of the present invention;

[0023] Figure 3 It is a flowchart of another data processing method based on a blockchain network provided by an embodiment of the present invention;

[0024] Figure 4is a structural schematic diagram of a data processing device provided by an embodiment of the present invention;

[0025] Figure 5 It is a structural diagram of a node device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0028] The data processing method based on the blockchain network provided in the embodiment of the present invention can be applied to a tax refund system, wherein the tax refund system includes a blockchain network, a tax refund device, a tax terminal, an invoicing terminal, a user terminal and an entry-exit management center. In some embodiments, the blockchain network, the tax refund device, the tax terminal, the invoicing terminal, the user terminal and the entry-exit management center establish a communication connection with each other. In some embodiments, the communication connection method may include but is not limited to Wi-Fi, Bluetooth, Near Field Communication (NFC), etc.

[0029] In response to the common problems of long time and low efficiency in current tax refund transactions, the embodiments of the present invention provide a data processing method based on a blockchain network, which can meet users' demands for automation and intelligence of tax refunds, improve tax refund efficiency while ensuring security, and enhance users' consumption experience.

[0030] The following is combined with Figure 1a and attached Figure 1b The tax refund system provided by the embodiment of the present invention is schematically described.

[0031] See also Figure 1a , Figure 1aIt is a structural diagram of a tax refund system provided by an embodiment of the present invention. The tax refund system includes: a blockchain network 10, a tax refund device 11, a tax terminal 12, an invoicing terminal 13, a user terminal 14, and an entry-exit management center 15. Among them, the blockchain network 10, the tax refund device 11, the tax terminal 12, the invoicing terminal 13, the user terminal 14, and the entry-exit management center 15 can establish a communication connection with each other through a wireless communication connection. Among them, in some scenarios, the blockchain network 10, the tax refund device 11, the tax terminal 12, the invoicing terminal 13, the user terminal 14, and the entry-exit management center 15 can also establish a communication connection with each other through a wired communication connection. In some embodiments, the tax refund device 11, the invoicing terminal 13, and the user terminal 14 may include but are not limited to smart terminal devices such as smart phones, tablet computers, laptops, desktop computers, vehicle-mounted smart terminals, and smart watches. In some embodiments, the tax terminal 12 and the entry-exit management center 15 may be a server.

[0032] In one embodiment, the blockchain network 10 refers to a network for sharing data between nodes, and the blockchain network may include multiple nodes 101. Each node 101 can receive input information when performing normal work, and maintain the shared data (i.e., blockchain) in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there can be an information connection between each node, and peer-to-peer (P2P) communication can be achieved between any two nodes, and P2P communication can be performed specifically through a wired communication link or a wireless communication link. For example, when any node in the blockchain network receives input information, other nodes obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the blockchain network are consistent.

[0033] The tax refund device 11, the tax terminal 12, the invoicing terminal 13, the user terminal 14 and the entry-exit management center 15 can access the blockchain network and communicate with the nodes in the blockchain network, for example, initiating tax refund transactions, purchase transactions, etc. to the nodes.

[0034] It should be noted that Figure 1a The number of nodes shown in the figure is only indicative. Any number of nodes can be deployed according to actual needs. The tax refund device 11, the tax terminal 12, the invoicing terminal 13, the user terminal 14 and the entry-exit management center 15 can communicate with the same node in the blockchain network or communicate with different nodes in the blockchain network respectively.

[0035] Among them, for each node in the blockchain network, there is a node identifier corresponding to it, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. A node identifier list as shown in the following table can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an Internet Protocol (IP) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for explanation.

[0036] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1b , Figure 1b It is a structural diagram of a blockchain provided by an embodiment of the present invention. The blockchain is composed of multiple blocks, and the genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information; the next block of the genesis block uses the genesis block as a parent block, and the next block also includes a block header and a block body. The block header stores input information feature values ​​of the current block, block header feature values, version numbers, timestamps, and difficulty values ​​of the parent block, and so on, so that the block data stored in each block in the blockchain are associated with the block data stored in the parent block, ensuring the security of the input information in the block.

[0037] Table 1

[0038] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258

[0039] Among them, when generating each block in the blockchain, see Figure 1c , Figure 1c It is a schematic diagram of a process of generating a new block provided by an embodiment of the present invention. When receiving input information, the node where the blockchain is located verifies the input information, and after completing the verification, stores the input information in the memory pool, and updates the hash tree used to record the input information; then, the update timestamp is updated to the time when the input information is received, and different random numbers are tried, and the characteristic value calculation is performed multiple times, so that the calculated characteristic value can satisfy the following formula:

[0040] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET

[0041] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.

[0042] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identification of other nodes in the blockchain network. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.

[0043] Among them, smart contracts can be run on the nodes of the blockchain network. Smart contracts are code implementations that are executed when certain conditions are met. Developers can define the contract logic through programming languages ​​and publish it to the blockchain (smart contract registration). According to the logic of the contract terms, they call keys or other events to trigger execution and complete the contract logic. At the same time, it also provides the function of upgrading and canceling smart contracts.

[0044] In some feasible implementations, a node 101 of the blockchain network 10 can obtain a tax refund request, which carries an invoice identifier; and call a smart contract to generate a tax refund transaction corresponding to the invoice identifier, and the tax refund transaction includes the tax refund amount and the account specified by the user. Node 101 sends the tax refund transaction to the tax terminal 12, so that the tax terminal 12 refunds the tax to the account specified by the user according to the tax refund transaction, so that the tax refund transaction can be completed quickly and efficiently through the blockchain, and security can be effectively guaranteed.

[0045] In some feasible implementations, a node 101 of the blockchain network 10 can obtain the bill information of the electronic invoice and the user's identity sent by the invoicing terminal 13 after issuing the electronic invoice for the user's consumption transaction, and write the bill information into the block after binding it with the identity, thereby broadcasting the block to other nodes in the blockchain network 10. After the other nodes pass the consensus verification of the block, the node 101 adds the block to the blockchain network 10, which effectively prevents tampering and ensures the validity and traceability of the tax refund data.

[0046] The following is a schematic illustration of the data processing method based on the blockchain network provided by an embodiment of the present invention in conjunction with the accompanying drawings.

[0047] For details, please see Figure 2 , Figure 2 It is a flowchart of a data processing method based on a blockchain network provided by an embodiment of the present invention. The data processing method based on a blockchain network in an embodiment of the present invention can be executed by a data processing device, wherein the data processing device is set in a node of the blockchain network in a tax refund system, wherein the specific explanation of the tax refund system is as described above. Specifically, the method in an embodiment of the present invention includes the following steps.

[0048] S201: Obtain a tax refund request, wherein the tax refund request carries an invoice identifier.

[0049] In an embodiment of the present invention, a node can obtain a tax refund request, wherein the tax refund request carries an invoice identifier, and the node is any one of multiple nodes in the blockchain network. In some embodiments, the invoice identifier includes but is not limited to any one or more characters such as numbers, letters, and words. In one example, the invoice identifier can be a number.

[0050] In one embodiment, when obtaining a tax refund request, the node can receive a tax refund request sent by a user through a tax refund device. In one embodiment, the tax refund device may include a tax refund interface, and the user can enter tax refund information such as an invoice identifier and an identity identifier on the tax refund interface. After the user exits customs at the airport, the tax refund device can use the tax refund device to enter tax refund information such as an invoice identifier and an identity identifier. The tax refund device can generate a tax refund request based on the tax refund information entered by the user. The user sends the tax refund request to the tax blockchain by selecting the tax refund control on the tax refund device, so that the node in the tax blockchain can receive the tax refund request sent by the user through the tax refund device. In some embodiments, the identity identifier may include but is not limited to any one or more of a passport number, an ID card number, etc. In some embodiments, the tax blockchain is a blockchain in the aforementioned blockchain network.

[0051] For example, after going through customs at the airport, the user can use the tax refund device to enter the invoice ID and passport number. The tax refund device can generate a tax refund request based on the invoice ID and passport number entered by the user. The user sends the tax refund request to the tax blockchain by selecting the tax refund control on the tax refund device, so that the nodes in the tax blockchain can receive the tax refund request sent by the user through the tax refund device.

[0052] In one embodiment, before receiving the tax refund request sent by the user through the tax refund device, the node can obtain the bill information of the electronic invoice sent by the invoicing terminal after issuing the electronic invoice for the user's consumption transaction and the identity of the user. The node can bind the bill information with the identity and write it into the block, and broadcast the block to other nodes among the multiple nodes, so that when the other nodes verify the block, the block is added to the tax blockchain. Through this implementation, tampering is effectively prevented and the validity and traceability of the tax refund data are guaranteed.

[0053] In one embodiment, the node can obtain the bill information of the electronic invoice and the identity of the user sent by the billing terminal after issuing the electronic invoice for the user's consumption transaction, and calculate the summary information of the bill information and the summary information of the user's identity. The node can bind the summary information of the bill information with the corresponding relationship of the summary information of the user's identity and write them into the block, and broadcast the block to other nodes among the multiple nodes, so that when the other nodes verify the corresponding relationship between the summary information of the bill information in the block and the summary information of the user's identity, the block is added to the tax blockchain. Through this embodiment, the immutability of the tax refund information is ensured.

[0054] In one embodiment, before receiving the tax refund request sent by the user through the tax refund device, the node can receive the tax refund request sent by the tax refund device after verifying that the invoice identifier entered by the user matches the identity identifier. In one embodiment, the user can enter the invoice identifier and the identity identifier through the tax refund device, and verify the invoice identifier and the identity identifier. If it is verified that the invoice identifier entered by the user matches the identity identifier, the tax refund device sends a tax refund request to the node of the blockchain, so that the node can receive the tax refund request sent by the user through the tax refund device. Through this embodiment, tax refunds can be requested under the premise of ensuring the security of the user's identity, thereby improving the security of the tax refund operation.

[0055] In one embodiment, when receiving a tax refund request sent by a user through a tax refund device, the node may receive a tax refund request sent by the tax refund device after successfully identifying a graphic code displayed by a designated application on a user terminal corresponding to the user, wherein the graphic code includes the bill information of the electronic invoice sent by the invoicing terminal to the user terminal. In some embodiments, the graphic code may include but is not limited to any one or more of a QR code and a barcode. Through this implementation, the complexity of the tax refund operation is reduced and the flexibility of the tax refund is improved.

[0056] In one example, after issuing an electronic invoice for a user's consumption transaction, the invoicing terminal can generate a corresponding graphic code based on the bill information of the electronic invoice and send the graphic code to the user terminal of the user, and the user can store the graphic code in a designated application of the user terminal through the user terminal. When the user leaves the country, the tax refund device can scan the graphic code, and when the tax refund device successfully recognizes the graphic code, it can send a tax refund request to the node.

[0057] For example, after issuing an electronic invoice for a user's consumption transaction, the invoicing terminal can generate a corresponding QR code based on the bill information of the electronic invoice and send the QR code to the user terminal of the user, and the user can store the QR code in the designated application of the user terminal through the user terminal. When the user leaves the country, the tax refund device can scan and identify the QR code. When the tax refund device successfully identifies the QR code, it can obtain the bill information corresponding to the QR code, generate a tax refund request based on the bill information, and send the tax refund request to the node of the tax blockchain.

[0058] In one implementation, after the user successfully identifies the graphic code displayed by the designated application on the user terminal corresponding to the user, the user can obtain the invoice identifier and identity identifier corresponding to the graphic code, and verify the invoice identifier and identity identifier. If the invoice identifier input by the user is verified to match the identity identifier, the tax refund device sends a tax refund request to the node of the blockchain, so that the node can receive the tax refund request sent by the user through the tax refund device. Through this implementation, tax refunds can be requested under the premise of ensuring the security of the user's identity, thereby improving the security of tax refund operations.

[0059] For example, after the user successfully recognizes the QR code displayed by the designated application on the user terminal corresponding to the user, the user can obtain the invoice identifier and passport number corresponding to the QR code, and verify the invoice identifier and passport number. If the verification shows that the invoice identifier entered by the user matches the passport number, the tax refund device sends a tax refund request to the node of the blockchain, so that the node can receive the tax refund request sent by the user through the tax refund device.

[0060] S202: Calling a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account designated by a user.

[0061] In an embodiment of the present invention, a node may call a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account specified by a user. In some embodiments, the explanation of the smart contract is as described above and will not be repeated here.

[0062] In one embodiment, the tax refund request also carries an identity identifier. Before the node calls the smart contract to generate a tax refund transaction corresponding to the invoice identifier, it can obtain the first summary information of the invoice identifier carried in the tax refund request and the second summary information of the identity identifier, and query from the tax blockchain whether the invoice identifier carried in the tax refund request and the identity identifier match based on the first summary information and the second summary information. If they match, the step of calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier is executed.

[0063] In one embodiment, the node queries the tax blockchain based on the first summary information and the second summary information whether the corresponding relationship between the summary information of the invoice identifier carried in the tax refund request and the summary information of the identity identifier carried in the tax refund request matches the corresponding relationship between the first summary information and the second summary information. If they match, the step of calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier is executed. This implementation method effectively prevents tampering and avoids refunding the wrong tax, thereby ensuring the security of the tax refund.

[0064] S203: Send the tax refund transaction to the tax terminal, so that the tax terminal refunds the tax refund to the account designated by the user according to the tax refund transaction.

[0065] In an embodiment of the present invention, the node may send the tax refund transaction to a tax terminal, so that the tax terminal refunds the tax refund transaction to an account designated by the user. In one example, the account designated by the user may be a bank account designated by the user.

[0066] In one embodiment, the tax refund request also carries an identity identifier. Before the node sends the tax refund transaction to the tax terminal, it can send a query request to the entry-exit management center, and the query request includes the identity identifier carried in the tax refund request. The node can obtain the entry-exit information corresponding to the identity identifier sent by the entry-exit management center, and determine whether the user corresponding to the identity identifier has left the country based on the entry-exit information. If it is determined that the user has left the country, the tax refund transaction is sent to the tax terminal, so that the tax terminal refunds the money to the account specified by the user based on the tax refund transaction. Through this implementation method, it can be ensured that the user can get a tax refund after leaving the country, and a safe tax refund can be achieved.

[0067] For example, after calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier in the tax refund request, the node may send a query request to the exit-entry management center, and the query request includes the identity identifier A carried in the tax refund request. The node may obtain the exit-entry information corresponding to the identity identifier A sent by the exit-entry management center, and determine whether the user corresponding to the identity identifier A has left the country based on the exit-entry information. If it is determined that the user has left the country, the node may send the tax refund transaction to the tax terminal, so that the tax terminal refunds the money to the account specified by the user based on the tax refund transaction.

[0068] In an embodiment of the present invention, a node can obtain a tax refund request and call a smart contract to generate a tax refund transaction corresponding to the invoice identifier carried in the tax refund request, wherein the tax refund transaction includes the tax refund amount and the account specified by the user, thereby sending the tax refund transaction to the tax terminal so that the tax terminal refunds the amount to the account specified by the user according to the tax refund transaction. This implementation method can meet the user's demand for automated and intelligent tax refunds, improve tax refund efficiency and enhance user consumption experience while ensuring security.

[0069] For details, please see Figure 3 , Figure 3 is a flowchart of another data processing method based on a blockchain network provided by an embodiment of the present invention. Specifically, the data processing method based on a blockchain network in an embodiment of the present invention is Figure 2 The difference of the data processing method based on the blockchain network is that the embodiment of the present invention provides a detailed description of the situation of early tax refund and freezing the tax refund funds, and unfreezing the tax refund funds after the user leaves the country. Specifically, the method of the embodiment of the present invention includes the following steps.

[0070] S301: receiving an electronic invoice issued for a user's consumption transaction from an invoicing terminal, wherein the bill information of the electronic invoice carries the tax refund funds and the account designated by the user.

[0071] In the embodiment of the present invention, the node may receive an electronic invoice issued for a user's consumption transaction and sent by an invoicing terminal, wherein the bill information of the electronic invoice carries the tax refund funds and an account designated by the user.

[0072] S302: Generate a freezing notice based on the tax refund funds carried in the electronic invoice and the account designated by the user, and send the freezing notice to the tax terminal so that the tax terminal freezes the tax refund funds refunded to the account designated by the user.

[0073] In an embodiment of the present invention, the node may generate a freezing notice based on the tax refund funds carried in the electronic invoice and the account designated by the user, and send the freezing notice to the tax terminal so that the tax terminal freezes the tax refund funds refunded to the account designated by the user.

[0074] In one embodiment, when the invoicing terminal issues an electronic invoice for the user's consumption transaction, the tax refund funds and the account specified by the user can be sent to the node, so that the node triggers the smart contract on the node to generate a freezing notice according to the tax refund funds and the account specified by the user. The freezing notice is used to instruct the tax terminal to freeze the tax refund funds refunded to the account specified by the user. The node can send the freezing notice to the tax terminal, so that the tax terminal freezes the tax refund funds refunded to the account specified by the user. Through this implementation, early tax refund can be achieved while ensuring safety, further improving the efficiency of tax refund.

[0075] For example, when the invoicing terminal issues an electronic invoice for the user's consumption transaction, it can send the tax refund fund X and the account Y designated by the user to the node of the tax blockchain to trigger the smart contract on the node to generate a freezing notice based on the tax refund fund X and the account Y designated by the user. The freezing notice is used to instruct the tax terminal to freeze the tax refund fund X refunded to the account Y designated by the user. The node can send the freezing notice to the tax terminal to enable the tax terminal to freeze the tax refund fund X refunded to the account Y designated by the user.

[0076] S303: receiving a tax refund request sent by the invoicing terminal after issuing an electronic invoice for the user's consumption transaction.

[0077] In an embodiment of the present invention, the node may receive a tax refund request sent by the invoicing terminal after issuing an electronic invoice for a user's consumption transaction. In some embodiments, the tax refund request carries an identity identifier.

[0078] S304: According to the identity carried in the tax refund request, check whether there is any frozen funds in the account designated by the user corresponding to the identity. If the query result is yes, execute step S305; if the query result is no, execute step S302.

[0079] In the embodiment of the present invention, the node can query whether there is any frozen funds in the account designated by the user corresponding to the identity identifier according to the identity identifier carried in the tax refund request, and if the query result is yes, execute step S305, and if the query result is no, execute step S302. Through this implementation, it can be further determined whether the tax refund funds in the account designated by the user are frozen, ensuring the accuracy and security of freezing the tax refund funds in advance.

[0080] S305: Query the Exit-Entry Administration Center whether the user corresponding to the identity carried in the tax refund request has left the country. If it is determined that the user has left the country, execute step S306; if it is determined that the user has not left the country within a preset time period, execute step S307.

[0081] In an embodiment of the present invention, the node may query the exit-entry management center whether the user corresponding to the identity carried in the tax refund request has left the country. If it is determined that the user has left the country, step S307 is executed. If it is determined that the user has not left the country within a preset time, step S307 is executed. In some embodiments, the preset time may be the time from entry to exit specified by the exit-entry management center.

[0082] S306: Call the smart contract to send a thawing notice to the tax terminal, where the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account specified by the user.

[0083] In an embodiment of the present invention, if it is determined that the user has left the country, the node can call a smart contract to send a thawing notification to the tax terminal, and the thawing notification is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account specified by the user.

[0084] S307: Call the smart contract to send a tax refund fund recovery notice to the tax terminal, where the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user.

[0085] In an embodiment of the present invention, if it is determined that the user has not left the country within a preset period of time, the node can call a smart contract to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user.

[0086] In one embodiment, if it is determined that the user has not left the country within a preset period of time, the node can call the smart contract to send a tax refund fund recovery notice to the tax terminal, so that the tax refund terminal deducts the frozen tax refund funds from the account specified by the user. Through this implementation, it can avoid the situation where no tax is deducted due to the user's failure to leave the country within the time limit, further improving the effectiveness of tax deduction.

[0087] In an embodiment of the present invention, when a node receives a tax refund request sent by an invoicing terminal after issuing an electronic invoice for the user's consumption transaction, it can query the entry-exit management center whether the user corresponding to the identity carried in the tax refund request has left the country; if it is determined that the user has left the country, the smart contract is called to send a thawing notice to the tax terminal, and the thawing notice is used to instruct the tax terminal to release the tax refund funds frozen in the account specified by the user; if it is determined that the user has not left the country within a preset period of time, the smart contract is called to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user. Through this implementation method, advance tax deduction can be achieved, and the tax refund efficiency is further improved while ensuring security, which enhances the user consumption experience.

[0088] See also Figure 4 , Figure 4 40 is a structural diagram of a data processing device provided by an embodiment of the present invention. Specifically, the device is set in a node in a blockchain network, and the device includes: an acquisition module 401, a generation module 402 and a sending module 403;

[0089] The acquisition module 401 is used to acquire a tax refund request, wherein the tax refund request carries an invoice identifier;

[0090] A generation module 402 is used to call a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account specified by a user;

[0091] The sending module 403 is used to send the tax refund transaction to the tax terminal, so that the tax terminal refunds the tax refund to the account designated by the user according to the tax refund transaction.

[0092] Furthermore, when the acquisition module 401 acquires the tax refund request, it is specifically used to:

[0093] Receive a tax refund request sent by a user through a tax refund device; or,

[0094] A tax refund request is received from the invoicing terminal after the invoicing terminal issues an electronic invoice for the consumption transaction of the user.

[0095] Furthermore, before receiving the tax refund request sent by the user through the tax refund device, the acquisition module 401 is also used to:

[0096] Obtaining the bill information of the electronic invoice and the identity of the user sent by the invoicing terminal after issuing the electronic invoice for the user's consumption transaction;

[0097] Binding the ticket information with the identity identifier and writing the result into a block, and broadcasting the block to other nodes among the multiple nodes;

[0098] When the other nodes verify the block, the block is added to the tax blockchain.

[0099] Furthermore, when the acquisition module 401 receives the tax refund request sent by the user through the tax refund device, it is specifically used to:

[0100] A tax refund request is received from the tax refund device after successfully identifying a graphic code displayed by a designated application on a user terminal corresponding to the user, wherein the graphic code includes the bill information of the electronic invoice sent by the invoicing terminal to the user terminal.

[0101] Furthermore, the tax refund request also carries an identity identifier. Before the generation module 402 calls the smart contract to generate a tax refund transaction corresponding to the invoice identifier, it is also used to:

[0102] Obtaining first summary information of the invoice identifier and second summary information of the identity identifier carried in the tax refund request;

[0103] querying from the tax blockchain whether the invoice identifier and the identity identifier carried in the tax refund request match according to the first summary information and the second summary information;

[0104] If there is a match, the step of calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier is executed.

[0105] Furthermore, the tax refund request also carries an identity identifier, and before the sending module 403 sends the tax refund transaction to the tax terminal, it is also used to:

[0106] Sending a query request to the Exit-Entry Administration Center, wherein the query request includes the identity carried in the tax refund request;

[0107] Obtaining the entry and exit information corresponding to the identity identifier sent by the entry and exit management center;

[0108] Determining whether the user corresponding to the identity identifier has left the country according to the entry and exit information;

[0109] If it is determined that the user has left the country, the step of sending the tax refund transaction to the tax terminal is performed.

[0110] Furthermore, the tax refund funds refunded by the tax terminal to the account designated by the user are in a frozen state; after receiving the tax refund request sent by the invoicing terminal after issuing an electronic invoice for the consumption transaction of the user, the acquisition module 401 is also used to:

[0111] Inquiring the Exit-Entry Administration Center whether the user corresponding to the identity carried in the tax refund request has left the country;

[0112] If it is determined that the user has left the country, the smart contract is called to send a thawing notice to the tax terminal, where the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account designated by the user;

[0113] If it is determined that the user has not left the country within the preset time period, the smart contract is called to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account designated by the user.

[0114] The embodiment of the present invention can obtain a tax refund request and call a smart contract to generate a tax refund transaction corresponding to the invoice identifier carried in the tax refund request, wherein the tax refund transaction includes the tax refund amount and the account specified by the user, thereby sending the tax refund transaction to the tax terminal so that the tax terminal refunds the amount to the account specified by the user according to the tax refund transaction. Through this implementation method, the user's demand for automated and intelligent tax refunds can be met, and the tax refund efficiency can be improved while ensuring security, thereby enhancing the user's consumption experience.

[0115] See also Figure 5 , Figure 5 The schematic diagram of the structure of a node device provided by an embodiment of the present invention is as follows: Specifically, the node device includes: a memory 501 and a processor 502 .

[0116] In one embodiment, the node device further includes a data interface 503, and the data interface 503 is used to transfer data information between the node device and other devices.

[0117] The memory 501 may include a volatile memory; the memory 501 may also include a non-volatile memory; the memory 501 may also include a combination of the above-mentioned types of memories. The processor 502 may be a central processing unit (CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA) or any combination thereof.

[0118] The memory 501 is used to store programs, and the processor 502 can call the program stored in the memory 501 to perform the following steps:

[0119] Obtaining a tax refund request, wherein the tax refund request carries an invoice identifier;

[0120] Calling a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes a tax refund amount and an account designated by a user;

[0121] The tax refund transaction is sent to a tax terminal, so that the tax terminal refunds the tax to the account designated by the user according to the tax refund transaction.

[0122] Furthermore, when the processor 502 obtains the tax refund request, it is specifically used to:

[0123] Receive a tax refund request sent by a user through a tax refund device; or,

[0124] A tax refund request is received from the invoicing terminal after the invoicing terminal issues an electronic invoice for the consumption transaction of the user.

[0125] Furthermore, before receiving the tax refund request sent by the user through the tax refund device, the processor 502 is further configured to:

[0126] Obtaining the bill information of the electronic invoice and the identity of the user sent by the invoicing terminal after issuing the electronic invoice for the user's consumption transaction;

[0127] Binding the ticket information with the identity identifier and writing the result into a block, and broadcasting the block to other nodes among the multiple nodes;

[0128] When the other nodes verify the block, the block is added to the tax blockchain.

[0129] Furthermore, when the processor 502 receives a tax refund request sent by a user through a tax refund device, it is specifically configured to:

[0130] A tax refund request is received from the tax refund device after successfully identifying a graphic code displayed by a designated application on a user terminal corresponding to the user, wherein the graphic code includes the bill information of the electronic invoice sent by the invoicing terminal to the user terminal.

[0131] Furthermore, the tax refund request also carries an identity identifier. Before the processor 502 calls the smart contract to generate a tax refund transaction corresponding to the invoice identifier, it is also used to:

[0132] Obtaining first summary information of the invoice identifier and second summary information of the identity identifier carried in the tax refund request;

[0133] querying from the tax blockchain whether the invoice identifier and the identity identifier carried in the tax refund request match according to the first summary information and the second summary information;

[0134] If there is a match, the step of calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier is executed.

[0135] Furthermore, the tax refund request also carries an identity identifier, and before the processor 502 sends the tax refund transaction to the tax terminal, it is also used to:

[0136] Sending a query request to the Exit-Entry Administration Center, wherein the query request includes the identity carried in the tax refund request;

[0137] Obtaining the entry and exit information corresponding to the identity identifier sent by the entry and exit management center;

[0138] Determining whether the user corresponding to the identity identifier has left the country according to the entry and exit information;

[0139] If it is determined that the user has left the country, the step of sending the tax refund transaction to the tax terminal is performed.

[0140] Furthermore, the tax refund funds refunded by the tax terminal to the account designated by the user are in a frozen state. After receiving the tax refund request sent by the invoicing terminal after issuing an electronic invoice for the consumption transaction of the user, the processor 502 is further used to:

[0141] Inquiring the Exit-Entry Administration Center whether the user corresponding to the identity carried in the tax refund request has left the country;

[0142] If it is determined that the user has left the country, the smart contract is called to send a thawing notice to the tax terminal, where the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account designated by the user;

[0143] If it is determined that the user has not left the country within the preset time period, the smart contract is called to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account designated by the user.

[0144] The embodiment of the present invention can obtain a tax refund request and call a smart contract to generate a tax refund transaction corresponding to the invoice identifier carried in the tax refund request, wherein the tax refund transaction includes the tax refund amount and the account specified by the user, thereby sending the tax refund transaction to the tax terminal so that the tax terminal refunds the amount to the account specified by the user according to the tax refund transaction. Through this implementation method, the user's demand for automated and intelligent tax refunds can be met, and the tax refund efficiency can be improved while ensuring security, thereby enhancing the user's consumption experience.

[0145] The embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the present invention is implemented. Figure 2 or Figure 3 The method described in the corresponding embodiment can also be implemented Figure 4 The device corresponding to the embodiment of the present invention is described above and will not be repeated here.

[0146] The computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the server. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0147] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0148] The above disclosure is only part of the embodiments of the present invention, which certainly cannot be used to limit the scope of the rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention are still within the scope of the invention.

Claims

1. A data processing method based on a blockchain network, characterized in that: Applied to a tax refund system, the tax refund system includes a blockchain network, a tax terminal, an invoicing terminal and an entry-exit management center, the blockchain network includes multiple nodes, and the method includes: The node receives an electronic invoice issued for a consumption transaction of a user and sent by the invoicing terminal, wherein the electronic invoice includes bill information and an identity identifier of the user, wherein the bill information carries a tax refund amount and an account designated by the user, and the node is any one of the multiple nodes; The node binds the ticket information with the identity identifier and writes the result into a block, and broadcasts the block to other nodes among the multiple nodes; When the other nodes verify the block, the node adds the block to the tax blockchain; The node obtains a tax refund request, the tax refund request carries an invoice identifier and a user's identity identifier, and the tax refund request includes a tax refund request sent by the invoicing terminal after issuing an electronic invoice for a consumption transaction of the user; The node calls the smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes the tax refund amount carried in the bill information of the electronic invoice corresponding to the invoice identifier and the account specified by the user; The node calls the smart contract to generate a freezing notice according to the tax refund amount and the account specified by the user, wherein the freezing notice is used to instruct the tax terminal to freeze the tax refund funds refunded to the account specified by the user; The node sends the tax refund transaction and the freezing notice to the tax terminal, so that the tax terminal refunds the tax to the account designated by the user according to the tax refund transaction, and the tax refund funds refunded to the account designated by the user are in a frozen state; The node queries the exit-entry management center whether the user corresponding to the identity carried in the tax refund request has left the country; If it is determined that the user has left the country, the node calls the smart contract to send a thawing notice to the tax terminal, where the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account designated by the user; If it is determined that the user has not left the country within the preset time period, the node calls the smart contract to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user.

2. The method according to claim 1, characterized in that The node obtains the tax refund request, further comprising: The node receives a tax refund request sent by a user through a tax refund device.

3. The method according to claim 2, characterized in that The node receives a tax refund request sent by a user through a tax refund device, including: The node receives a tax refund request sent by the tax refund device after successfully identifying a graphic code displayed by a designated application on a user terminal corresponding to the user, wherein the graphic code includes the bill information of the electronic invoice sent by the invoicing terminal to the user terminal.

4. The method according to claim 3, characterized in that: The tax refund request also carries an identity identifier. Before the node calls the smart contract to generate a tax refund transaction corresponding to the invoice identifier, it also includes: The node obtains the first summary information of the invoice identifier and the second summary information of the identity identifier carried in the tax refund request; The node queries the tax blockchain according to the first summary information and the second summary information whether the invoice identifier and the identity identifier carried in the tax refund request match; If there is a match, the node executes the step of calling the smart contract to generate a tax refund transaction corresponding to the invoice identifier.

5. The method according to any one of claims 1 to 4, characterized in that: The tax refund request also carries an identity identifier. Before the node sends the tax refund transaction to the tax terminal, it also includes: The node sends a query request to the exit-entry management center, wherein the query request includes the identity carried in the tax refund request; The node obtains the entry and exit information corresponding to the identity identifier sent by the entry and exit management center; The node determines whether the user corresponding to the identity identifier has left the country according to the entry and exit information; If it is determined that the user has left the country, the node executes the step of sending the tax refund transaction to the tax terminal.

6. A data processing device, characterized in that: The device is set on a node in the blockchain network of the tax refund system, the tax refund system includes the blockchain network, the tax terminal, the invoicing terminal and the entry-exit management center; the device includes: An acquisition module is used to receive an electronic invoice issued for a consumption transaction of a user and sent by the invoicing terminal, wherein the electronic invoice includes bill information and an identity identifier of the user, wherein the bill information carries a tax refund amount and an account designated by the user, and the node is any one of the multiple nodes; the bill information is bound to the identity identifier and written into a block, and the block is broadcast to other nodes of the multiple nodes; when the other nodes verify the block, the block is added to the tax blockchain; The acquisition module is further used to acquire a tax refund request, wherein the tax refund request carries an invoice identifier and a user's identity identifier, and the tax refund request includes a tax refund request sent by the invoicing terminal after issuing an electronic invoice for a user's consumption transaction; A generation module, used to call a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes the tax refund amount carried in the bill information of the electronic invoice corresponding to the invoice identifier and the account specified by the user; The generation module is further used to call the smart contract to generate a freezing notice according to the tax refund amount and the account specified by the user, and the freezing notice is used to instruct the tax terminal to freeze the tax refund funds refunded to the account specified by the user; A sending module, used for sending the tax refund transaction and the freezing notice to the tax terminal, so that the tax terminal refunds the tax refund to the account designated by the user according to the tax refund transaction, and the tax refund funds refunded to the account designated by the user are in a frozen state; The acquisition module is also used to inquire with the entry-exit management center whether the user corresponding to the identity identifier carried in the tax refund request has left the country; if it is determined that the user has left the country, the node calls the smart contract to send a thawing notice to the tax terminal, and the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account specified by the user; if it is determined that the user has not left the country within a preset time period, the node calls the smart contract to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user.

7. A node device, characterized in that: Applied to a tax refund system, the tax refund system includes a blockchain network, a tax terminal, an invoicing terminal, and an entry-exit management center, the node device includes: a processor and a memory, the processor is used to execute: receiving an electronic invoice issued for a consumption transaction of a user and sent by the invoicing terminal, wherein the electronic invoice includes bill information and an identity identifier of the user, wherein the bill information carries a tax refund amount and an account designated by the user, and the node is any one of the multiple nodes; Binding the ticket information to the identity identifier and writing the resultant information into a block, and broadcasting the block to other nodes among the multiple nodes; When the other nodes verify the block, adding the block to the tax blockchain; Obtaining a tax refund request, wherein the tax refund request carries an invoice identifier and an identity identifier of the user, and the tax refund request includes a tax refund request sent by the invoicing terminal after issuing an electronic invoice for a consumption transaction of the user; Calling a smart contract to generate a tax refund transaction corresponding to the invoice identifier, wherein the tax refund transaction includes the tax refund amount carried in the bill information of the electronic invoice corresponding to the invoice identifier and the account specified by the user; Calling a smart contract to generate a freezing notice according to the tax refund amount and the account designated by the user, wherein the freezing notice is used to instruct the tax terminal to freeze the tax refund funds refunded to the account designated by the user; Sending the tax refund transaction and the freezing notice to the tax terminal, so that the tax terminal refunds the tax to the account designated by the user according to the tax refund transaction, and the tax refund funds refunded to the account designated by the user are in a frozen state; Inquiring the Exit-Entry Administration Center whether the user corresponding to the identity carried in the tax refund request has left the country; If it is determined that the user has left the country, the node calls the smart contract to send a thawing notice to the tax terminal, where the thawing notice is used to instruct the tax terminal to unfreeze the tax refund funds frozen in the account designated by the user; If it is determined that the user has not left the country within the preset time period, the node calls the smart contract to send a tax refund fund recovery notice to the tax terminal, and the tax refund fund recovery notice is used to instruct the tax terminal to deduct the tax refund funds frozen in the account specified by the user.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, which, when executed, are used to implement the method according to any one of claims 1 to 5.