CN112102060B - Tax information processing method and system based on block chain - Google Patents

Tax information processing method and system based on block chain Download PDF

Info

Publication number
CN112102060B
CN112102060B CN202011290032.1A CN202011290032A CN112102060B CN 112102060 B CN112102060 B CN 112102060B CN 202011290032 A CN202011290032 A CN 202011290032A CN 112102060 B CN112102060 B CN 112102060B
Authority
CN
China
Prior art keywords
tax
tax information
encrypted
information
financial institution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011290032.1A
Other languages
Chinese (zh)
Other versions
CN112102060A (en
Inventor
闫华锋
赵丙镇
王栋
玄佳兴
石欣
杨珂
陈帅
李达
王俊生
吕佳宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guowang Xiongan Finance Technology Group Co ltd
State Grid Blockchain Technology Beijing Co ltd
State Grid Digital Technology Holdings Co ltd
Original Assignee
Guowang Xiongan Finance Technology Group Co ltd
State Grid Blockchain Technology Beijing Co ltd
State Grid E Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guowang Xiongan Finance Technology Group Co ltd, State Grid Blockchain Technology Beijing Co ltd, State Grid E Commerce Co Ltd filed Critical Guowang Xiongan Finance Technology Group Co ltd
Priority to CN202011290032.1A priority Critical patent/CN112102060B/en
Publication of CN112102060A publication Critical patent/CN112102060A/en
Application granted granted Critical
Publication of CN112102060B publication Critical patent/CN112102060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/123Tax preparation or submission
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a block chain-based tax information processing method and system, which can effectively improve the sharing convenience of tax information and protect the safety of the tax information based on a block chain among a tax institution, a financial institution, a first proxy node and a second proxy node when sharing and risk evaluation are carried out on the tax information. In addition, in the tax information sharing process, the use priority of the re-encrypted data is set, the re-encrypted data can be decrypted and used by a credible financial management organization, and the re-encrypted data can be used by a semi-credible consensus node after being verified by a data provider, so that the security of the shared data is improved.

Description

Tax information processing method and system based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a tax information processing method and system based on a block chain.
Background
At present, the financial market widely has information asymmetry, and the information asymmetry triggers commercial banks to carry out credit allocation on small and medium enterprises, so that the small and medium enterprises are trapped in a financing predicament. When an enterprise applies for a loan service, prejudgment cannot be made in advance, so that time and labor are consumed for auditing the loan service. Meanwhile, some financial institutions determine different levels or levels of different enterprises in advance, but the determination mode is simple, the accuracy is not high, and the determination mode cannot be used as an effective reference.
At present, as shown in fig. 1, there is a method that is centered on a management organization, such as a bank/custody, and sets up a data interaction interface with a tax agency and each financial institution, such as a commercial bank A, B, and performs enterprise credit rating using tax data as an index, thereby avoiding financial risk. The other mode is that different mechanisms are divided into different channels, and the mechanisms are isolated, so that the purposes of sharing tax data and other mechanism information and tracing data are achieved, and meanwhile, the data security is protected.
Therefore, in the existing tax information management mode, each organization depends on a central management organization for enterprise tax information exchange, so that the system construction cost is high, the system flexibility is poor, the expansion is difficult, and once a central network has problems, the whole data transmission system is paralyzed; all data transmission needs to pass through the network center, so that the data transmission efficiency is low and the real-time performance is poor; different mechanisms are divided into different channels, and although data security under certain conditions is met, the convenience of data sharing is poor, and security vulnerabilities still exist.
Therefore, how to effectively improve the sharing convenience of the tax information and protect the safety of the tax information is an urgent problem to be solved.
Disclosure of Invention
In view of the above, the present invention provides a method for processing tax information based on a block chain, which can effectively improve the sharing convenience of the tax information and protect the security of the tax information based on the block chain when processing the tax information.
The invention provides a tax information processing method based on a block chain, which comprises the following steps:
the tax institution generates tax information of an enterprise after receiving the tax, encrypts the tax information and stores the encrypted tax information to an off-link distributed database;
the tax agency generates a block by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority, and uploads the block to a block chain;
a financial institution sends a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
the tax institution judges whether the financial institution is legal and has information reading authority, if so, the identity information and the public key of the financial institution are calculated based on the private key of the tax institution to generate an agent key, and the agent key is copied to generate a first agent key and a second agent key;
the tax agency sends the first proxy key, the storage address of the encrypted tax information and the first priority information to a first proxy node, and sends the second proxy key, the storage address of the encrypted tax information and the second priority information to a second proxy node;
the first proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the second proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the second proxy key to obtain second re-encrypted tax information;
and the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution, and acquires the tax information of the enterprise.
Preferably, the method further comprises:
and generating a private key of the tax institution and a private key of the financial institution.
Preferably, the receiving, by the financial institution, the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypting, based on a private key of the financial institution, the first re-encrypted tax information or the second re-encrypted tax information to obtain the tax information of the enterprise includes:
the financial institution receives the first re-encrypted tax information, or the first re-encrypted tax information and the second re-encrypted tax information;
and decrypting the first re-encrypted tax information based on the private key of the financial institution to obtain the tax information of the enterprise.
Preferably, the receiving, by the financial institution, the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypting, based on a private key of the financial institution, the first re-encrypted tax information or the second re-encrypted tax information to obtain the tax information of the enterprise includes:
the financial institution receives the second encrypted tax information;
decrypting the second encrypted tax information based on the private key of the financial institution to obtain decrypted tax information;
encrypting the decrypted tax information by using a public key of the tax authority;
receiving the tax authority to decrypt the tax information encrypted by the public key of the tax authority, and comparing the decrypted tax information with the tax information of the enterprise after tax payment to obtain a comparison result;
and when the decrypted tax information is consistent with the tax information of the enterprise after tax payment, the financial institution stores the tax information of the enterprise.
Preferably, after the obtaining the tax information of the enterprise, the method further includes:
based on the acquired tax information of the enterprise, comparing the enterprise with a plurality of standard objects;
determining a standard object model corresponding to the enterprise based on the comparison result;
and performing risk assessment on the enterprise based on the corresponding standard object model.
A block-chain-based tax information processing system, comprising: the system comprises a tax institution, a financial institution, a first proxy node and a second proxy node; wherein:
the tax institution is used for generating tax information after the enterprise receives the tax, encrypting the tax information and storing the encrypted tax information to an off-link distributed database;
the tax institution is also used for generating blocks by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority and uploading the blocks to a block chain;
the financial institution is used for sending a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
the tax institution is also used for judging whether the financial institution is legal and has information reading authority, if so, calculating the identity information and the public key of the financial institution based on the private key of the tax institution to generate an agent key, and copying the agent key to generate a first agent key and a second agent key;
the tax authority is further configured to send the first proxy key, the storage address of the encrypted tax information, and the first priority information to a first proxy node, and send the second proxy key, the storage address of the encrypted tax information, and the second priority information to a second proxy node;
the first proxy node is used for reading the encrypted tax information in the distributed database, and re-encrypting the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the second proxy node is used for reading the encrypted tax information in the distributed database, and re-encrypting the encrypted tax information by using the second proxy key to obtain second re-encrypted tax information;
the financial institution is further used for receiving the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypting the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution to obtain the tax information of the enterprise.
Preferably, the tax authority is further configured to generate a private key of the tax authority; the financial institution is further configured to generate a private key of the financial institution.
Preferably, the financial institution is specifically configured to:
receiving the first re-encrypted tax information, or the first re-encrypted tax information and the second re-encrypted tax information;
and decrypting the first re-encrypted tax information based on the private key of the financial institution to obtain the tax information of the enterprise.
Preferably, the financial institution is specifically configured to:
receiving the second re-encrypted tax information;
decrypting the second encrypted tax information based on the private key of the financial institution to obtain decrypted tax information;
encrypting the decrypted tax information by using a public key of the tax authority;
receiving the tax authority to decrypt the tax information encrypted by the public key of the tax authority, and comparing the decrypted tax information with the tax information of the enterprise after tax payment to obtain a comparison result;
and when the decrypted tax information is consistent with the tax information of the enterprise after tax payment, the tax information of the enterprise is saved.
Preferably, the financial institution is further configured to:
based on the acquired tax information of the enterprise, comparing the enterprise with a plurality of standard objects;
determining a standard object model corresponding to the enterprise based on the comparison result;
and performing risk assessment on the enterprise based on the corresponding standard object model.
In summary, the invention discloses a tax information processing method based on a block chain, a tax organization generates tax information after an enterprise receives tax, encrypts the tax information, and stores the encrypted tax information to an off-chain distributed database; the tax agency generates a block by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority, and uploads the block to a block chain; the financial institution sends a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution; the tax institution judges whether the financial institution is legal and has information reading authority, if so, the identity information and the public key of the financial institution are calculated based on the private key of the tax institution to generate a proxy key, and the proxy key is copied to generate a first proxy key and a second proxy key; the tax agency sends the first proxy key, the storage address of the encrypted tax information and the first priority information to the first proxy node, and sends the second proxy key, the storage address of the encrypted tax information and the second priority information to the second proxy node; the first proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using a first proxy key to obtain first re-encrypted tax information; the second proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the second proxy key to obtain second re-encrypted tax information; the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution, and acquires the tax information of the enterprise. When the tax information is processed, the sharing convenience of the tax information can be effectively improved and the safety of the tax information can be protected based on the block chain.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a conventional tax information transmission;
FIG. 2 is a flowchart of a method of embodiment 1 of a block chain-based tax information processing method according to the present invention;
FIG. 3 is a flowchart of a method of embodiment 2 of a block chain-based tax information processing method according to the present invention;
FIG. 4 is a schematic structural diagram of an embodiment 1 of a block chain-based tax information processing system according to the present invention;
FIG. 5 is a schematic structural diagram of an embodiment 2 of a block chain-based tax information processing system according to the present invention;
fig. 6 is a schematic diagram of a data structure of re-encrypted tax information according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, which is a flowchart of a method in embodiment 1 of a block chain-based tax information processing method disclosed in the present invention, the method may include the following steps:
s201, generating tax information after an enterprise receives tax by a tax institution, encrypting the tax information, and storing the encrypted tax information to an off-link distributed database;
and after the enterprise E taxes, the tax institution T generates tax information of the enterprise E. The tax authority T encrypts the tax information D, and stores the encrypted tax information M1 in the out-of-link distributed database.
S202, the tax authority generates blocks by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority, and uploads the blocks to a block chain;
and the tax institution T generates the signed tax information D and the hash value thereof, the storage position of the distributed database and the access authority into a block and uploads the block to a block chain.
S203, the financial institution sends a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
when a user, for example, financial institution 1, wants to obtain tax data for an enterprise, it first sends a request (including the public key of the financial institution 1) to tax institution T.
S204, the tax institution judges whether the financial institution is legal and has information reading authority, if so, the identity information and the public key of the financial institution are calculated based on the private key of the tax institution to generate an agent key, and the agent key is copied to generate a first agent key and a second agent key;
after verification, if the financial institution 1 is judged to be legal and has the information reading authority, the tax institution T calculates the identity information (for example, bank ID) of the financial institution 1 and the public key of the financial institution 1 by using its own private key to generate a proxy key, and copies the proxy key to generate a first proxy key and a second proxy key.
S205, the tax authority sends the first proxy key, the storage address of the encrypted tax information and the first priority information to the first proxy node, and sends the second proxy key, the storage address of the encrypted tax information and the second priority information to the second proxy node;
then, the tax authority T sends the first proxy key, the storage address of the encrypted tax information, and the first priority information to the first proxy node, and sends the second proxy key, the storage address of the encrypted tax information, and the second priority information to the second proxy node.
It should be noted that one of the two agent nodes may be, for example, an administrator node, and the other agent node may be, for example, a miner node voted for selection by a consensus algorithm, such as the DPOS algorithm. The administrative nodes typically have a higher degree of confidence than the miner nodes produced by the consensus algorithm.
The first priority and the second priority are used for determining the priority order of the first re-encrypted tax information and the second re-encrypted tax information used by the subsequent financial institution, for example, the first priority is represented as "1" indicating the order of priority use, and the second priority is represented as "0" indicating the order of no priority use.
S206, the first proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the first proxy node reads the encrypted tax information M1 in the distributed database, re-encrypts the encrypted tax information M1 by using the first proxy key to obtain first re-encrypted tax information M21, and marks the first re-encrypted tax information M21 by using the first priority information.
S207, the second proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using a second proxy key to obtain second re-encrypted tax information;
the second proxy node reads the encrypted tax information M1 in the distributed database, re-encrypts the encrypted tax information M1 using the second proxy key to obtain second re-encrypted tax information M22, and marks the second re-encrypted tax information M22 using the second priority information.
For example, the re-encrypted tax information may be marked by adding a data header to the re-encrypted tax information and using the priority information as the data header, and the data structure of the re-encrypted tax information is shown in fig. 6. Wherein, in the data structure, the priority part is non-encrypted information and is available for a user to read.
S208, the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution, and obtains the tax information of the enterprise.
Then, the financial institution 1 receives the re-encrypted tax information, decrypts the re-encrypted tax information by using its own private key, and obtains the clear text of the tax information D.
Specifically, if the financial institution 1 can obtain the first re-encrypted tax information M21 and the second re-encrypted tax information M22 at the same time, it is determined whether to use the first re-encrypted tax information M21 or the second re-encrypted tax information M22 according to the priority, and then, it is decrypted using its own private key.
If the re-encrypted tax information with high priority of use is obtained, the decryption is performed by using the own private key.
If the re-encrypted tax information with low use priority is obtained, decrypting by using a private key of the tax authority to obtain tax information D, encrypting the tax data by using a public key of the tax authority, after receiving the encrypted data and decrypting by the tax authority, comparing with the original data information, and returning a comparison result to the financial authority, wherein the financial authority stores the tax information according to the returned result if the two are consistent, otherwise, abandons the tax information.
In summary, in the above embodiments, when sharing the tax information, the sharing convenience of the tax information can be effectively improved and the security of the tax information can be protected based on the block chain. In addition, in the tax information sharing process, the use priority of the re-encrypted data is set, the re-encrypted data can be decrypted and used by a credible financial management organization, and the re-encrypted data can be used by a semi-credible consensus node after being verified by a data provider, so that the security of the shared data is improved.
As shown in fig. 3, which is a flowchart of a method in embodiment 2 of the method for processing tax information based on a block chain disclosed on the basis of the foregoing embodiment of the present invention, the method may include the following steps:
s301, generating a private key of the tax institution and a private key of the financial institution;
when sharing and risk assessment of tax information are needed, the tax institution and the financial institution may generate their own private keys in advance. Specifically, when the tax institution and the financial institution generate the private key, the polynomial function can be selected to generate the secret value, and the private key of the tax institution and the financial institution can be generated according to the secret values of other institutions, that is, the private keys of the tax institution and the financial institution can be determined through a negotiation algorithm.
S302, generating tax information after the enterprise receives the tax by a tax institution, encrypting the tax information, and storing the encrypted tax information to an off-link distributed database;
and after the enterprise E taxes, the tax institution T generates tax information of the enterprise E. The tax authority T encrypts the tax information D, and stores the encrypted tax information M1 in the out-of-link distributed database.
S303, the tax authority generates a block by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority, and uploads the block to a block chain;
and the tax institution T generates the signed tax information D and the hash value thereof, the storage position of the distributed database and the access authority into a block and uploads the block to a block chain.
S304, the financial institution sends a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
when a user, for example, financial institution 1, wants to obtain tax data for an enterprise, it first sends a request (including the public key of the financial institution 1) to tax institution T.
S305, the tax institution judges whether the financial institution is legal and has information reading authority, if so, the identity information and the public key of the financial institution are calculated based on the private key of the tax institution to generate an agent key, and the agent key is copied to generate a first agent key and a second agent key;
after verification, if the financial institution 1 is judged to be legal and has the information reading authority, the tax institution T calculates the identity information (for example, bank ID) of the financial institution 1 and the public key of the financial institution 1 by using its own private key to generate a proxy key, and copies the proxy key to generate a first proxy key and a second proxy key.
S306, the tax agency sends the first agency key, the storage address of the encrypted tax information and the first priority information to the first agency node, and sends the second agency key, the storage address of the encrypted tax information and the second priority information to the second agency node;
then, the tax authority T sends the first proxy key, the storage address of the encrypted tax information, and the first priority information to the first proxy node, and sends the second proxy key, the storage address of the encrypted tax information, and the second priority information to the second proxy node.
It should be noted that one of the two agent nodes may be, for example, an administrator node, and the other agent node may be, for example, a miner node voted for selection by a consensus algorithm, such as the DPOS algorithm. The administrative nodes typically have a higher degree of confidence than the miner nodes produced by the consensus algorithm.
The first priority and the second priority are used for determining the priority order of the first re-encrypted tax information and the second re-encrypted tax information used by the subsequent financial institution, for example, the first priority is represented as "1" indicating the order of priority use, and the second priority is represented as "0" indicating the order of no priority use.
S307, the first proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the first proxy node reads the encrypted tax information M1 in the distributed database, re-encrypts the encrypted tax information M1 by using the first proxy key to obtain first re-encrypted tax information M21, and marks the first re-encrypted tax information M21 by using the first priority information.
S308, the second proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using a second proxy key to obtain second re-encrypted tax information;
the second proxy node reads the encrypted tax information M1 in the distributed database, re-encrypts the encrypted tax information M1 using the second proxy key to obtain second re-encrypted tax information M22, and marks the second re-encrypted tax information M22 using the second priority information.
For example, the re-encrypted tax information may be marked by adding a data header to the re-encrypted tax information and using the priority information as the data header, and the data structure of the re-encrypted tax information is shown in fig. 6. Wherein, in the data structure, the priority part is non-encrypted information and is available for a user to read.
S309, the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution, and obtains the tax information of the enterprise.
Then, the financial institution 1 receives the re-encrypted tax information, decrypts the re-encrypted tax information by using its own private key, and obtains the clear text of the tax information D.
Specifically, if the financial institution 1 can obtain the first re-encrypted tax information M21 and the second re-encrypted tax information M22 at the same time, it is determined whether to use the first re-encrypted tax information M21 or the second re-encrypted tax information M22 according to the priority, and then, it is decrypted using its own private key.
If the re-encrypted tax information with high priority of use is obtained, the decryption is performed by using the own private key.
If the re-encrypted tax information with low use priority is obtained, decrypting by using a private key of the tax authority to obtain tax information D, encrypting the tax data by using a public key of the tax authority, after receiving the encrypted data and decrypting by the tax authority, comparing with the original data information, and returning a comparison result to the financial authority, wherein the financial authority stores the tax information according to the returned result if the two are consistent, otherwise, abandons the tax information.
S310, comparing the enterprise with a plurality of standard objects based on the acquired tax information of the enterprise;
after the financial institution acquires the tax information of the enterprise, the financial risk of the enterprise can be evaluated according to the acquired tax information.
Specifically, firstly, based on the acquired tax information of an enterprise, the enterprise is compared with a plurality of standard objects; the standard corresponds to a virtual enterprise model constructed based on tax information, the model having different risk indices.
S311, determining a standard object model corresponding to the enterprise based on the comparison result;
and then, determining a standard object model corresponding to the enterprise according to the obtained comparison result.
And S312, carrying out risk assessment on the enterprise based on the corresponding standard object model.
And finally, performing risk assessment on the enterprise according to the determined corresponding standard object model to obtain a risk assessment result.
In summary, in the present embodiment, based on the above embodiments, the risk assessment of the tax information can be further implemented based on the block chain.
As shown in fig. 4, which is a schematic structural diagram of an embodiment 1 of a block chain-based tax information processing system according to the present disclosure, the system may include a tax authority 41, a financial authority 42, a first proxy node 43, and a second proxy node 44; wherein:
the tax institution 41 is used for generating tax information after the enterprise receives the tax, encrypting the tax information and storing the encrypted tax information to an off-link distributed database;
the tax authority 41 is further configured to generate a block from the hash value of the tax information, the signed tax information, the storage location of the distributed database, and the access right, and upload the block to the block chain;
the financial institution 42 is used for sending a tax data acquisition request to the tax institution 41, wherein the request comprises a public key of the financial institution;
the tax authority 41 is further configured to determine whether the financial institution 42 is legal and has an information reading authority, and if so, calculate the identity information and the public key of the financial institution based on a private key of the tax authority to generate a proxy key, and copy the proxy key to generate a first proxy key and a second proxy key;
the tax authority 41 is further configured to send the first proxy key, the storage address of the encrypted tax information, and the first priority information to the first proxy node 43, and send the second proxy key, the storage address of the encrypted tax information, and the second priority information to the second proxy node 44;
the first proxy node 43 is configured to read the encrypted tax information in the distributed database, and re-encrypt the encrypted tax information using the first proxy key to obtain first re-encrypted tax information;
the second proxy node 44 is configured to read the encrypted tax information in the distributed database, and re-encrypt the encrypted tax information using the second proxy key to obtain second re-encrypted tax information;
the financial institution 42 is further configured to receive the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypt the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution to obtain the tax information of the enterprise.
The working principle of the block chain based tax information processing system disclosed in this embodiment is the same as that of the block chain based tax information processing method in embodiment 1, and details are not repeated here.
As shown in fig. 5, which is a schematic structural diagram of an embodiment 2 of a block chain based tax information processing system disclosed on the basis of the above embodiment of the present invention, the system may include a tax authority 51, a financial authority 52, a first proxy node 53 and a second proxy node 54; wherein:
a tax authority 51 for generating a private key of the tax authority;
a financial institution 52 for generating a private key of the financial institution;
the tax institution 51 is used for generating tax information after the enterprise receives the tax, encrypting the tax information and storing the encrypted tax information to an off-link distributed database;
the tax authority 51 is further configured to generate a block from the hash value of the tax information, the signed tax information, the storage location of the distributed database, and the access right, and upload the block to the block chain;
the financial institution 52 is used for sending a tax data acquisition request to the tax institution 51, wherein the request comprises a public key of the financial institution;
the tax authority 51 is further configured to determine whether the financial institution 52 is legal and has an information reading authority, and if so, calculate the identity information and the public key of the financial institution based on a private key of the tax authority to generate a proxy key, and copy the proxy key to generate a first proxy key and a second proxy key;
the tax authority 51 is further configured to send the first proxy key, the storage address of the encrypted tax information, and the first priority information to the first proxy node 53, and send the second proxy key, the storage address of the encrypted tax information, and the second priority information to the second proxy node 54;
the first proxy node 53 is configured to read the encrypted tax information in the distributed database, and re-encrypt the encrypted tax information using the first proxy key to obtain first re-encrypted tax information;
the second proxy node 54 is configured to read the encrypted tax information in the distributed database, and re-encrypt the encrypted tax information using the second proxy key to obtain second re-encrypted tax information;
the financial institution 52 is further configured to receive the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypt the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution to obtain tax information of the enterprise;
the financial institution 52 is further configured to compare the enterprise with a plurality of standard objects based on the acquired tax information of the enterprise; determining a standard object model corresponding to the enterprise based on the comparison result; and performing risk assessment on the enterprise based on the corresponding standard object model.
The working principle of the block chain based tax information processing system disclosed in this embodiment is the same as that of the block chain based tax information processing method in embodiment 2, and details are not repeated here.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A tax information processing method based on a block chain is characterized by comprising the following steps:
the tax institution generates tax information of an enterprise after receiving the tax, encrypts the tax information and stores the encrypted tax information to an off-link distributed database;
the tax agency generates a block by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority, and uploads the block to a block chain;
a financial institution sends a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
the tax institution judges whether the financial institution is legal and has information reading authority, if so, the identity information and the public key of the financial institution are calculated based on the private key of the tax institution to generate an agent key, and the agent key is copied to generate a first agent key and a second agent key;
the tax authority sends the first proxy key, the storage address of the encrypted tax information and the first priority information to a first proxy node, and sends the second proxy key, the storage address of the encrypted tax information and the second priority information to a second proxy node, wherein the credibility of the first proxy node is higher than that of the second proxy node;
the first proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the second proxy node reads the encrypted tax information in the distributed database, and re-encrypts the encrypted tax information by using the second proxy key to obtain second re-encrypted tax information; the re-encryption tax information is provided with a data head, priority information is used as the data head to mark the re-encryption tax information, and the data head is non-encryption information;
the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution, and acquires the tax information of an enterprise;
the financial institution receives the first re-encrypted tax information and/or the second re-encrypted tax information, decrypts the first re-encrypted tax information or the second re-encrypted tax information based on a private key of the financial institution, and acquires the tax information of an enterprise, including:
the financial institution receives the first re-encrypted tax information, or the first re-encrypted tax information and the second re-encrypted tax information;
decrypting the first re-encrypted tax information based on a private key of the financial institution to obtain tax information of an enterprise;
or;
the financial institution receives the second encrypted tax information;
decrypting the second encrypted tax information based on the private key of the financial institution to obtain decrypted tax information;
encrypting the decrypted tax information by using a public key of the tax authority;
receiving the tax authority to decrypt the tax information encrypted by the public key of the tax authority, and comparing the decrypted tax information with the tax information of the enterprise after tax payment to obtain a comparison result;
and when the decrypted tax information is consistent with the tax information of the enterprise after tax payment, the financial institution stores the tax information of the enterprise.
2. The method of claim 1, further comprising:
and generating a private key of the tax institution and a private key of the financial institution.
3. The method of claim 1, after obtaining tax information for a business, further comprising:
based on the acquired tax information of the enterprise, comparing the enterprise with a plurality of standard objects;
determining a standard object model corresponding to the enterprise based on the comparison result;
and performing risk assessment on the enterprise based on the corresponding standard object model.
4. A block chain-based tax information processing system, comprising: the system comprises a tax institution, a financial institution, a first proxy node and a second proxy node; wherein:
the tax institution is used for generating tax information after the enterprise receives the tax, encrypting the tax information and storing the encrypted tax information to an off-link distributed database;
the tax institution is also used for generating blocks by the hash value of the tax information, the signed tax information, the storage position of the distributed database and the access authority and uploading the blocks to a block chain;
the financial institution is used for sending a tax data acquisition request to the tax institution, wherein the request comprises a public key of the financial institution;
the tax institution is also used for judging whether the financial institution is legal and has information reading authority, if so, calculating the identity information and the public key of the financial institution based on the private key of the tax institution to generate an agent key, and copying the agent key to generate a first agent key and a second agent key;
the tax authority is further configured to send the first proxy key, the storage address of the encrypted tax information, and the first priority information to a first proxy node, and send the second proxy key, the storage address of the encrypted tax information, and the second priority information to a second proxy node, where a reliability of the first proxy node is higher than a reliability of the second proxy node;
the first proxy node is used for reading the encrypted tax information in the distributed database, and re-encrypting the encrypted tax information by using the first proxy key to obtain first re-encrypted tax information;
the second proxy node is used for reading the encrypted tax information in the distributed database, and re-encrypting the encrypted tax information by using the second proxy key to obtain second re-encrypted tax information; the re-encryption tax information is provided with a data head, priority information is used as the data head to mark the re-encryption tax information, and the data head is non-encryption information;
the financial institution is further used for receiving the first re-encrypted tax information and/or the second re-encrypted tax information, and decrypting the first re-encrypted tax information and/or the second re-encrypted tax information based on a private key of the financial institution to obtain tax information of an enterprise;
the financial institution is specifically configured to:
receiving the first re-encrypted tax information, or the first re-encrypted tax information and the second re-encrypted tax information;
decrypting the first re-encrypted tax information based on a private key of the financial institution to obtain tax information of an enterprise;
or;
receiving the second re-encrypted tax information;
decrypting the second encrypted tax information based on the private key of the financial institution to obtain decrypted tax information;
encrypting the decrypted tax information by using a public key of the tax authority;
receiving the tax authority to decrypt the tax information encrypted by the public key of the tax authority, and comparing the decrypted tax information with the tax information of the enterprise after tax payment to obtain a comparison result;
and when the decrypted tax information is consistent with the tax information of the enterprise after tax payment, the tax information of the enterprise is saved.
5. The system of claim 4, wherein the tax authority is further configured to generate a private key of the tax authority; the financial institution is further configured to generate a private key of the financial institution.
6. The system of claim 4, wherein the financial institution is further configured to:
based on the acquired tax information of the enterprise, comparing the enterprise with a plurality of standard objects;
determining a standard object model corresponding to the enterprise based on the comparison result;
and performing risk assessment on the enterprise based on the corresponding standard object model.
CN202011290032.1A 2020-11-17 2020-11-17 Tax information processing method and system based on block chain Active CN112102060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011290032.1A CN112102060B (en) 2020-11-17 2020-11-17 Tax information processing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011290032.1A CN112102060B (en) 2020-11-17 2020-11-17 Tax information processing method and system based on block chain

Publications (2)

Publication Number Publication Date
CN112102060A CN112102060A (en) 2020-12-18
CN112102060B true CN112102060B (en) 2021-03-19

Family

ID=73785654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011290032.1A Active CN112102060B (en) 2020-11-17 2020-11-17 Tax information processing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN112102060B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115587897B (en) * 2022-11-25 2023-06-30 杭州煋辰数智科技有限公司 Police tax joint analysis method based on privacy calculation

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10108965B2 (en) * 2015-07-14 2018-10-23 Ujet, Inc. Customer communication system including service pipeline
CN111028023B (en) * 2018-12-07 2023-02-17 深圳市智税链科技有限公司 Tax management method, apparatus, medium and electronic device based on block chain system
CN110430186B (en) * 2019-07-31 2020-07-21 国网电子商务有限公司 Block chain data transaction system and method based on agent re-encryption and intelligent contract
CN111292174A (en) * 2020-01-21 2020-06-16 腾讯科技(深圳)有限公司 Tax payment information processing method and device and computer readable storage medium
CN111611621A (en) * 2020-05-29 2020-09-01 宁波富万信息科技有限公司 Block chain based distributed data encryption storage method and electronic equipment

Also Published As

Publication number Publication date
CN112102060A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US11290267B2 (en) Multi-party security computing method and apparatus, and electronic device
CN110034924B (en) Data processing method and device
Kaaniche et al. Data security and privacy preservation in cloud storage environments based on cryptographic mechanisms
US11038673B2 (en) Data processing method and apparatus
US11483161B2 (en) Method for information processing and non-transitory computer readable storage medium
US11790106B1 (en) Methods for protecting data
KR20010067966A (en) System and method of software-based commercial key escrow for pki environment
JP2017225116A (en) Computer-implemented system and method for protecting sensitive data via data re-encryption
WO2020143318A1 (en) Data verification method and terminal device
EP4092984A1 (en) Data processing method and apparatus, device and medium
CN110708162B (en) Resource acquisition method and device, computer readable medium and electronic equipment
CN114679340B (en) File sharing method, system, device and readable storage medium
CN110992032A (en) Method and device for evaluating credible users by combining multiple parties
CN110737905B (en) Data authorization method, data authorization device and computer storage medium
Fotiou et al. A privacy-preserving statistics marketplace using local differential privacy and blockchain: An application to smart-grid measurements sharing
CN117155644A (en) Medical data hierarchical access control and sharing method with link-up and link-down cooperation
CN112102060B (en) Tax information processing method and system based on block chain
GB2404828A (en) Copyright management where encrypted content and corresponding key are in same file
CN116842559A (en) Data encryption storage model and data encryption storage method based on blockchain
CN113536372B (en) Data processing method and device and electronic equipment
Yeh et al. GDPR-compliant personal health record sharing mechanism with redactable blockchain and revocable IPFS
CN112257084A (en) Personal information storage and monitoring method, system and storage medium based on block chain
CN117499159B (en) Block chain-based data transaction method and device and electronic equipment
Mishra et al. Management Information Systems
WO2023131147A1 (en) Method and apparatus for generating certified user data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100032 room 8018, 8 / F, building 7, Guangyi street, Xicheng District, Beijing

Patentee after: State Grid Digital Technology Holdings Co.,Ltd.

Patentee after: State Grid blockchain Technology (Beijing) Co.,Ltd.

Patentee after: Guowang Xiongan Finance Technology Group Co.,Ltd.

Address before: 311 guanganmennei street, Xicheng District, Beijing 100053

Patentee before: STATE GRID ELECTRONIC COMMERCE Co.,Ltd.

Patentee before: State Grid blockchain Technology (Beijing) Co.,Ltd.

Patentee before: Guowang Xiongan Finance Technology Group Co.,Ltd.

CP03 Change of name, title or address