CN111027972B - Block chain-based data verification method and device and electronic equipment - Google Patents

Block chain-based data verification method and device and electronic equipment Download PDF

Info

Publication number
CN111027972B
CN111027972B CN201911168821.5A CN201911168821A CN111027972B CN 111027972 B CN111027972 B CN 111027972B CN 201911168821 A CN201911168821 A CN 201911168821A CN 111027972 B CN111027972 B CN 111027972B
Authority
CN
China
Prior art keywords
data
target
transaction
data block
tax
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
CN201911168821.5A
Other languages
Chinese (zh)
Other versions
CN111027972A (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.)
Beijing Lianhua Future Technology Co ltd
Original Assignee
Beijing Lianhua Future Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lianhua Future Technology Co ltd filed Critical Beijing Lianhua Future Technology Co ltd
Priority to CN201911168821.5A priority Critical patent/CN111027972B/en
Publication of CN111027972A publication Critical patent/CN111027972A/en
Application granted granted Critical
Publication of CN111027972B publication Critical patent/CN111027972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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

Landscapes

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

Abstract

The embodiment of the invention discloses a data verification method and device based on a blockchain and electronic equipment, wherein the method comprises the following steps: receiving a second data block uploaded by a target transaction party, wherein the second data block comprises target data and certification information, the target transaction party is any party of the two transaction parties, the target data is generated based on preset tax rules and transaction data between the two transaction parties, and the data is subjected to encryption processing, and the certification information is generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and acquired certification key; storing the second data block into a preset blockchain, and acquiring a first data block, wherein the first data block comprises encrypted transaction data; based on the received attestation information in the second data block and the acquired first data block, it is verified whether the target data in the second data block is correct. By the method, the problem of information leakage can be avoided, and the target data can be verified.

Description

Block chain-based data verification method and device and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data verification method and apparatus based on a blockchain, and an electronic device.
Background
The electronic invoice gradually becomes a substitute of the traditional paper invoice due to the advantages of low issuing cost and convenient storage and circulation, is favored by more and more electronic merchants and restaurant, and is generated for solving the privacy leakage problem of the electronic invoice in the circulation and reimbursement processes and the operation of an invoice system based on a blockchain.
In the business activities of merchants, standard invoicing software tools determined by tax authorities can be used to generate corresponding electronic invoices based on transaction information and buyer and seller information, and store the electronic invoices in a designated blockchain system. For example, the merchant 1, the merchant 2 and the merchant 3 together form a coalition chain, the merchant 1 sells the merchant 3 a product B at time a, and the corresponding generated electronic invoice contains the information of the price C, the product B, the transaction time a and the information of the merchant 1 and the merchant 3, the generated electronic invoice can be stored in the coalition chain, and the merchant 1, the merchant 2 and the merchant 3 can all acquire the electronic invoice through the coalition chain.
In the blockchain system, merchants in the alliance chain can acquire electronic invoices stored in the blockchain, and the electronic invoices are stored in the blockchain in a plaintext manner, so that the information leakage problem of buyers and sellers can be solved, and meanwhile, the blockchain cannot verify tax amounts or tax amounts uploaded by the buyers and sellers.
Disclosure of Invention
The embodiment of the invention aims to provide a blockchain-based data verification method, a blockchain-based data verification device and electronic equipment, which are used for solving the problems that information leakage exists in a blockchain-based electronic invoice reimbursement flow and tax amount corresponding or tax amount resisting cannot be verified in the prior art.
In order to solve the technical problems, the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data verification method based on a blockchain, where the method includes:
receiving a second data block uploaded by a target transaction party, wherein the second data block comprises target data and certification information, the target transaction party is any party in the two transaction parties, the target data is generated based on a preset tax rule and transaction data between the two transaction parties, the data is processed through encryption, and the certification information is generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and an acquired certification key;
storing the second data block into the preset blockchain, and acquiring a first data block, wherein the first data block comprises the transaction data after encryption processing;
Verifying whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block.
Optionally, the verifying whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block includes:
acquiring an authentication key corresponding to the target transaction party;
verifying whether target data in the second data block is correct based on the received attestation information in the second data block, the acquired first data block, and the verification key.
Optionally, the receiving the second data block uploaded by the target transaction party includes:
and receiving the second data block uploaded by the target transaction party under the condition that the revocation period of the first data block is ended.
Optionally, the target transaction party is a tax-applying party, and before receiving the second data block uploaded by the target transaction party, the method further includes:
and receiving the first data block uploaded by the target transaction party, and storing the first data block in a blockchain.
In a second aspect, an embodiment of the present invention provides a data verification method based on a blockchain, where the method includes:
Generating target data based on transaction data between the transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties and is encrypted;
generating certification information based on the target data, the first authentication information of the target transaction party, and the acquired certification key;
generating a second data block based on the target data and the attestation information;
and uploading and storing the second data block to a preset blockchain node.
Optionally, the target transaction party is a tax-chargeable party, and the generating target data based on the transaction data between the transaction parties includes:
acquiring a first conversion rule, wherein the first conversion rule is used for generating tax-applicable data based on transaction data;
converting the transaction data based on the first conversion rule to obtain tax-giving data;
and encrypting the tax-applicable data based on a preset coding mode to obtain the target data.
Optionally, the target transaction party is a tax-resisting party, and the generating target data based on the transaction data between the transaction parties includes:
acquiring a second conversion rule, wherein the second conversion rule is used for generating tax-fighting data based on transaction data;
Converting the transaction data based on the second conversion rule to obtain tax resisting data;
and encrypting the tax resisting data based on a preset coding mode to obtain the target data.
In a third aspect, an embodiment of the present invention provides a blockchain-based data verification device, including:
the data block receiving module is used for receiving a second data block uploaded by a target transaction party, wherein the second data block comprises target data and certification information, the target transaction party is any one of the two transaction parties, the target data is generated based on a preset tax rule and transaction data between the two transaction parties, the data is processed through encryption, and the certification information is generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and an acquired certification key;
the data block storage module is used for storing the second data block into the preset blockchain and acquiring a first data block, wherein the first data block comprises the transaction data after encryption processing;
and the data verification module is used for verifying whether the target data in the second data block is correct or not based on the received proving information in the second data block and the acquired first data block.
In a fourth aspect, an embodiment of the present invention provides a blockchain-based data verification device, where the device is a device used by a target transaction party, where the target transaction party is any one of two transaction parties, and the device includes:
the data generation module is used for generating target data based on transaction data between the transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties and is encrypted;
the information generation module is used for generating certification information based on the target data, the first identity verification information of the target transaction party and the acquired certification key;
a data block generation module for generating a second data block based on the target data and the certification information;
and the data block uploading module is used for uploading and storing the second data block to a preset blockchain node.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program when executed by the processor implements the steps of the blockchain-based data verification method provided in the first aspect.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the blockchain-based data verification method provided in the second aspect when executed by the processor.
In a seventh aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the blockchain-based data verification method provided by the above embodiments.
As can be seen from the technical solution provided by the above embodiment of the present invention, the second data block uploaded by the target transaction party is received, the second data block includes target data and certification information, the target transaction party is any party of the two parties of the transaction, the target data is data generated based on a preset tax rule and transaction data between the two parties of the transaction, and is encrypted, the certification information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and the acquired certification key, the second data block is stored in a predetermined blockchain, and the first data block is acquired, the first data block includes encrypted transaction data, and whether the target data in the second data block is correct is verified based on the received certification information in the second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a blockchain-based data verification method of the present invention;
FIG. 2 is a flow chart of another exemplary embodiment of a blockchain-based data verification method of the present invention;
FIG. 3 is a flow chart of yet another exemplary blockchain-based data verification method of the present invention;
FIG. 4 is a flowchart of yet another exemplary blockchain-based data verification method of the present invention;
FIG. 5 is a flowchart of yet another exemplary blockchain-based data verification method of the present invention;
FIG. 6 is a schematic diagram of a block chain based data verification device according to the present invention;
FIG. 7 is a schematic diagram of another block chain based data verification device according to the present invention;
FIG. 8 is a schematic diagram of an electronic device according to the present invention;
Fig. 9 is a schematic structural diagram of another electronic device according to the present invention.
Detailed Description
The embodiment of the invention provides a data verification method and device based on a block chain and electronic equipment.
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, shall fall within the scope of the invention.
Example 1
As shown in fig. 1, an embodiment of the present invention provides a blockchain-based data verification method, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be a stand-alone server or may be a server cluster composed of a plurality of servers. The method specifically comprises the following steps:
In S102, a second data block uploaded by the target transaction party is received.
The second data block may include target data and certification information, the target transaction party may be any party in the transaction parties, the transaction parties may be any person or organization that buys or sells goods or services, the target data may be encrypted data generated based on preset tax rules and transaction data between the transaction parties, for example, if the target transaction party is a tax party, the corresponding target data may be any data generated based on preset tax rules (such as tax rule) and transaction data, and after encryption processing, on the contrary, if the target transaction party is a tax party, the corresponding target data may be encrypted tax data generated based on preset tax rules (such as tax rule) and transaction data, the certification information may be information generated by the target transaction party based on transaction data, first identity verification information of the target transaction party, and acquired certification key, the transaction data may be transaction data generated between the transaction parties, for example, the transaction data may be any data used for generating an electronic invoice (including value-added electronic invoice and value-added electronic invoice, etc.), the corresponding target data may be transaction data generated based on the preset tax rules (such as tax rule) and tax verification information, the first identity information may be generated by the target transaction party, the transaction key may be the first identity information may be generated based on the transaction information, the transaction information may be the first identity information may be the target verification information, and the first identity information may be the transaction information may be the first identity information may be the target information may be the verification information may be obtained, the identity information of the target transaction party can be verified based on any one of the key pairs, the proving key can be one key of the key pair generated by the tax authority based on the target transaction party and a preset tax rule, for example, the merchant A sells a batch of products to the merchant B, the tax authority can generate a pair of key pairs (pk 1 and vk 1) for the merchant A based on the preset tax rule (such as a tax rule), the tax authority can also generate a pair of key pairs (pk 2 and vk 2) for the merchant B based on the preset tax rule (such as a tax rule), if the merchant A is the target transaction party, the obtained proving key is pk1, and if the merchant B is the target transaction party, the obtained proving key is pk2.
In the implementation, the electronic invoice gradually becomes a substitute of the traditional paper invoice due to the advantages of low issuing cost and convenient storage and circulation, is favored by more and more electronic merchants and restaurant, and is generated for solving the privacy leakage problem of the electronic invoice in the circulation and reimbursement processes and the operation of an invoice system based on a blockchain. In the business activities of merchants, standard invoicing software tools determined by tax authorities can be used to generate corresponding electronic invoices based on transaction information and buyer and seller information, and store the electronic invoices in a designated blockchain system. For example, the merchant 1, the merchant 2 and the merchant 3 together form a alliance chain, the merchant 1 sells the merchant 3 a product B at time a, and the corresponding generated electronic invoice contains the information of the price C, the product B, the transaction time a and the information of the merchant 1 and the merchant 3, the generated electronic invoice can be stored in the alliance chain, and the merchant 1, the merchant 2 and the merchant 3 can all acquire the electronic invoice through the blockchain.
In the blockchain system, merchants in the alliance chain can acquire electronic invoices stored in the blockchain, and the electronic invoices are stored in the blockchain in a plaintext manner, so that the information leakage problem of buyers and sellers can be solved, and meanwhile, the blockchain cannot verify tax amounts or tax amounts uploaded by the buyers and sellers. Therefore, the embodiment of the invention provides a technical scheme capable of solving the problems, which specifically comprises the following steps:
The received second data block may include therein the target data and the attestation information generated by the target transaction party. Wherein the target data may be encrypted tax-applicable data generated based on the transaction data if the target transaction party is a party providing the commodity service, and the target data may be encrypted tax-applicable data generated based on the transaction data if the target transaction party is a party purchasing the commodity service.
In S104, the second data block is stored to a predetermined blockchain, and the first data block is acquired.
Wherein the first data block may comprise encrypted transaction data.
In implementation, the corresponding first data block may be obtained according to the first authentication information of the target transaction party included in the second data block. The transaction data in the first data block may be transaction data encrypted based on a preset encoding manner, for example, the first data block may include a hash value H (x 1) obtained by calculating the transaction data x based on a preset hash algorithm.
In S106, based on the received certification information in the second data block and the acquired first data block, it is verified whether the target data in the second data block is correct.
In practice, it may be verified whether the target data in the second data block is correct based on the certification information in the second data block and the encrypted transaction data (i.e., the first data block). Because the target data is tax-bearing data after encryption processing or tax-resisting data after encryption processing, the transaction data in the first data block is data after encryption processing, and therefore the target data can be verified based on the proving information under the condition that specific plaintext data is not needed, and the privacy of the data is protected.
After verifying that the target data in the second data block is correct, the tax authority can verify whether the tax operation or the tax applying operation of the target transaction party accords with the preset tax rule according to the target data in the second data block.
The embodiment of the invention provides a data verification method based on a blockchain, which is characterized in that a second data block uploaded by a target transaction party is received, the second data block comprises target data and proving information, the target transaction party is any party in the two parties of the transaction, the target data is data generated based on a preset tax rule and transaction data between the two parties of the transaction and is subjected to encryption processing, the proving information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and an acquired proving key, the second data block is stored into a preset blockchain, the first data block is acquired, the first data block comprises encrypted transaction data, and whether the target data in the second data block is correct or not is verified based on the proving information in the received second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
Example two
As shown in fig. 2, an embodiment of the present invention provides a blockchain-based data verification method, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be a stand-alone server or may be a server cluster composed of a plurality of servers. The method specifically comprises the following steps:
in S202, a first data block uploaded by a target transaction party is received and stored in a blockchain.
Wherein the target transaction party is a tax-applying party.
In implementation, after the tax-acting party and the tax-acting party conduct the transaction, the tax-acting party may upload the first data block containing the processed transaction data to the predetermined blockchain node, that is, the predetermined blockchain node may receive the first data block uploaded by the target transaction party (that is, the tax-acting party) and store the first data block onto the blockchain.
In S204, in the case where the revocation period of the first data block ends, the second data block uploaded by the target transaction side is received.
In implementation, if the target transaction party detects that the transaction data has an abnormality (such as a data abnormality caused by invalid transaction, a data abnormality caused by data error, etc.), a first data deletion request may be sent to the predetermined blockchain node during a revocation session of the first data block, that is, after the predetermined blockchain receives the first data block deletion request of the target transaction party during the revocation session of the first data block, the second data block may be deleted from the predetermined blockchain, that is, the second data block is revoked.
If the first data block deletion request of the target transaction party is not received within the revocation period of the first data block, the second data block uploaded by the target transaction party can be received.
In S206, the second data block is stored to a predetermined blockchain and the first data block is acquired.
The specific processing procedure of S206 may be referred to the related content in S104 in the first embodiment, and will not be described herein.
In addition, the first data block may further include second authentication information of the target transaction party.
Wherein the second authentication information may be authentication information corresponding to the first authentication information of the target transaction party. For example, a key corresponding to the identity information of the target transaction party may be generated based on preset trusted hardware, and the key may be implemented in a key pair, where the key pair may be formed by a public key and a private key, and the public key in the key pair may be used as the first authentication information of the target transaction party and the private key in the key pair may be used as the second authentication information of the target transaction party. For example, when merchant a and merchant B conduct a transaction, both merchant a and merchant B may be targeted parties, based on preset trusted hardware, key pair 1 may be generated based on information of merchant a (e.g., (pkA, skA)), key pair 2 may be generated based on information of merchant B (e.g., (pkB, skB)), skA may be used as the first authentication information of merchant 1, pkA may be used as the second authentication information of merchant 1, skB may be used as the first authentication information of merchant 2, and pkB may be used as the second authentication information of merchant 2.
In S208, an authentication key corresponding to the target transaction party is acquired.
The verification key may be the other key in the key pair generated by the tax authority based on the target transaction party and the preset tax rule, for example, the merchant a sells a batch of products to the merchant B, the tax authority may generate a pair of key pairs (pk 1, vk 1) for the merchant a based on the preset tax rule (such as the tax rule), and similarly, the tax authority may generate a pair of key pairs (pk 2, vk 2) for the merchant B based on the preset tax rule (such as the tax resisting rule), if the merchant a is the target transaction party, the acquired verification key is pk1, the acquired verification key is vk1, if the merchant B is the target transaction party, the acquired verification key is pk2, and the acquired verification key is vk2.
In S210, it is verified whether the target data in the second data block is correct based on the certification information in the received second data block, the acquired first data block, and the verification key.
The embodiment of the invention provides a data verification method based on a blockchain, which is characterized in that a second data block uploaded by a target transaction party is received, the second data block comprises target data and proving information, the target transaction party is any party in the two parties of the transaction, the target data is data generated based on a preset tax rule and transaction data between the two parties of the transaction and is subjected to encryption processing, the proving information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and an acquired proving key, the second data block is stored into a preset blockchain, the first data block is acquired, the first data block comprises encrypted transaction data, and whether the target data in the second data block is correct or not is verified based on the proving information in the received second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
Example III
As shown in fig. 3, an embodiment of the present invention provides a blockchain-based data verification method, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be a stand-alone server or may be a server cluster composed of a plurality of servers. The method specifically comprises the following steps:
in S302, target data is generated based on transaction data between the transaction parties.
The transaction data can be transaction data generated between two transaction parties, and the target data can be data which is generated based on preset tax rules and transaction data generated by the two transaction parties and is subjected to encryption processing.
In implementation, after the transaction is carried out by both transaction parties, corresponding transaction data can be generated, wherein the transaction data can be an electronic invoice generated by the transaction. For example, when the merchant 1 sells a lot of products B to the merchant 2 at time a, and the transaction price is C, the corresponding transaction data may be an electronic invoice generated based on the transaction information, where the corresponding generated electronic invoice may include the transaction price C, the information of the products B, the transaction time a, and the information of the merchant 1 and the merchant 2. Alternatively, the transaction data may be transaction data corresponding to transaction information generated in the transaction, such as transaction data may include transaction amount and transaction time, such as transaction price C and transaction time a, as described above.
After the transaction is generated, the target transaction party can generate tax-applicable data or tax-resisting data according to the transaction data, and then encrypt the generated tax-applicable data or tax-resisting data. For example, if the target transaction party is a party providing commodity service and the transaction data is x, the target transaction party may preset tax rules based on a tax authority to obtain tax-applicable data x1 corresponding to the transaction data x, and then perform encryption processing on the generated tax-applicable data, for example, may obtain a hash value H (x 1) corresponding to the tax-applicable data based on a hash function.
In S304, certification information is generated based on the target data, the first authentication information of the target transaction party, and the acquired certification key.
In implementation, first authentication information of a target transaction party may be obtained. For example, a key corresponding to the identity information of the target transaction party may be generated based on preset trusted hardware, and the key may be implemented in a key pair, where the key pair may be formed by a public key and a private key, and the public key in the key pair may be used as the first authentication information of the target transaction party. Alternatively, the first authentication information of the target transaction party may be generated based on a preset function and the identity information of the target transaction party. Or, a preset generation rule may be used to determine the first authentication information of the target transaction party based on the identity information of the target transaction party. In addition, the first authentication information of the target transaction party can be directly acquired from the target transaction party. The method for determining the first identity verification information of the target transaction party can be various and can be different according to different actual application scenes, and the embodiment of the invention is not particularly limited.
After the first identity verification information of the target transaction party is acquired, corresponding certification information can be generated based on the target data and the acquired certification key.
In S306, a second data block is generated based on the target data and the certification information.
In S308, the second data block is uploaded and stored to a predetermined blockchain node.
In addition, before the second data block is generated, if the target transaction party detects that the transaction data is abnormal, a first data block deletion request may be sent to the predetermined blockchain node by the target transaction party generating the tax-chargeable data to cause the predetermined blockchain to delete the first data block.
The embodiment of the invention provides a data verification method based on a blockchain, which is used for generating target data based on transaction data between transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties, the data is encrypted, the certification information is generated based on the target data, first identity verification information of the target transaction party and acquired certification keys, a second data block is generated based on the target data and the certification information, and the second data block is uploaded and stored to a preset blockchain node. In this way, the target data contained in the second data block is encrypted data, so that the problem of information leakage of both sides of the transaction can be avoided, in addition, the target transaction side uploads and stores the second data block to the preset blockchain, the preset blockchain link point can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, the data security is ensured, the verification of tax-resisting data or tax-applying data can be realized, and the data verification accuracy and verification efficiency are improved.
Example IV
As shown in fig. 4, an embodiment of the present invention provides a data verification method based on a blockchain, where an execution subject of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be a stand-alone server or may be a server cluster composed of a plurality of servers. The method specifically comprises the following steps:
under the condition that the revocation period of the first data block is over, different conversion rules can be determined according to different target transaction parties, and corresponding target data can be obtained, for example, if the target transaction party is a tax-applicable party, S402-S406 can be executed to obtain the target data (namely the encrypted tax-applicable data) based on the corresponding conversion rules; if the target transaction party is a tax-fighting party, steps S408 to S412 may be performed to obtain target data (i.e., encrypted tax-fighting data) based on the corresponding conversion rule.
In S402, a first conversion rule is acquired.
Wherein the first conversion rule may be used to generate tax-chargeable data based on the transaction data, and the first conversion rule may be a rule provided by a tax authority.
In S404, the transaction data is converted based on the first conversion rule, resulting in tax-chargeable data.
In S406, the tax-corresponding data is encrypted based on the preset encoding mode, so as to obtain the target data.
In S408, a second conversion rule is acquired.
Wherein the second conversion rule may be for generating tax withholding data based on the transaction data, the second conversion rule may be a rule provided by a tax authority.
In S410, the transaction data is converted based on the second conversion rule, and tax support data is obtained.
In S412, encryption processing is performed on the tax-fighting data based on the preset encoding mode, so as to obtain target data.
In S414, certification information is generated based on the target data, the first authentication information of the target transaction party, and the acquired certification key.
In S416, a second data block is generated based on the target data and the certification information.
In S418, the second data block is uploaded and stored to a predetermined blockchain.
The specific processing procedures of S412 to S418 can be referred to the relevant contents of S304 to S308 in the third embodiment, and will not be described again.
The embodiment of the invention provides a data verification method based on a blockchain, which is used for generating target data based on transaction data between transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties, the data is encrypted, the certification information is generated based on the target data, first identity verification information of the target transaction party and acquired certification keys, a second data block is generated based on the target data and the certification information, and the second data block is uploaded and stored to a preset blockchain node. In this way, the target data contained in the second data block is encrypted data, so that the problem of information leakage of both sides of the transaction can be avoided, in addition, the target transaction side uploads and stores the second data block to the preset blockchain, the preset blockchain link point can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, the data security is ensured, the verification of tax-resisting data or tax-applying data can be realized, and the data verification accuracy and verification efficiency are improved.
Example five
The embodiment will be described in detail with reference to a specific application scenario, where the corresponding application scenario is an application scenario for electronic invoice reimbursement based on a blockchain.
Tax payer a may generate an electronic invoice based on the transaction with tax payer B, which may be stored in a predetermined blockchain (e.g., a blockchain of a tax authority) in order to ensure privacy of transaction information. In the predetermined blockchain, the tax-applying party a and the tax-supporting party B may generate the identity verification information corresponding to their own identity information based on the preset trusted hardware, for example, based on the preset trusted hardware, a key pair (for example, (pkA, skA)) corresponding to the identity information of the tax-applying party a may be generated, the skA may be the first identity verification information of the tax-applying party a (i.e., a private key in the key pair may be the first identity verification information of the tax-applying party a), the pkA may be the second verification identity information of the tax-applying party a (i.e., a public key in the key pair may be the first identity verification information of the tax-applying party a), and, based on the preset trusted hardware, a key pair (for example, (pkB, skB)) corresponding to the identity information of the tax-supporting party B may be generated, wherein skB may be the first identity verification information of the tax-supporting party B, and pkB may be the second identity verification information of the tax-supporting party B.
In addition, the tax authority may generate the certification key pk1 and the verification key vk1 corresponding to the tax counter a, and generate the certification key pk2 and the verification key vk2 corresponding to the tax counter B according to the preset tax rule.
As shown in fig. 5, an embodiment of the present application provides a data verification method based on a blockchain, which specifically includes the following steps:
in S502, the target transaction party generates target data based on transaction data between the transaction parties.
The target data may be encrypted data generated based on preset tax rules and transaction data generated by both parties of the transaction.
In implementation, the tax payor a may generate a transaction with the tax payor B, for example, the tax payor B may purchase a batch of devices from the tax payor a and pay a certain payment amount x, and then the transaction data generated between the tax payor a and the tax payor B may include the payment amount x, the payment time, and other data.
If the target transaction party is the tax-payable party a, under the condition that the revocation period of the first data block is ended, the target transaction party can obtain tax-payable data x1 corresponding to the payment amount x according to the payment amount x (i.e., transaction data) and the first conversion rule, and perform encryption processing on the tax-payable data x1 based on a preset encoding mode (such as a preset hash function) to obtain a corresponding encrypted tax-payable input H (x 1) (i.e., target data). Similarly, if the target transaction party is the tax support party B, under the condition that the revocation period of the first data block is over, the target transaction party can obtain tax support data x2 corresponding to the payment amount x according to the payment amount x (i.e., transaction data) and the second conversion rule, and encrypt the tax support data based on a preset encoding mode to obtain a corresponding encrypted tax support input H (x 2) (i.e., target data).
Further, if the target transaction party is the tax-chargeable party a, in the case where the target transaction party detects that there is abnormality in the transaction data (i.e., data including the payment amount, the payment time, etc.), the first data block deletion request may be sent to the predetermined blockchain during the revocation period of the first data block, so that the predetermined blockchain deletes the first data block.
In S504, the target transaction party generates certification information based on the target data, the first authentication information of the target transaction party, and the acquired certification key.
In implementation, for example, as described in the above step S502, if the target transaction party is the tax-chargeable party a, the target transaction party may generate the proof information proof1 (H (x 1), skA, pk 1) based on the target data H (x 1), the first authentication information skA of the target transaction party, and the acquired proof key pk 1.
Similarly, if the target transaction party is the tax-resisting party B, the target transaction party may generate proof information proof1 (H (x 2), skB, pk 2) based on the target data H (x 2), the first authentication information skB of the target transaction party, and the acquired proof key pk 2.
In S506, the target transaction party generates a second data block based on the target data and the certification information.
In implementation, as described in step S504 above, if the target transaction party is tax-imparting party a, the generated second data block TX2 may include the target data H (x 1) and proof1, and if the target transaction party is tax-imparting party B, the generated corresponding second data block TX3 may include the target data H (x 2) and proof2.
In S508, the target transactor uploads and stores the second data block to the predetermined blockchain.
In S510, the predetermined blockchain node receives a second data block uploaded by the target transactor in the event that the invalidate period of the first data block ends.
In S512, the predetermined block link point stores the second data block to the predetermined block chain and acquires the first data block.
In implementations, the first data block TX1 may include encrypted transaction data (e.g., H (x)).
In addition, the first data block may further include second authentication information of the target transaction party, for example, the first data block TX1 may further include second authentication information (such as pkA) of the tax counter party a, or the first data block TX1 may further include second authentication information (such as pkB) of the tax counter party B, or the first data block TX1 may further include second authentication information (such as pkA and pkB) of the tax counter party a and the tax counter party B.
In S514, the predetermined block link point acquires the authentication key corresponding to the target transaction party.
In practice, for example, if the target transaction party is tax-party a, the corresponding verification key may be a verification key of a key pair generated by the tax authority based on tax-party a, such as vk1 in (pk 1, vk 1), and likewise, if the target transaction party is tax-party B, the corresponding verification key may be a verification key of a key pair generated by the tax authority based on tax-party B, such as vk2 in (pk 2, vk 2).
In S516, the predetermined block link point verifies whether the target data in the second data block is correct based on the certification information in the received second data block, the acquired first data block, and the verification key.
The embodiment of the invention provides a data verification method based on a blockchain, wherein a target transaction party generates target data based on transaction data between transaction parties, the target data is generated based on preset tax rules and the transaction data generated by the transaction parties, the target transaction party generates certification information based on the target data, first identification verification information of the target transaction party and acquired certification keys, a second data block is generated based on the target data and the certification information, the second data block is uploaded and stored into a preset blockchain, then a preset blockchain node can receive the second data block uploaded by the target transaction party, the second data block is stored into the preset blockchain, the first data block is acquired, the first data block comprises encrypted transaction data, and a preset blockchain point verifies whether the target data in the second data block is correct or not based on the received certification information in the second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block in the predetermined blockchain node are encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the predetermined blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, the data security is ensured, and meanwhile, the verification of tax-resisting data or tax-applying data can be realized, and the data verification accuracy and verification efficiency are improved.
Example six
The above data verification method based on the blockchain provided by the embodiment of the invention is based on the same thought, and the embodiment of the invention also provides a data verification device based on the blockchain, as shown in fig. 6.
The blockchain-based data verification device includes: a data block receiving module 601, a data block storing module 602 and a data verifying module 603, wherein:
a data block receiving module 601, configured to receive a second data block uploaded by a target transaction party, where the second data block includes target data and attestation information, the target transaction party is any one of two transaction parties, the target data is generated based on a preset tax rule and transaction data between the two transaction parties, and the data is encrypted, and the attestation information is generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party, and an acquired attestation key;
a data block storage module 602, configured to store the second data block into the predetermined blockchain, and acquire a first data block, where the first data block includes the transaction data after encryption processing;
a data verification module 603, configured to verify whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block.
In an embodiment of the present invention, the data verification module 603 includes:
a key obtaining unit, configured to obtain an authentication key corresponding to the target transaction party;
and the data verification unit is used for verifying whether the target data in the second data block is correct or not based on the received proving information in the second data block, the acquired first data block and the verification key.
In the embodiment of the present invention, the data block receiving module 601 is configured to:
and receiving the second data block uploaded by the target transaction party under the condition that the revocation period of the first data block is ended.
In the embodiment of the present invention, the target transaction party is a tax-payable party, and the device further includes:
and the first receiving module is used for receiving the first data block uploaded by the target transaction party and storing the first data block in a blockchain.
The embodiment of the invention provides a data verification device based on a blockchain, which is characterized in that a second data block uploaded by a target transaction party is received, the second data block comprises target data and proving information, the target transaction party is any party in the two parties of the transaction, the target data is generated based on preset tax rules and transaction data between the two parties of the transaction, the proving information is encrypted data generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and acquired proving keys, the second data block is stored in a preset blockchain, the first data block comprises encrypted transaction data, and whether the target data in the second data block is correct or not is verified based on the received proving information in the second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
Example seven
Based on the same thought, the embodiment of the invention also provides a data verification device based on the block chain, as shown in fig. 7.
The blockchain-based data verification device includes: a data generation module 701, an information generation module 702, a data block generation module 703, and a data block upload module 704, wherein:
a data generating module 701, configured to generate target data based on transaction data between the two transaction parties, where the target data is generated based on a preset tax rule and transaction data generated by the two transaction parties, and the data is encrypted;
an information generating module 702, configured to generate certification information based on the target data, the first authentication information of the target transaction party, and the acquired certification key;
a data block generating module 703, configured to generate a second data block based on the target data and the attestation information;
and the data block uploading module 704 is configured to upload and store the second data block to a predetermined blockchain node.
In the embodiment of the present invention, the target transaction party is a tax payor, and the data generating module 703 includes:
a first acquisition unit configured to acquire a first conversion rule for generating tax-chargeable data based on transaction data;
The first conversion unit is used for converting the transaction data based on the first conversion rule to obtain tax-applicable data;
the first determining unit is used for carrying out encryption processing on the tax-chargeable data based on a preset coding mode to obtain the target data.
In the embodiment of the present invention, the target transaction party is a tax support party, and the data generating module 703 includes:
the second acquisition unit is used for acquiring a second conversion rule, and the second conversion rule is used for generating tax resisting data based on transaction data;
the second conversion unit is used for converting the transaction data based on the second conversion rule to obtain tax resisting data;
and the second determining unit is used for carrying out encryption processing on the tax support data based on a preset coding mode to obtain the target data.
The embodiment of the invention provides a data verification device based on a blockchain, which generates target data based on transaction data between two transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the two transaction parties, is encrypted, generates certification information based on the target data, first identity verification information of the target transaction party and an acquired certification key, generates a second data block based on the target data and the certification information, and uploads the second data block to a preset blockchain node. In this way, the target data contained in the second data block is encrypted data, so that the problem of information leakage of both sides of the transaction can be avoided, in addition, the target transaction side uploads and stores the second data block to the preset blockchain, the preset blockchain link point can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, the data security is ensured, the verification of tax-resisting data or tax-applying data can be realized, and the data verification accuracy and verification efficiency are improved.
Example eight
Fig. 8 is a schematic hardware structure of an electronic device implementing various embodiments of the present invention, where the electronic device may be a terminal device or a server provided in the foregoing embodiments,
the electronic device 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810, and power supply 811. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
The processor 810 is configured to receive a second data block uploaded by a target transaction party, where the second data block includes target data and certification information, the target transaction party is any party of two parties of a transaction, the target data is generated based on a preset tax rule and transaction data between the two parties of the transaction, and the data is encrypted, and the certification information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party, and an acquired certification key;
The processor 810 is further configured to store the second data block to the predetermined blockchain, and acquire a first data block, where the first data block includes the transaction data after encryption processing;
the processor 810 is further configured to verify whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block.
In addition, the processor 810 is further configured to obtain an authentication key corresponding to the target transaction party;
in addition, the processor 810 is further configured to verify whether the target data in the second data block is correct based on the received attestation information in the second data block, the acquired first data block, and the verification key.
The processor 810 is further configured to receive the second data block uploaded by the target transaction party if the invalidate period of the first data block ends.
In addition, the processor 810 is further configured to receive the first data block uploaded by the target transaction party, and store the first data block in a blockchain.
The embodiment of the invention provides electronic equipment, which is characterized in that a second data block uploaded by a target transaction party is received, the second data block comprises target data and certification information, the target transaction party is any party of the two parties of the transaction, the target data is data generated based on preset tax rules and transaction data between the two parties of the transaction and is subjected to encryption processing, the certification information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and acquired certification keys, the second data block is stored in a preset blockchain, the first data block is acquired, the first data block comprises encrypted transaction data, and whether the target data in the second data block is correct or not is verified based on the received certification information in the second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 810; and, the uplink data is transmitted to the base station. In general, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 802, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 800. The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 801 in case of a telephone call mode.
The electronic device 800 also includes at least one sensor 805 such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 8061 and/or the backlight when the electronic device 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 805 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 806 is used to display information input by a user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the electronic device. In particular, the user input unit 807 includes a touch panel 8081 and other input devices 8072. The touch panel 8081, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 8081 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 8081 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends the touch point coordinates to the processor 810, and receives and executes commands sent from the processor 810. In addition, the touch panel 8081 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8081, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, which are not described in detail herein.
Further, the touch panel 8081 may be overlaid on the display panel 8061, and when the touch panel 8081 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 810 to determine a type of touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of touch event. Although in fig. 8, the touch panel 8081 and the display panel 8061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 8081 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 808 is an interface to which an external device is connected to the electronic apparatus 800. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 800 or may be used to transmit data between the electronic apparatus 800 and an external device.
The memory 809 can be used to store software programs as well as various data. The memory 809 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809, and invoking data stored in the memory 809, thereby performing overall monitoring of the electronic device. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and the power supply 811 may preferably be logically coupled to the processor 810 through a power management system that provides for managing charge, discharge, and power consumption.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program when executed by the processor 810 implements each process of the above embodiment of the blockchain-based data verification method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
Example nine
Fig. 9 is a schematic hardware structure of an electronic device implementing various embodiments of the present invention, where the electronic device may be a terminal device or a server provided in the foregoing embodiments,
the electronic device 900 includes, but is not limited to: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, processor 910, and power source 911. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
The processor 910 is configured to generate target data based on transaction data between the two transaction parties, where the target data is generated based on a preset tax rule and the transaction data generated by the two transaction parties, and the data is encrypted;
the processor 910 is further configured to generate certification information based on the target data, the first authentication information of the target transaction party, and the obtained certification key;
further, the processor 910 is further configured to generate a second data block based on the target data and the attestation information;
in addition, the processor 910 is further configured to upload and store the second data block to a predetermined blockchain node.
Further, the processor 910 is further configured to obtain a first conversion rule, where the first conversion rule is used to generate tax-applicable data based on the transaction data;
in addition, the processor 910 is further configured to convert the transaction data based on the first conversion rule to obtain tax payable data;
in addition, the processor 910 is further configured to encrypt the tax-chargeable data based on a preset encoding manner, so as to obtain the target data.
In addition, the processor 910 is further configured to obtain a second conversion rule, where the second conversion rule is used to generate tax-fighting data based on the transaction data;
In addition, the processor 910 is further configured to convert the transaction data based on the second conversion rule, to obtain tax-fighting data;
in addition, the processor 910 is further configured to encrypt the tax-fighting data based on a preset encoding manner, so as to obtain the target data.
The embodiment of the invention provides electronic equipment, which generates target data based on transaction data between two transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the two transaction parties, is encrypted, generates certification information based on the target data, first identity verification information of the target transaction party and an acquired certification key, generates a second data block based on the target data and the certification information, and uploads and stores the second data block to a preset blockchain node. In this way, the target data contained in the second data block is encrypted data, so that the problem of information leakage of both sides of the transaction can be avoided, in addition, the target transaction side uploads and stores the second data block to the preset blockchain, the preset blockchain link point can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, the data security is ensured, the verification of tax-resisting data or tax-applying data can be realized, and the data verification accuracy and verification efficiency are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the downlink data by the processor 910; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 may also communicate with networks and other devices via a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 902, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 900. The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive an audio or video signal. The input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, the graphics processor 9041 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphics processor 9041 may be stored in memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 901 in the case of a telephone call mode.
The electronic device 900 also includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 9061 and/or the backlight when the electronic device 900 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 905 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 906 is used to display information input by a user or information provided to the user. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 is operable to receive input numeric or character information, and to generate key signal inputs related to user settings and function controls of the electronic device. In particular, the user input unit 907 includes a touch panel 9071 and other input devices 9072. Touch panel 9071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (such as operations of the user on touch panel 9071 or thereabout using any suitable object or accessory such as a finger, stylus, or the like). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, and receives and executes commands sent by the processor 910. In addition, the touch panel 9071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 907 may also include other input devices 9072 in addition to the touch panel 9071. In particular, other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 910 to determine a type of touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 908 is an interface to which an external device is connected to the electronic apparatus 900. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 900 or may be used to transmit data between the electronic apparatus 900 and an external device.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 909, and calling data stored in the memory 909, thereby performing overall monitoring of the electronic device. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 910.
The electronic device 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and the power supply 911 may preferably be logically coupled to the processor 910 by a power management system, such as to perform charge, discharge, and power consumption management functions.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, where the computer program when executed by the processor 910 implements each process of the above-mentioned embodiment of the blockchain-based data verification method, and can achieve the same technical effects, so that repetition is avoided, and no redundant description is given here.
Examples ten
The embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements each process of the block chain based data verification method embodiment provided in the first embodiment to the third embodiment, and can achieve the same technical effect, and in order to avoid repetition, a detailed description is omitted herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the invention provides a computer readable storage medium, which is used for receiving a second data block uploaded by a target transaction party, wherein the second data block comprises target data and proving information, the target transaction party is any party in the two parties of the transaction, the target data is data generated based on a preset tax rule and transaction data between the two parties of the transaction and is subjected to encryption processing, the proving information is information generated by the target transaction party based on the transaction data, first identity verification information of the target transaction party and an acquired proving key, the second data block is stored into a preset blockchain, the first data block comprises encrypted transaction data, and whether the target data in the second data block is correct or not is verified based on the proving information in the received second data block and the acquired first data block. In this way, the data contained in the first data block and the second data block are all encrypted data, so that the problem of information leakage of both sides of a transaction can be avoided, moreover, the preset blockchain node can automatically verify the target data in the second data block based on the proving information in the second data block and the first data block, other plaintext information is not needed, and the verification of tax-resisting data or tax-applying data can be realized while the data security is ensured, so that the data verification accuracy and verification efficiency are improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (7)

1. A blockchain-based data verification method applied to a predetermined blockchain node, the method comprising:
receiving a second data block uploaded by a target transaction party, wherein the second data block comprises target data and proving information, the target transaction party is any party of transaction parties, the target data is generated based on preset tax rules and transaction data between the transaction parties and is encrypted data, if the target transaction party is a tax-capable party, the corresponding target data is generated based on the preset tax rules and the transaction data and is encrypted tax-capable data, otherwise, if the target transaction party is a tax-capable party, the corresponding target data is encrypted tax-capable data generated based on the preset tax rules and the transaction data, and the proving information is generated by the target transaction party based on the transaction data, the first identity verification information of the target transaction party and the acquired proving key;
Storing the second data block into the preset blockchain, and acquiring a first data block, wherein the first data block comprises the transaction data after encryption processing; the first data block also comprises second authentication information of the target transaction party; the second identity verification information is verification information corresponding to the first identity verification information of the target transaction party, a key corresponding to the identity information of the target transaction party is generated based on preset trusted hardware, the key is realized in a key pair mode, the key pair consists of a public key and a private key, the public key in the key pair is used as the first identity verification information of the target transaction party, and the private key in the key pair is used as the second identity verification information of the target transaction party;
verifying whether the target data in the second data block is correct based on the received certification information in the second data block and the acquired first data block; after verifying that the target data in the second data block are correct, the tax authority verifies whether tax-fighting operation or tax-charging operation of the target transaction party accords with a preset tax rule according to the target data in the second data block;
wherein the verifying whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block includes:
Acquiring an authentication key corresponding to the target transaction party;
verifying whether target data in the second data block is correct based on the received attestation information in the second data block, the acquired first data block, and the verification key.
2. The method of claim 1, wherein receiving the second data block uploaded by the target transaction party comprises:
and receiving the second data block uploaded by the target transaction party under the condition that the revocation period of the first data block is ended.
3. The method of claim 1, wherein the target transaction party is a tax-chargeable party, and wherein prior to receiving the second data block uploaded by the target transaction party, further comprising:
and receiving the first data block uploaded by the target transaction party, and storing the first data block in a blockchain.
4. A blockchain-based data verification method, characterized by being applied to a target transaction party, wherein the target transaction party is any one of two transaction parties, the method comprising:
generating target data based on transaction data between the transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties and is encrypted;
Generating certification information based on the target data, the first identity verification information of the target transaction party and the acquired certification key; generating a key corresponding to the identity information of the target transaction party based on preset trusted hardware, wherein the key is realized in a key pair mode, the key pair consists of a public key and a private key, the public key in the key pair is used as first identity verification information of the target transaction party, or generating the first identity verification information of the target transaction party based on a preset function and the identity information of the target transaction party, or determining the first identity verification information of the target transaction party based on the identity information of the target transaction party by a preset generation rule;
generating a second data block based on the target data and the attestation information;
uploading and storing the second data block to a predetermined blockchain node;
the target transaction party is a tax-chargeable party, and the generating target data based on the transaction data between the transaction parties comprises:
acquiring a first conversion rule, wherein the first conversion rule is used for generating tax-applicable data based on transaction data;
converting the transaction data based on the first conversion rule to obtain tax-giving data;
Encrypting the tax-bearing data based on a preset coding mode to obtain the target data;
the target transaction party is a tax-fighting party, and the generating target data based on the transaction data between the transaction parties comprises:
acquiring a second conversion rule, wherein the second conversion rule is used for generating tax-fighting data based on transaction data;
converting the transaction data based on the second conversion rule to obtain tax resisting data;
and encrypting the tax resisting data based on a preset coding mode to obtain the target data.
5. A blockchain-based data verification device, the device comprising:
the data block receiving module is used for receiving a second data block uploaded by a target transaction party, the second data block comprises target data and proving information, the target transaction party is any party of the transaction parties, the target data is generated based on preset tax rules and transaction data between the transaction parties and is encrypted, if the target transaction party is a tax-giving party, the corresponding target data is generated based on the preset tax rules and the transaction data and is encrypted, otherwise, if the target transaction party is a tax-giving party, the corresponding target data is encrypted tax-giving data generated based on the preset tax rules and the transaction data, and the proving information is generated by the target transaction party based on the transaction data, the first identity verification information of the target transaction party and the acquired proving key;
The data block storage module is used for storing the second data block into a preset blockchain and acquiring a first data block, wherein the first data block comprises the transaction data after encryption processing; the first data block also comprises second authentication information of the target transaction party; the second identity verification information is verification information corresponding to the first identity verification information of the target transaction party, a key corresponding to the identity information of the target transaction party is generated based on preset trusted hardware, the key is realized in a key pair mode, the key pair consists of a public key and a private key, the public key in the key pair is used as the first identity verification information of the target transaction party, and the private key in the key pair is used as the second identity verification information of the target transaction party;
a data verification module, configured to verify whether the target data in the second data block is correct based on the received attestation information in the second data block and the acquired first data block; after verifying that the target data in the second data block are correct, the tax authority verifies whether tax-fighting operation or tax-charging operation of the target transaction party accords with a preset tax rule according to the target data in the second data block;
Wherein, the data verification module includes:
a key obtaining unit, configured to obtain an authentication key corresponding to the target transaction party;
and the data verification unit is used for verifying whether the target data in the second data block is correct or not based on the received proving information in the second data block, the acquired first data block and the verification key.
6. A blockchain-based data verification device, wherein the device is a device used by a target transaction party, the target transaction party being any one of two transaction parties, the device comprising:
the data generation module is used for generating target data based on transaction data between the transaction parties, wherein the target data is generated based on preset tax rules and the transaction data generated by the transaction parties and is encrypted;
the information generation module is used for generating certification information based on the target data, the first identity verification information of the target transaction party and the acquired certification key; generating a key corresponding to the identity information of the target transaction party based on preset trusted hardware, wherein the key is realized in a key pair mode, the key pair consists of a public key and a private key, the public key in the key pair is used as first identity verification information of the target transaction party, or generating the first identity verification information of the target transaction party based on a preset function and the identity information of the target transaction party, or determining the first identity verification information of the target transaction party based on the identity information of the target transaction party by a preset generation rule;
A data block generation module for generating a second data block based on the target data and the certification information;
the data block uploading module is used for uploading and storing the second data block to a preset blockchain node;
wherein, the data generation module includes:
a first acquisition unit configured to acquire a first conversion rule for generating tax-chargeable data based on transaction data;
the first conversion unit is used for converting the transaction data based on the first conversion rule to obtain tax-applicable data;
the first determining unit is used for carrying out encryption processing on the tax-chargeable data based on a preset coding mode to obtain the target data;
the target transaction party is a tax support party, and the data generation module comprises:
the second acquisition unit is used for acquiring a second conversion rule, and the second conversion rule is used for generating tax resisting data based on transaction data;
the second conversion unit is used for converting the transaction data based on the second conversion rule to obtain tax resisting data;
and the second determining unit is used for carrying out encryption processing on the tax support data based on a preset coding mode to obtain the target data.
7. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the blockchain-based data verification method of any of claims 1 to 3 or the steps of the blockchain-based data verification method of claim 4.
CN201911168821.5A 2019-11-25 2019-11-25 Block chain-based data verification method and device and electronic equipment Active CN111027972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911168821.5A CN111027972B (en) 2019-11-25 2019-11-25 Block chain-based data verification method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911168821.5A CN111027972B (en) 2019-11-25 2019-11-25 Block chain-based data verification method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111027972A CN111027972A (en) 2020-04-17
CN111027972B true CN111027972B (en) 2023-09-01

Family

ID=70201980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911168821.5A Active CN111027972B (en) 2019-11-25 2019-11-25 Block chain-based data verification method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111027972B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415238A (en) * 2020-04-24 2020-07-14 深圳前海星际同辉科技有限公司 Tax management method and device based on block chain and computer storage medium
CN113127516B (en) * 2020-07-31 2023-12-12 支付宝(杭州)信息技术有限公司 Method, device and equipment for processing blockchain data
CN116112293B (en) * 2023-04-12 2023-06-23 中国信息通信研究院 Block chain-based data trusted transaction method and device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018109598A1 (en) * 2016-12-14 2018-06-21 Amdocs Development Limited System, method, and computer program for implementing a license ledger in a network function virtualization (nfv) based communication network
WO2018121319A1 (en) * 2016-12-26 2018-07-05 阿里巴巴集团控股有限公司 Block data check method and apparatus
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain
CN109360077A (en) * 2018-09-07 2019-02-19 腾讯科技(深圳)有限公司 Information processing method, device, gateway server and medium in invoice reimbursement
CN109756582A (en) * 2019-03-15 2019-05-14 腾讯科技(深圳)有限公司 Information recording method, device, node and storage medium in block chain network
CN109766705A (en) * 2018-12-10 2019-05-17 杭州隐知科技有限公司 A kind of data verification method based on circuit, device and electronic equipment
CN109858914A (en) * 2019-01-18 2019-06-07 深圳壹账通智能科技有限公司 Block chain data verification method, device, computer equipment and readable storage medium storing program for executing
CN110060111A (en) * 2018-12-12 2019-07-26 阿里巴巴集团控股有限公司 Based on the invoice access method and device of block chain, electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10700861B2 (en) * 2016-07-29 2020-06-30 Workday, Inc. System and method for generating a recovery key and managing credentials using a smart blockchain contract

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018109598A1 (en) * 2016-12-14 2018-06-21 Amdocs Development Limited System, method, and computer program for implementing a license ledger in a network function virtualization (nfv) based communication network
WO2018121319A1 (en) * 2016-12-26 2018-07-05 阿里巴巴集团控股有限公司 Block data check method and apparatus
CN108288222A (en) * 2018-03-05 2018-07-17 数字乾元科技有限公司 Property tax processing system and method based on block chain
CN109360077A (en) * 2018-09-07 2019-02-19 腾讯科技(深圳)有限公司 Information processing method, device, gateway server and medium in invoice reimbursement
CN109766705A (en) * 2018-12-10 2019-05-17 杭州隐知科技有限公司 A kind of data verification method based on circuit, device and electronic equipment
CN110060111A (en) * 2018-12-12 2019-07-26 阿里巴巴集团控股有限公司 Based on the invoice access method and device of block chain, electronic equipment
CN109858914A (en) * 2019-01-18 2019-06-07 深圳壹账通智能科技有限公司 Block chain data verification method, device, computer equipment and readable storage medium storing program for executing
CN109756582A (en) * 2019-03-15 2019-05-14 腾讯科技(深圳)有限公司 Information recording method, device, node and storage medium in block chain network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚英英 ; 常晓林 ; 甄平 ; .基于区块链的去中心化身份认证及密钥管理方案.网络空间安全.2019,(第06期),全文. *

Also Published As

Publication number Publication date
CN111027972A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN109472166B (en) Electronic signature method, device, equipment and medium
CN108614878B (en) Protocol data management method, device, storage medium and system
CN111027972B (en) Block chain-based data verification method and device and electronic equipment
KR102089191B1 (en) Methods, devices and systems for processing order information
CN105721413B (en) Method for processing business and device
CN110417543B (en) Data encryption method, device and storage medium
US9626696B2 (en) Techniques to verify location for location based services
EP3401864A1 (en) Method for selecting transaction application, and terminal
CN109257336B (en) Block chain-based password information processing method and terminal equipment
CN103634109A (en) Operation right authentication method and device
CN104376353A (en) Two-dimension code generating method, terminal and server and two-dimension code reading method, terminal and server
EP2916257B1 (en) Proximity communication method and apparatus
CN112035897A (en) Block chain evidence storage method and related device
CN106255102B (en) Terminal equipment identification method and related equipment
US20220327537A1 (en) Detailing secure service provider transactions
CN109766705B (en) Circuit-based data verification method and device and electronic equipment
CN110572268B (en) Anonymous authentication method and device
CN114553612A (en) Data encryption and decryption method and device, storage medium and electronic equipment
TWI804713B (en) User uniform identification processing method, processing device, processing equipment and computer-readable storage medium
CN110969434B (en) Payment method, server, terminal and system
CN109451011B (en) Information storage method based on block chain and mobile terminal
KR102657388B1 (en) Electronic device for selecting key used for encryption based on an information quantity of data to be encrypted and method for the same
CN109743289B (en) Data verification method and device based on neural network and electronic equipment
CN108122151B (en) Graphic code display method, graphic code processing method, device and system
CN111476562A (en) Virtual resource transfer method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210120

Address after: 100080 1120-64, 11 / F, 18 Zhongguancun Street, Haidian District, Beijing

Applicant after: Beijing Lianhua Future Technology Co.,Ltd.

Address before: 310012 station 7, room 118, No.7 Cuibai Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU YINZHI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant