Tax information processing method, device and computer-readable storage medium
Through the interaction between tax departments and enterprises in the blockchain network, institutions can view the tax information provided by the tax department after obtaining the enterprise's authorization, solving the problem that financial institutions find it difficult to obtain real tax information and achieving the reliability and accuracy of the information.
Patent Information
- Application Number
- CN202010073116.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-21
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2040-01-21
AI Technical Summary
It is difficult for financial institutions to obtain the real tax information of enterprises. The tax information provided by enterprises may be fake and cannot verify its credibility.
Through the interaction between the tax department and the enterprise in the blockchain network, the institution sends a obtain request, and the tax department confirms whether the enterprise allows viewing of the tax information. After obtaining the authorization, the institution can view the enterprise's tax information through the tax department.
Ensure that institutions can obtain reliable tax information from the company, improving the credibility and accuracy of the information.
Smart Images

Figure CN111292174B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer networks, and in particular to a tax information processing method, device, and computer-readable storage medium. Background Art
[0002] The reliability of tax information provided by businesses often arises in many application scenarios. For example, when Company A applies for funding from a financial institution, the financial institution requires information such as Company A's tax information to assess the company. Because Company A's tax information involves its privacy, the financial institution can only obtain this information through Company A. However, the tax information provided by Company A itself may be falsified, making its credibility difficult to verify. Therefore, how financial institutions can obtain authentic tax information from businesses has become a hot topic of research. Summary of the Invention
[0003] The present application discloses a tax information processing method, device and computer-readable storage medium, which enable an organization to obtain reliable tax information of an enterprise.
[0004] In a first aspect, the present application provides a method for processing tax information, the method comprising:
[0005] Receiving an acquisition request sent by a first node in a blockchain network, wherein the acquisition request is for an organization to request to view the tax information of an enterprise;
[0006] Sending a confirmation message to a second node in the blockchain network, wherein the confirmation message is used to confirm with the enterprise whether the institution is allowed to view the tax information of the enterprise;
[0007] receiving a response message sent by the second node;
[0008] If the response information is used to indicate that the institution is allowed to view the tax information of the enterprise, the institution is authorized to view the tax information of the enterprise in the blockchain.
[0009] In a second aspect, the present application provides a tax information processing device, the tax information processing device comprising:
[0010] A receiving unit, configured to receive an acquisition request sent by a first node in a blockchain network, wherein the acquisition request is for an organization to request to view the tax information of an enterprise;
[0011] a processing unit, configured to send a confirmation message to a second node in the blockchain network, wherein the confirmation message is used to confirm with the enterprise whether the institution is allowed to view the tax information of the enterprise;
[0012] The receiving unit is further configured to receive response information sent by the second node;
[0013] The processing unit is further configured to authorize the institution to view the tax information of the enterprise in the blockchain if the response information is used to indicate that the institution is allowed to view the tax information of the enterprise.
[0014] In a third aspect, the present application provides a tax information processing device, comprising a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the tax information processing method described in the first aspect above.
[0015] In a fourth aspect, the present application provides a computer-readable storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by a processor and executing the tax information processing method described in the first aspect above.
[0016] In this application, a third node in the blockchain network, corresponding to the tax department, receives a request from a first node corresponding to an organization in the blockchain network, sends a confirmation message to a second node corresponding to the enterprise in the blockchain network, and receives a response message from the second node. If the response message indicates that the organization is allowed to view the enterprise's tax information, the organization is authorized to view the enterprise's tax information in the blockchain. This means that after obtaining authorization from the enterprise, the organization can view the enterprise's tax information through the third node corresponding to the tax department, thereby ensuring that the organization can obtain reliable tax information from the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 A scenario architecture diagram of a blockchain network provided in an embodiment of the present application;
[0019] Figure 2 A flowchart of a tax information processing method provided in an embodiment of the present application;
[0020] Figure 3 A flowchart of another tax information processing method provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of a tax information processing device provided in an embodiment of the present application;
[0022] Figure 5 A structural diagram of another tax information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0024] The present application embodiments relate to blockchain and blockchain networks, wherein a blockchain is a distributed ledger that combines data blocks in a sequentially connected manner in chronological order to form a chain data structure, and uses cryptography to ensure that the data cannot be tampered with or forged. A blockchain is essentially a decentralized database, a string of data blocks generated using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer.
[0025] The underlying blockchain platform can include processing modules such as user management, basic services, and smart contracts. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between users' real identities and blockchain addresses (authority management). It also oversees and audits transactions involving certain real identities, providing risk control rule configuration (risk control auditing), with authorization. The basic service module is deployed on all blockchain nodes to verify the validity of business requests and, after reaching consensus on valid requests, records them in storage. For a new business request, the basic service first performs interface adaptation, parsing, and authentication processing (interface adaptation). It then encrypts the business information using a consensus algorithm (consensus management). After encryption, the encrypted information is transmitted completely and consistently to the shared ledger (network communication) and recorded and stored. The smart contract module is responsible for contract registration, issuance, contract triggering, and contract execution. Developers can define contract logic in a programming language and publish it to the blockchain (contract registration). Based on the logic of the contract terms, the execution is triggered by calling keys or other events to complete the contract logic.
[0026] A blockchain network is a distributed application architecture that distributes tasks and workloads among peers. It is a networking form of the peer-to-peer computing model at the application layer. Generally, a blockchain network consists of multiple interconnected computers, also known as nodes. In a blockchain network, these interconnected computers are equal, each with the same functionality, without a master-slave relationship. A computer can act as a server, setting up shared resources for use by other computers in the network, or as a workstation. The entire network generally does not rely on dedicated centralized servers or dedicated workstations. Each computer in the network can both act as a requestor for network services and respond to requests from other computers, providing resources, services, and content.
[0027] Figure 1 This is a scenario architecture diagram of a blockchain network provided in an embodiment of the present application. Figure 1 As shown, the blockchain network includes a first node 101 corresponding to the institution, a second node 102 corresponding to the enterprise, and a third node 103 corresponding to the tax department. Figure 1 The number of nodes in the blockchain network shown is for example only. For example, there may be multiple first nodes 101, second nodes 102, and third nodes 103. There may also be a fourth node, a fifth node, and so on in the blockchain network. This application does not limit the number of nodes.
[0028] First node 101 is a node corresponding to an institution, which includes financial institutions that can provide services such as funding to enterprises, such as banks and loan companies. Second node 102 is a node corresponding to an enterprise. Third node 103 is a node corresponding to a tax authority, which can be a tax bureau, for example. The first, second, and third nodes can be clients or servers, and this embodiment of the application does not limit this. The client can be any of the following: a terminal, a standalone application, an API (Application Programming Interface), or an SDK (Software Development Kit). Terminals can include, but are not limited to, smartphones (such as Android phones and iOS phones), tablets, portable personal computers, mobile internet devices (MIDs), and other devices, and this embodiment of the invention does not limit this. Node device types can include, but are not limited to, full nodes, simplified payment verification (SPV) nodes, or other node types in a blockchain network.
[0029] It should be noted that there is a core chain in the blockchain network for storing complete tax information. It is understandable that only the third node 103 has the authority to view all data in the core chain.
[0030] exist Figure 1 In the blockchain network shown, the tax information processing process primarily involves the following: ① First node 101, corresponding to an institution (e.g., a bank), sends a request to third node 103, corresponding to a tax authority (e.g., a tax bureau), requesting permission to view the tax information of the enterprise corresponding to second node 102. ② After receiving the request from first node 101, third node 103 sends a confirmation message to second node 102, confirming whether the institution is authorized to view the enterprise's tax information. ③ After receiving the confirmation message from third node 103, second node 102 determines, based on the confirmation message, whether the institution is permitted to view the enterprise's tax information (e.g., whether a service such as funding has been requested from the institution). Second node 102 sends a response message to third node 103, indicating whether the institution is permitted to view the enterprise's tax information. ④ Third node 103 receives the response message from second node 102. If the response message indicates permission to view the enterprise's tax information, third node 103 authorizes first node 101. After receiving authorization, first node 101 can view the enterprise's tax information (i.e., the enterprise's tax information provided by the tax authority) in the core chain.
[0031] Through the above-described tax information processing method, an organization obtains permission to view a company's tax information by sending a request to the tax department. The tax department then verifies the permission provided by the company. After the company confirms that the organization is authorized to view the company's tax information, the tax department authorizes the organization. After obtaining authorization, the organization can view the company's tax information provided by the tax department. This demonstrates that through this embodiment of the present application, organizations can obtain reliable tax information about companies.
[0032] The following is a detailed introduction to a tax information processing method provided by this application.
[0033] See also Figure 2 , Figure 2 This is a flow chart of a tax information processing method provided in an embodiment of the present application. The tax information processing method can be Figure 1 The first node 101, the second node 102 and the third node 103 are interactively implemented; Figure 2 As shown, the tax information processing method includes but is not limited to the following steps 201 to 204:
[0034] 201. The third node receives an acquisition request sent by the first node in the blockchain network.
[0035] The first node corresponds to the organization, the second node corresponds to the enterprise, and the third node corresponds to the tax department. The Get request includes an identifier that uniquely identifies and confirms the identity of the first node (such as the organization's business license number or the first node's network address) and an identifier that uniquely identifies and confirms the identity of the second node (such as the enterprise's business license number or the second node's network address). The Get request is used to request the tax information of the enterprise corresponding to the second node.
[0036] For example, assuming that financial institution A needs to view the tax information of enterprise B at the tax bureau, financial institution A sends an acquisition request 1 to the tax bureau, where acquisition request 1 is used to instruct financial institution A to request to view the tax information of enterprise B.
[0037] In one embodiment, the first node fills out the content of the acquisition request using the tax information application page shown in 2011. The enterprise identifier is used to identify the target enterprise for which the organization wishes to obtain tax information, and the organization identifier is used to identify the organization itself. The tax information start time and tax information end time are optional. After generating the acquisition request, a hash function is used to generate a first message digest from the acquisition request. The first message digest is then encrypted using the first node's private key to obtain a first digital signature. The first node sends the first digital signature and the acquisition request to the third node.
[0038] 202. The third node sends a confirmation message to the second node in the blockchain network.
[0039] Among them, the confirmation information includes an identifier that can uniquely identify and determine the identity of the first node (such as the business license number of the organization or the network address of the first node, etc.), and the confirmation information is used to confirm with the second node whether the organization corresponding to the first node is allowed to view the tax information of the enterprise corresponding to the second node.
[0040] In one embodiment, after the third node receives the acquisition request and the first digital signature from the first node, it uses a hash function to generate a second message digest from the acquisition request, and then uses the public key of the first node to decrypt the first digital signature to obtain the first message digest. And confirm whether the first message digest is consistent with the second message digest. If the first message digest is inconsistent with the second message, it means that the acquisition request was not sent by the first node, and the third node discards the acquisition request. If the first message digest is consistent with the second message, it means that the acquisition request was sent by the first node. The third node generates confirmation information based on the acquisition request (adding the identification of the organization in the acquisition request to the confirmation information, and determining the second node based on the identification of the enterprise in the acquisition request), and uses its own private key to sign the confirmation information to obtain the second digital signature. The specific implementation method can refer to the implementation method of the first node using its own private key to sign the acquisition request to obtain the first digital signature in step 201, which will not be repeated here. The third node sends the confirmation information and the second digital signature to the second node in the blockchain network.
[0041] 203. The third node receives the response information sent by the second node.
[0042] The response information is used to indicate whether the second node allows the first node to view the tax information of the enterprise corresponding to the second node.
[0043] In one embodiment, the second node receives confirmation information and a second digital signature from the third node. The tax information start time and the tax information end time are optional. The second node verifies the second digital signature using the public key of the third node. For specific implementation methods, please refer to the implementation method in which the third node verifies the first digital signature using the public key of the first node in step 202, which will not be repeated here. If the second digital signature verification fails, the confirmation information is discarded. If the second digital signature verification passes, the confirmation is made to the enterprise staff through the interface shown in 2021. The enterprise staff confirms whether to allow the first node to view the tax information of the enterprise corresponding to the second node based on the confirmation information (i.e., choose to confirm authorization or reject authorization). A response message is generated based on the result of the confirmation by the enterprise staff. The response message is signed using the private key of the second node to obtain a third digital signature. For specific implementation methods, please refer to the implementation method in which the first node uses its own private key to sign the acquisition request to obtain the first digital signature in step 201, which will not be repeated here. The second node sends a response message and a third digital signature to the third node.
[0044] 204. If the response information is used to indicate that the institution corresponding to the first node is allowed to view the tax information of the enterprise corresponding to the second node, the third node authorizes the first node to view the tax information of the second node in the blockchain.
[0045] In one embodiment, the third node receives the response information and the third digital signature from the second node. The third node verifies the third digital signature using the public key of the second node. The specific implementation method can refer to the implementation method in which the third node verifies the first digital signature using the public key of the first node in step 202, which will not be repeated here. If the third digital signature verification fails, the response information is discarded. If the third digital signature verification passes, the third node authorizes the first node to view the tax information of the second node in the blockchain, and sends the authorization information as a transaction to the blockchain network for consensus, and stores it in the blockchain after the consensus is passed. The specific authorization method is not limited in this application.
[0046] For example, the tax department can send an authorization code to the first node, and the first node can view the tax information of the second node in the core chain with the authorization code; or, the third node adds the first node to the tax information authorization set of the second node, and the first node can view the tax information of the second node in the core chain after being added to the tax information authorization set of the second node.
[0047] The following example illustrates the tax information processing method provided in this application: Suppose Company A applies for financial assistance from a bank. The bank needs to evaluate Company A's tax information to determine whether to provide the financial assistance. It can be understood that the bank is the first node in the blockchain network, Company A is the second node in the blockchain network, and Company A's tax information is managed by a third node in the blockchain network, corresponding to the tax department (e.g., the tax bureau). It can be understood that the third node stores Company A's authentic and reliable tax information, and other nodes in the blockchain network, except Company A and the tax department, cannot obtain Company A's tax information from the third node. The bank sends a digitally signed request to the tax department. The request includes Company A's identifier (e.g., Company A's company number or Company A's network address) and the bank's identifier (e.g., Bank number or bank's network address). Upon receiving the request, the tax department verifies it using the bank's public key to ensure it is genuine. After the request is verified, the tax department generates a confirmation message based on the request and sends it to Company A, also digitally signed. The confirmation message includes the bank's identifier (such as the bank's number or network address). After receiving the confirmation message, Company A uses the tax department's public key to verify it, ensuring it's authentic. Once verified, the confirmation message is sent to Company A's staff (via SMS, email, or app). This message indicates to them that the bank is requesting authorization from the tax department to access Company A's tax information. After reviewing the confirmation message, Company A's staff sends a response message to the tax department, digitally signed by Company A. Upon receiving the response, the tax department uses Company A's public key to verify the authorization message, ensuring it's authentic. If the response from Company A indicates permission for the bank to access Company A's tax information, the tax department authorizes the institution to access Company A's tax information in the core chain and sends the authorization message as a transaction to the blockchain network for consensus. Once consensus is reached, the authorization message is stored in the blockchain. Conversely, if the response from Company A denies the bank's access to Company A's tax information, the tax department sends a prompt to the bank, indicating that Company A refuses to provide the bank with the tax information.
[0048] Through the above-described tax information processing method, the organization corresponding to the first node obtains permission to view the tax information of the enterprise corresponding to the second node by sending an acquisition request to the third node. The third node then confirms with the second node. After the second node confirms that the first node is allowed to view the tax information of the second node, the third node authorizes the first node. After obtaining authorization, the first node can view the tax information of the second node provided by the tax department corresponding to the third node. This shows that through the embodiments of the present application, organizations can obtain reliable tax information of enterprises.
[0049] See also Figure 3 , Figure 3 This is a flowchart of another tax information processing method provided in the embodiment of the present application. The tax information processing method can be Figure 1 The first node 101, the second node 102 and the third node 103 are interactively implemented; Figure 3 As shown, the tax information processing method includes but is not limited to the following steps 301 to 309:
[0050] 301. The third node receives an acquisition request sent by the first node in the blockchain network.
[0051] The acquisition request also includes first time information, which indicates the time range for tax payment information that the organization corresponding to the first node wishes to view for the enterprise corresponding to the second node. For example, if organization A wishes to view enterprise B's tax payment information from January 1, 2018, to December 31, 2018, the time information 1 included in the acquisition request would be January 1, 2018, to December 31, 2018.
[0052] 302. The third node sends confirmation information to the second node in the blockchain network.
[0053] Correspondingly, the confirmation information also includes the first time information. After receiving the confirmation information, the second node can see the tax payment information time range of the enterprise corresponding to the second node that the organization corresponding to the first node wants to view.
[0054] As an optional implementation, the first node may send a notification message to the second node in advance, informing the second node that the first node is requesting access to the second node's tax information from the third node. Upon receiving the tax information, the second node stores identity information that uniquely identifies the first node (e.g., the first node's network address or the organization's business license number) in a permission table. If the second node receives a confirmation message from the third node, it obtains the identity information of the first node requesting access to the enterprise's tax information contained in the confirmation message. The second node uses the first node's identity information to search the permission table and confirm whether the first node is in the permission table (e.g., by checking whether the network address of the organization's network node is in the permission table, or whether the organization's business license number is in the permission table). If the first node is in the permission table, indicating that the first node has permission to view the second node's tax information, the second node sends a response message to the third node, indicating that the organization corresponding to the first node is allowed to view the tax information of the enterprise corresponding to the second node. If the first node is not in the permission table, indicating that the first node does not have permission to access the tax information of the enterprise corresponding to the second node, the second node sends a rejection message to the third node, indicating that the organization corresponding to the first node is not allowed to view the tax information of the enterprise corresponding to the second node.
[0055] 303. The third node receives the response information sent by the second node.
[0056] In one embodiment, the response message sent by the second node to the third node includes second time information, which is used to indicate the time range during which the institution corresponding to the first node can view the tax information of the enterprise corresponding to the second node. For example, suppose that Enterprise A applies for financial assistance from Institution B in January 2019, and Institution B is expected to complete the financial assistance application in April 2019. The response message sent by Enterprise A to the tax department then includes time information 2, which is from January 2019 to April 2019. That is, time information 2 is used to indicate that Institution B can view Enterprise A's tax information at the tax department from January 2019 to April 2019.
[0057] In another embodiment, if the enterprise corresponding to the second node believes that the first time information sent by the institution corresponding to the first node is unreasonable (i.e., the time range of the tax information for the enterprise that the institution applies to view is unreasonable, or the enterprise does not want the institution to view all the tax information of the enterprise within the time range indicated by the first time information), then the response information sent by the second node to the third node includes third time information, and the third time information is used to indicate the time range of the tax information for the enterprise corresponding to the second node that the second node allows the first node to view. For example, suppose institution A applies to view the tax information of enterprise B from 2017 to 2019, and enterprise B only wants institution A to view the tax information for 2019. Then the response information sent by enterprise B to the third node includes time information 3, and time information 3 is 2019.1.1 to 2019.12.31.
[0058] Optionally, the response information sent by the second node to the third node includes the second time information and the third time information.
[0059] 304. If the response information indicates that the organization is allowed to view the enterprise's tax information, the third node adds the organization corresponding to the first node to the permission set.
[0060] The specific implementation of steps 301 to 304 can refer to the implementation Figure 2 The specific implementation of steps 201 to 204 will not be repeated here.
[0061] The permission set includes the identifiers of the organizations that can view the corporate tax information and the corresponding permissions. Table 1 is an exemplary permission set provided in the embodiment of the present application:
[0062] Table 1
[0063] Institutional Logo Permissions 57446 Viewable time period XX 36754 Permission validity period XX …… ……
[0064] As shown in Table 1, the organization ID serves as an index, and permissions are used to record the specific permissions of each organization. For example, organization ID 57446 can only view a company's tax information for a certain period of time, while organization ID 36754 can only view a company's tax information before a certain date.
[0065] After the third node adds the organization to the permission set, step 306 is continued.
[0066] 305. The third node sends first prompt information to the first node.
[0067] In one embodiment, if a third node receives a response from a second node indicating that the organization corresponding to the first node is denied access to the tax information of the enterprise corresponding to the second node, the third node counts the number of times the first node was denied access to the enterprise's tax information within a first preset time period (e.g., one hour, one day, one month, etc.). If the number of times the first node was denied access to the enterprise's tax information within the first preset time period is less than a threshold number (the threshold number is a positive integer greater than 0), the third node sends a first prompt message to the first node, indicating that the second node does not allow the organization to access the tax information of the enterprise corresponding to the second node (i.e., the organization does not have permission to access the enterprise's tax information). If the number of times the first node was denied access to the enterprise's tax information within the first preset time period is greater than or equal to the threshold number, the first node is marked as a malicious node. The third node refuses to receive access requests sent by the first node within a second preset time period (the second preset time period can be the same as the first preset time period, such as one hour, one day, one month, etc.). This prevents malicious nodes in the blockchain network from continuously sending access requests, which wastes network resources.
[0068] It should be noted that step 304 and step 305 respectively represent the case where the response information indicates that the institution corresponding to the first node is allowed to view the tax information of the enterprise corresponding to the second node, and the case where the response information indicates that the institution corresponding to the first node is not allowed to view the tax information of the enterprise corresponding to the second node.
[0069] 306. The third node determines whether the number of organizations in the authority set is greater than a first threshold.
[0070] In one embodiment, the tax department corresponding to the third node determines whether the number of institutions that can view the tax information of the enterprise corresponding to the second node is greater than a first threshold (the first threshold is a positive integer greater than 0). If the number of institutions that can view the tax information of the second node is less than or equal to the first threshold, the authorization information is sent as a transaction to the blockchain network for consensus. After consensus is passed, the information is stored in the blockchain. If the number of institutions that can view the tax information of the second node is greater than the first threshold, step 307 is continued.
[0071] 307. The third node sends a second prompt message to the second node in the blockchain network.
[0072] Among them, the second prompt information is used to prompt the enterprise corresponding to the second node to allow multiple institutions to view the tax information of the second node. In one embodiment, in order to improve the success rate of obtaining financial assistance, or increase the amount of financial assistance obtained, the enterprise may apply for financial assistance from multiple institutions, thereby allowing multiple institutions to view the tax information of the enterprise. At this time, the tax department corresponding to the third node believes that the enterprise may have the potential to defraud financial assistance, so it sends a second prompt information to the second node. In actual situations, if the enterprise is a legal enterprise, it will stop or slow down the behavior of applying for financial assistance from multiple institutions after receiving the second prompt information. If the enterprise is an enterprise that maliciously defrauds financial assistance, it will ignore the second prompt information and continue to apply for financial assistance from more institutions.
[0073] 308. The third node determines whether the number of organizations in the authority set is greater than a second threshold.
[0074] Wherein, the first threshold is greater than the second threshold. In one embodiment, the third node determines whether the number of institutions that can view the tax information of the second node is greater than the second threshold (the second threshold is a positive integer greater than the first threshold). If the number of institutions that can view the tax information of the second node is less than or equal to the second threshold (i.e., the enterprise has stopped or slowed down the application for financial assistance from multiple institutions), the authorization information is sent as a transaction to the blockchain network for consensus, and is stored in the blockchain after the consensus is passed. If the number of institutions that can view the tax information of the second node is greater than the second threshold (i.e., the enterprise continues to apply for financial assistance from multiple institutions), step 309 is continued.
[0075] 309. The third node sends a third prompt message to the first node in the blockchain network.
[0076] The third prompt is used to inform the institution corresponding to the first node that the enterprise corresponding to the second node has allowed multiple institutions to view the tax information of the second node (i.e., the enterprise has the potential to defraud financial assistance). It is understandable that if the second node continues to allow multiple institutions to view the tax information of the second node after receiving the second prompt, the probability of the enterprise corresponding to the second node defrauding financial assistance is high. Therefore, the third node sends the third prompt to the first node, thereby reducing the probability of the institution corresponding to the first node being defrauded of financial assistance maliciously.
[0077] For example, assume the first threshold is 5 and the second threshold is 10. The tax department adds the sixth organization, Company A, to the permission set. Because the number of organizations in the permission set, 6, exceeds the first threshold, the tax department sends Alert Message 1 to Company A, warning it that it has authorized six organizations to view its tax information, posing a security risk. Because the number of organizations in the permission set, 6, is less than the second threshold, the tax department sends Company A's authorization of the sixth organization as a transaction to the blockchain network for consensus. After consensus is reached, the transaction is stored on the blockchain. After receiving Alert Message 1, Company A authorizes another five organizations (allowing them to view its tax information). At this point, the number of organizations in the permission set, 11, exceeds the second threshold. The tax department sends Alert Message 2 to the organization, warning it that it has authorized 11 organizations and poses a significant risk of fraudulently obtaining financial assistance.
[0078] As can be seen, through this embodiment of the present application, the second node can use time information to limit the time range within which the institution corresponding to the first node can view the tax information of the enterprise corresponding to the second node. The institution can also reduce the risk of being defrauded of financial support by malicious enterprises through the second prompt information.
[0079] The above describes in detail the method of the embodiment of the present application. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0080] See Figure 4 , Figure 4 This is a structural diagram of a tax information processing device provided in an embodiment of the present application. The tax information processing device can be installed on the third node in the above method embodiment. Figure 4 The tax information processing device shown can be used to perform the above Figure 2 and Figure 3 Part or all of the functions of the method embodiment described. The detailed description of each unit is as follows:
[0081] A receiving unit 401 is configured to receive an acquisition request sent by a first node in a blockchain network, wherein the acquisition request is for an organization to request to view the tax information of an enterprise;
[0082] Processing unit 402 is configured to send a confirmation message to a second node in the blockchain network, wherein the confirmation message is used to confirm with the enterprise whether the institution is allowed to view the tax information of the enterprise;
[0083] The receiving unit 401 is further configured to receive response information sent by the second node;
[0084] The processing unit 402 is further configured to authorize the institution to view the tax information of the enterprise in the blockchain if the response information indicates that the institution is allowed to view the tax information of the enterprise.
[0085] In one embodiment, the processing unit 402 is further configured to:
[0086] If the response information indicates that the institution is denied access to the tax information of the enterprise, then counting the number of denials of the first node within a first preset time period;
[0087] If the number of rejections is less than the number threshold, a first prompt message is sent to the first node, where the first prompt message is used to indicate that the first node does not have the authority to view the tax information of the enterprise;
[0088] If the number of rejections is greater than or equal to the number threshold, the first node is marked as a malicious node, and the acquisition request sent by the first node is refused to be received within a second preset time period.
[0089] In one embodiment, the acquisition request further includes first time information;
[0090] The processing unit 402 is further configured to authorize the institution to view the tax information of the enterprise in the blockchain, specifically to:
[0091] The institution is authorized to view the tax payment information of the enterprise within the time range indicated by the first time information in the blockchain.
[0092] In one embodiment, if the response information is used to indicate that the organization is allowed to view the tax information of the enterprise, the response information includes second time information;
[0093] The processing unit 402 is further configured to authorize the institution to view the tax information of the enterprise in the blockchain, specifically to:
[0094] The agency is authorized to view the tax information of the enterprise within the time range indicated by the second time information.
[0095] In one embodiment, if the response information indicates that the organization is allowed to view the tax information of the enterprise, the processing unit 402 is further configured to:
[0096] adding the organization to a permission set and counting the number of organizations in the permission set, wherein the permission set includes organizations that are allowed to view the tax information of the enterprise;
[0097] Determining whether the number of organizations in the permission set is greater than a first number threshold;
[0098] If the number of institutions in the permission set is greater than the first quantity threshold, a second prompt message is sent to the second node, where the second prompt message is used to prompt that the enterprise has authorized multiple institutions to view the enterprise's tax information.
[0099] In one embodiment, after sending the second prompt information to the second node, the processing unit 402 is further configured to:
[0100] Determining whether the number of organizations in the permission set is greater than a second number threshold, the second number threshold being greater than or equal to the first number threshold;
[0101] If the number of nodes is greater than the second number threshold, a third prompt message is sent to the first node, where the third prompt message is used to prompt that the enterprise has authorized multiple institutions to view the tax information of the enterprise.
[0102] In one embodiment, the processing unit 402 is further configured to:
[0103] Receiving first signature information, where the first signature information is obtained by signing the acquisition request using the private key of the organization;
[0104] Verifying the first signature information using the public key of the organization;
[0105] If the first signature information is verified successfully, the step of sending confirmation information to the second node is performed.
[0106] According to one embodiment of the present application, Figure 2 and Figure 3 Some of the steps involved in the tax information processing method shown can be performed by Figure 4 The tax information processing device shown in the figure is executed by each unit. For example, Figure 2 Steps 201 and 204 shown in FIG. 2 can be represented by Figure 4 The receiving unit 401 shown in FIG. 4 is executed, and steps 202 and 203 can be performed by Figure 4 Processing unit 402 is shown executing. Figure 3 Steps 301 and 303 shown in FIG can be obtained by Figure 4 The receiving unit 401 shown in FIG. 4 is executed, and steps 302 and 304 to 309 can be performed by Figure 4 Processing unit 402 is shown executing. Figure 4The various units in the tax information processing device shown can be individually or all combined into one or several other units to form a composition, or one (or some) of the units can be further divided into multiple functionally smaller units to form a composition, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the tax information processing device can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0107] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM) and other processing elements and storage elements. Figure 2 and Figure 3 A computer program (including program code) for each step involved in the corresponding method shown in Figure 4 The tax information processing device shown in and the tax information processing method of the embodiment of the present application are implemented. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0108] Based on the same inventive concept, the principles and beneficial effects of the tax information processing device provided in the embodiment of the present application in solving the problem are similar to the principles and beneficial effects of the tax information processing device in the method embodiment of the present application in solving the problem. Please refer to the principles and beneficial effects of the implementation of the method. For the sake of concise description, they will not be repeated here.
[0109] See also Figure 5 , Figure 5A schematic diagram of the structure of a tax information processing device provided by an exemplary embodiment of the present application is shown. The tax information processing device includes at least a processor 501, a communication interface 502, and a memory 503. The processor 501, communication interface 502, and memory 503 may be connected via a bus or other means. This embodiment uses a bus connection as an example. The processor 501 (also known as the Central Processing Unit (CPU)) is the computing and control core of the terminal. It can interpret various commands within the terminal and process various data within the terminal. For example, the CPU can interpret power on / off commands sent by the user to the terminal and control the terminal's power on / off operation. Another example is that the CPU can transmit various interactive data between the terminal's internal components. The communication interface 502 can optionally include a standard wired interface or a wireless interface (such as Wi-Fi or a mobile communication interface). It can be used to send and receive data under the control of the processor 501. The communication interface 502 can also be used for data transmission and interaction within the terminal. The memory 503 (Memory) is a storage device within the terminal, used to store programs and data. It is understood that the memory 503 herein may include both the terminal's built-in memory and, of course, the terminal's supported extended memory. The memory 503 provides storage space that stores the terminal's operating system, which may include but is not limited to: Android, iOS, Windows Phone, etc., and this application does not limit this.
[0110] In the embodiment of the present application, the processor 501 performs the following operations by running the executable program code in the memory 503:
[0111] Receiving, via communication interface 502, an acquisition request sent by a first node in the blockchain network, wherein the acquisition request is for an organization to request to view the tax information of an enterprise;
[0112] Sending a confirmation message to a second node in the blockchain network, wherein the confirmation message is used to confirm with the enterprise whether the institution is allowed to view the tax information of the enterprise;
[0113] receiving, via the communication interface 502, a response message sent by the second node;
[0114] If the response information is used to indicate that the institution is allowed to view the tax information of the enterprise, the institution is authorized to view the tax information of the enterprise in the blockchain.
[0115] As an optional implementation, the processor 501 further performs the following operations by running the executable program code in the memory 503:
[0116] If the response information indicates that the institution is denied access to the tax information of the enterprise, then counting the number of denials of the first node within a first preset time period;
[0117] If the number of rejections is less than the number threshold, a first prompt message is sent to the first node, where the first prompt message is used to indicate that the first node does not have the authority to view the tax information of the enterprise;
[0118] If the number of rejections is greater than or equal to the number threshold, the first node is marked as a malicious node, and the acquisition request sent by the first node is refused to be received within a second preset time period.
[0119] As an optional implementation manner, the acquisition request further includes first time information;
[0120] The specific implementation of the processor 501 authorizing the institution to view the tax information of the enterprise in the blockchain is as follows:
[0121] The institution is authorized to view the tax payment information of the enterprise within the time range indicated by the first time information in the blockchain.
[0122] As an optional implementation manner, if the response information is used to indicate that the organization is allowed to view the tax information of the enterprise, the response information includes second time information;
[0123] The specific implementation of the processor 501 authorizing the institution to view the tax information of the enterprise in the blockchain is as follows:
[0124] The agency is authorized to view the tax information of the enterprise within the time range indicated by the second time information.
[0125] As an optional implementation, if the response information indicates that the organization is allowed to view the tax information of the enterprise, the processor 501 further performs the following operations by running the executable program code in the memory 503:
[0126] adding the organization to a permission set and counting the number of organizations in the permission set, wherein the permission set includes organizations that are allowed to view the tax information of the enterprise;
[0127] Determining whether the number of organizations in the permission set is greater than a first number threshold;
[0128] If the number of institutions in the permission set is greater than the first quantity threshold, a second prompt message is sent to the second node, where the second prompt message is used to prompt that the enterprise has authorized multiple institutions to view the enterprise's tax information.
[0129] As an optional implementation manner, after sending the second prompt information to the second node, the processor 501 further performs the following operations:
[0130] Determining whether the number of organizations in the permission set is greater than a second number threshold, the second number threshold being greater than or equal to the first number threshold;
[0131] If the number of nodes is greater than the second number threshold, a third prompt message is sent to the first node, where the third prompt message is used to prompt that the enterprise has authorized multiple institutions to view the tax information of the enterprise.
[0132] As an optional implementation manner, the processor 501 further performs the following operations:
[0133] Receiving first signature information through the communication interface 502, where the first signature information is obtained by signing the acquisition request using the private key of the organization;
[0134] Verifying the first signature information using the public key of the organization;
[0135] If the first signature information is verified successfully, the step of sending confirmation information to the second node is performed.
[0136] Based on the same inventive concept, the principles and beneficial effects of the tax information processing device provided in the embodiment of the present application in solving the problem are similar to the principles and beneficial effects of the tax information processing device in the method embodiment of the present application in solving the problem. Please refer to the principles and beneficial effects of the implementation of the method. For the sake of concise description, they will not be repeated here.
[0137] An embodiment of the present application also provides a computer-readable storage medium, in which one or more instructions are stored. The one or more instructions are suitable for being loaded by a processor and executing the tax information processing method described in the above method embodiment.
[0138] An embodiment of the present application also provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the tax information processing method described in the above method embodiment.
[0139] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0140] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0141] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0142] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0143] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that implementing all or part of the processes of the above embodiment and making equivalent changes in accordance with the claims of this application still fall within the scope of the invention.
Claims
1. A tax information processing method, characterized in that: The method comprises: The third node receives an acquisition request and a first digital signature sent by the first node in the blockchain network, wherein the acquisition request is used by an organization to request to view the tax information of an enterprise, and the acquisition request includes an identifier of the organization and an identifier of the enterprise. After generating the acquisition request, the first node uses a hash function to generate a first message digest from the acquisition request, and encrypts the first message digest using the private key of the first node to obtain a first digital signature. The acquisition request includes first time information, and the first time information is used to indicate a time range for tax information of the enterprise corresponding to the second node that the organization corresponding to the first node wishes to view. The third node generates a second message digest from the acquisition request using a hash function, decrypts the first digital signature using the public key of the first node to obtain the first message digest, and confirms whether the first message digest is consistent with the second message digest; If the first message digest is inconsistent with the second message digest, the third node discards the acquisition request; If the first message digest is consistent with the second message digest, the third node determines the second node based on the identifier of the enterprise in the acquisition request, and sends a confirmation message to the second node in the blockchain network, wherein the confirmation message is used to confirm with the enterprise whether the institution is allowed to view the tax information of the enterprise, and the confirmation message includes the identifier of the institution; The third node receives the response information sent by the second node; wherein, if the enterprise corresponding to the second node believes that the first time information sent by the institution corresponding to the first node is unreasonable, the response information includes third time information, and the third time information is used to indicate the time range of tax payment information of the enterprise corresponding to the second node that the second node allows the first node to view; If the response information indicates that the institution is allowed to view the tax information of the enterprise, the third node authorizes the institution to view the tax information of the enterprise in the blockchain and adds the institution to a permission set. The permission set includes the identifiers of the institutions that are allowed to view the tax information of the enterprise and the viewing permission corresponding to each institution identifier. The viewing permission records the time range of the institution's viewing permission corresponding to each institution identifier. The third node counts the number of institutions in the permission set, and determines whether the number of institutions indicated by the identifiers of the institutions in the permission set is greater than a first number threshold; If not, the third node will send the authorization information corresponding to the authorization of the institution to view the tax information of the enterprise in the blockchain as a transaction to the blockchain network for consensus, and store it in the blockchain after the consensus is passed; If so, the third node sends a second prompt message to the second node, where the second prompt message is used to prompt that the enterprise has authorized multiple institutions to view the tax information of the enterprise.
2. The method according to claim 1, characterized in that The method further comprises: If the response information indicates that the institution is denied access to the tax information of the enterprise, then counting the number of denials of the first node within a first preset time period; If the number of rejections is less than the number threshold, a first prompt message is sent to the first node, where the first prompt message is used to indicate that the first node does not have the authority to view the tax information of the enterprise; If the number of rejections is greater than or equal to the number threshold, the first node is marked as a malicious node, and the acquisition request sent by the first node is refused to be received within a second preset time period.
3. The method according to claim 1, characterized in that The authorization for the institution to view the tax information of the enterprise in the blockchain includes: The institution is authorized to view the tax payment information of the enterprise within the time range indicated by the first time information in the blockchain.
4. The method according to claim 1, wherein If the response information is used to indicate that the organization is allowed to view the tax information of the enterprise, the response information includes second time information; The authorization for the institution to view the tax information of the enterprise in the blockchain includes: The agency is authorized to view the tax information of the enterprise within the time range indicated by the second time information.
5. The method according to claim 1, wherein After sending the second prompt information to the second node, the method further includes: Determining whether the number of organizations in the permission set is greater than a second number threshold, the second number threshold being greater than or equal to the first number threshold; If the number of nodes is greater than the second number threshold, a third prompt message is sent to the first node, where the third prompt message is used to prompt that the enterprise has authorized multiple institutions to view the tax information of the enterprise.
6. A tax information processing device, characterized in that: Applied to a third node, the apparatus includes: A receiving unit, configured to receive an acquisition request and a first digital signature sent by a first node in a blockchain network, wherein the acquisition request is used by an organization to request to view the tax information of an enterprise, and the acquisition request includes an identifier of the organization and an identifier of the enterprise; wherein, after generating the acquisition request, the first node uses a hash function to generate a first message digest from the acquisition request, and uses the first node's private key to encrypt the first message digest to obtain a first digital signature; the acquisition request includes first time information, and the first time information is used to indicate a time range for tax information of the enterprise corresponding to the second node that the organization corresponding to the first node wishes to view; a processing unit, configured to generate a second message digest from the acquisition request using a hash function, decrypt the first digital signature using the public key of the first node to obtain the first message digest, and confirm whether the first message digest and the second message digest are consistent; if the first message digest and the second message digest are inconsistent, discard the acquisition request; if the first message digest and the second message digest are consistent, determine the second node based on the identifier of the enterprise in the acquisition request, and send a confirmation message to the second node in the blockchain network, the confirmation message being used to confirm with the enterprise whether the institution is allowed to view the enterprise's tax information, the confirmation message including the identifier of the institution; The receiving unit is further configured to receive a response message sent by the second node; wherein, if the enterprise corresponding to the second node believes that the first time information sent by the institution corresponding to the first node is unreasonable, the response message includes third time information, and the third time information is used to indicate a time range for tax payment information of the enterprise corresponding to the second node that the second node allows the first node to view; The processing unit is further configured to, if the response information indicates that the institution is permitted to view the tax information of the enterprise, authorize the institution to view the tax information of the enterprise in the blockchain, and add the institution to a permission set, wherein the permission set includes identifiers of the institutions permitted to view the tax information of the enterprise and viewing permissions corresponding to each institution identifier, wherein the viewing permissions record a time range within which the institution's viewing permission corresponding to each institution identifier is permitted; The processing unit is further configured to count the number of institutions in the permission set and determine whether the number of institutions indicated by the identifiers of the institutions in the permission set is greater than a first quantity threshold; if not, the authorization information corresponding to authorizing the institutions to view the tax information of the enterprise in the blockchain is sent as a transaction to the blockchain network for consensus, and stored in the blockchain after the consensus is passed; if so, a second prompt message is sent to the second node, where the second prompt message is used to prompt that the enterprise has authorized multiple institutions to view the tax information of the enterprise.
7. A tax information processing device, characterized in that: The method comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the tax information processing method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executed by the tax information processing method according to any one of claims 1 to 5.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the tax information processing method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Bank-and-taxation interaction system construction method based on blockchain
CN108615185A