CN114463000A - Block processing method, block chain network architecture, node and storage medium - Google Patents

Block processing method, block chain network architecture, node and storage medium Download PDF

Info

Publication number
CN114463000A
CN114463000A CN202011238112.2A CN202011238112A CN114463000A CN 114463000 A CN114463000 A CN 114463000A CN 202011238112 A CN202011238112 A CN 202011238112A CN 114463000 A CN114463000 A CN 114463000A
Authority
CN
China
Prior art keywords
node
policy
endorsement
accounting
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011238112.2A
Other languages
Chinese (zh)
Inventor
阎军智
杨波
粟栗
王珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011238112.2A priority Critical patent/CN114463000A/en
Publication of CN114463000A publication Critical patent/CN114463000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (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 invention provides a block processing method, a block chain network architecture, nodes and a storage medium, wherein the block processing method is applied to endorsement nodes of a block chain system, the block chain system further comprises policy management nodes and sequencing nodes, and the endorsement nodes, the policy management nodes and the sequencing nodes are connected with each other, and the method comprises the following steps: receiving first transaction data sent by client equipment; under the condition that the first transaction data accord with a first accounting strategy, endorsement is carried out on the first transaction data to generate a first endorsement result, wherein the first accounting strategy is acquired from a strategy management node in advance; and sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to the sequencing node for verification. The embodiment of the invention can generate the accounting strategy through the strategy management node, so that the endorsement node and the sequencing node can correspondingly process the transaction data based on the accounting strategy, and the safety of the block chain is improved.

Description

Block processing method, block chain network architecture, node and storage medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method for processing a block, a blockchain network architecture, a node, and a storage medium.
Background
At present, the block chain system is widely applied to the fields of finance, logistics traceability, digital copyright, electronic certificate storage and the like. However, in the related art, due to lack of a supervision means for the blockchain system, a lawless person can use the blockchain system to perform illegal transactions such as money laundering, black market transactions, or illegal information release, and thus the security of the blockchain system is not high.
Disclosure of Invention
Embodiments of the present invention provide a block processing method, a block chain network architecture, a node, and a storage medium, so as to solve the problem that an existing block chain is not high in security.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a block processing method, which is applied to an endorsement node of a blockchain system, where the blockchain system further includes a policy management node and a sorting node, and the endorsement node, the policy management node, and the sorting node are connected to each other, and the method includes:
receiving first transaction data sent by client equipment;
when the first transaction data accords with a first accounting strategy, endorsement is carried out on the first transaction data to generate a first endorsement result, wherein the first accounting strategy is acquired from the strategy management node in advance;
and sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to the sequencing node for verification.
Optionally, in the case that the first transaction data conforms to the first billing policy, before the endorsement is performed on the first transaction data, the method further includes:
obtaining the first billing policy from the policy management node.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting strategy sent by the strategy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Optionally, after obtaining the first billing policy from the policy management node, the method further includes:
storing the first accounting strategy to a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting policy with the signature sent by the policy management node;
verifying a signature of the first accounting policy based on a pre-acquired public key of the policy management node, wherein the signature of the first accounting policy is generated by encrypting the first accounting policy by the policy management node using a private key corresponding to the public key;
and storing the first accounting strategy or endorsing the first accounting strategy when the signature verification of the first accounting strategy is passed.
In a second aspect, an embodiment of the present invention provides another block processing method, which is applied to a sorting node of a blockchain system, where the blockchain system further includes a policy management node and an endorsement node, and the sorting node, the policy management node, and the endorsement node are connected to each other, and the method includes:
receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node performing endorsement on the first transaction data based on a first accounting strategy;
verifying the first endorsement result based on the first transaction data and the first pre-acquired billing policy, wherein the first billing policy is pre-acquired from the policy management node;
and generating a target block and sending the target block to the blockchain system if the verification is passed.
Optionally, before verifying the first endorsement result based on the first transaction data and the first pre-acquired billing policy, the method further includes:
and acquiring the first accounting strategy from the strategy management node, and storing the first accounting strategy to a preset storage position.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting strategy sent by the strategy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Optionally, the obtaining the first accounting policy from the policy management node and storing the first accounting policy in a preset storage location includes:
receiving the first billing strategy and a second endorsement result sent by the strategy management node, and verifying the first billing strategy and/or the second endorsement result, wherein the second endorsement result is obtained by the endorsement node performing endorsement on the first billing strategy;
and if the verification is passed, storing the first accounting strategy to a target position, wherein the target position is a block book of the blockchain system or an accounting strategy chain of the blockchain system.
Optionally, the preset storage location includes at least one of a local storage area of the endorsement node, a block ledger of the blockchain system, and a billing policy chain of the blockchain system.
In a third aspect, an embodiment of the present invention provides a block processing method, which is applied to a policy management node of a blockchain system, where the blockchain system further includes an endorsement node and a sorting node, and the policy management node, the endorsement node, and the sorting node are connected to each other, where the method includes:
receiving second transaction data in the blockchain system;
generating a second billing policy based on the second transaction data;
and sending the second accounting strategy to the blockchain system so as to enable the endorsement node and/or the sequencing node to acquire the second accounting strategy.
Optionally, the generating a second billing policy based on the second transaction data includes:
extracting policy information from the second transaction data;
generating a second billing policy based on the policy information.
Optionally, the sending the second accounting policy to the blockchain system includes:
encrypting the second accounting strategy by using a private key to generate a signature of the second accounting strategy;
and sending a second accounting strategy carrying the signature to the blockchain system.
Optionally, the sending the second accounting policy to the blockchain system includes:
receiving a third policy query request sent by a target node, and sending the second accounting policy to the target node based on the third policy query request, wherein the target node is the endorsement node or the ordering node.
Optionally, the sending the second accounting policy to the blockchain system includes:
sending the second billing strategy to the endorsement node, wherein the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing strategy chain of the blockchain system;
receiving a third endorsement result sent by the endorsement node, wherein the third endorsement result is obtained by the endorsement node performing the endorsement on the second accounting policy;
and sending the second accounting strategy and the third endorsement result to the sequencing node so that the sequencing node verifies the second accounting strategy and/or the third endorsement result.
In a fourth aspect, an embodiment of the present invention provides a blockchain network architecture, which includes an endorsement node, a sorting node, and a policy management node, where the endorsement node, the sorting node, and the policy management node are connected to each other,
the policy management node is used for receiving second transaction data in the blockchain system; generating a second billing policy based on the second transaction data; sending the second billing policy to the blockchain system;
the endorsement node is used for receiving first transaction data sent by client equipment; under the condition that the first transaction data accord with a first accounting strategy, endorsement is carried out on the first transaction data to obtain a first endorsement result, wherein the first accounting strategy is an accounting strategy obtained from the strategy management node; sending the first endorsement result to the client device;
the sequencing node is used for receiving first transaction data and a first endorsement result sent by the client device; verifying the first endorsement result based on the first transaction data and the first pre-acquired accounting policy; and generating a target block and sending the target block to the blockchain system if the verification is passed.
In a fifth aspect, an embodiment of the present invention provides an endorsement node, including:
the first receiving module is used for receiving first transaction data sent by the client equipment;
the endorsement module is used for endorsement of the first transaction data to generate a first endorsement result under the condition that the first transaction data accords with a first accounting strategy, wherein the first accounting strategy is acquired from the strategy management node in advance;
the first sending module is used for sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to a sequencing node for verification.
Optionally, the endorsement node further comprises:
a first obtaining module, configured to obtain the first billing policy from the policy management node.
Optionally, the first obtaining module is further configured to:
receiving the first accounting strategy sent by the strategy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Optionally, the endorsement node further comprises:
the first storage module is used for storing the first accounting strategy to a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
Optionally, the first obtaining module is further configured to:
receiving the first accounting policy with the signature sent by the policy management node;
verifying a signature of the first accounting policy based on a pre-acquired public key of the policy management node, wherein the signature of the first accounting policy is generated by encrypting the first accounting policy by the policy management node using a private key corresponding to the public key;
and storing the first accounting strategy or endorsing the first accounting strategy when the signature verification of the first accounting strategy is passed.
In a sixth aspect, an embodiment of the present invention provides a sort node, including:
the second receiving module is used for receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node in an endorsement mode on the basis of a first accounting strategy;
the verification module is used for verifying the first endorsement result based on the first transaction data and the first pre-acquired accounting policy, wherein the first accounting policy is pre-acquired from a policy management node;
and the first generation module is used for generating a target block and sending the target block to the block chain system under the condition that the verification is passed.
Optionally, the sorting node further includes:
and the second acquisition module is used for acquiring the first accounting policy from the policy management node and storing the first accounting policy to a preset storage position.
Optionally, the second obtaining module is further configured to:
receiving the first accounting strategy sent by the strategy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Optionally, the second obtaining module is further configured to:
receiving the first billing strategy and a second endorsement result sent by the strategy management node, and verifying the first billing strategy and/or the second endorsement result, wherein the second endorsement result is obtained by the endorsement node performing endorsement on the first billing strategy;
and if the verification is passed, storing the first accounting strategy to a target position, wherein the target position is a block book of the blockchain system or an accounting strategy chain of the blockchain system.
Optionally, the preset storage location includes at least one of a local storage area of the blockchain node, a blockbook of the blockchain system, and an accounting policy chain of the blockchain system.
In a seventh aspect, an embodiment of the present invention provides a policy management node, including:
the third receiving module is used for receiving second transaction data in the blockchain system;
a second generating module for generating a second billing policy based on the second transaction data;
and the second sending module is used for sending the second accounting strategy to the blockchain system so that the endorsement node and/or the sequencing node can obtain the second accounting strategy.
Optionally, the second generating module is further configured to:
extracting policy information from the second transaction data;
generating a second billing policy based on the policy information.
Optionally, the second sending module is further configured to:
encrypting the second accounting strategy by using a private key to generate a signature of the second accounting strategy;
and sending a second accounting strategy carrying the signature to the blockchain system.
Optionally, the second sending module is further configured to:
receiving a third policy query request sent by a target node, and sending the second accounting policy to the target node based on the third policy query request, wherein the target node is the endorsement node or the ordering node.
Optionally, the second sending module is further configured to:
sending the second billing strategy to the endorsement node, wherein the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing strategy chain of the blockchain system;
receiving a third endorsement result sent by the endorsement node, wherein the third endorsement result is obtained by the endorsement node performing the endorsement on the second accounting policy;
and sending the second accounting strategy and the third endorsement result to the sequencing node so that the sequencing node verifies the second accounting strategy and/or the third endorsement result.
In an eighth aspect, an embodiment of the present invention provides an endorsement node, comprising a transceiver and a processor,
the transceiver is used for receiving first transaction data sent by the client device;
the processor is used for endorsement of the first transaction data to generate a first endorsement result under the condition that the first transaction data conforms to a first accounting policy, wherein the first accounting policy is acquired from the policy management node in advance;
the transceiver is configured to send the first endorsement result to the client device, so that the client device sends the first transaction data and the first endorsement result to the ordering node for verification.
Optionally, the processor is further configured to obtain the first billing policy from the policy management node.
Optionally, the transceiver is further configured to receive the first accounting policy sent by the policy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Optionally, the processor is further configured to store the first accounting policy in a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
Optionally, the transceiver is further configured to receive the first accounting policy with a signature sent by the policy management node;
the processor is further configured to verify a signature of the first billing policy based on a pre-acquired public key of the policy management node, where the signature of the first billing policy is generated by encrypting the first billing policy by the policy management node using a private key corresponding to the public key;
the processor is further configured to store the first accounting policy or endorse the first accounting policy if the signature verification of the first accounting policy passes.
In a ninth aspect, an embodiment of the present invention provides a sequencing node, including a transceiver and a processor,
the transceiver is used for receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node performing endorsement on the first transaction data based on a first accounting strategy;
the processor is configured to verify the first endorsement result based on the first transaction data and the first pre-obtained billing policy, wherein the first billing policy is pre-obtained from the policy management node;
and the processor is used for generating a target block and sending the target block to the block chain system under the condition that the verification is passed.
Optionally, the processor is further configured to obtain the first accounting policy from the policy management node, and store the first accounting policy in a preset storage location.
Optionally, the transceiver is further configured to receive the first accounting policy sent by the policy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Optionally, the transceiver is further configured to receive the first billing policy and the second endorsement result sent by the policy management node, and verify the first billing policy and/or the second endorsement result, where the second endorsement result is obtained by the endorsement node performing an endorsement on the first billing policy;
the processor is further configured to store the first accounting policy to a target location if the verification passes, where the target location is a block book of the blockchain system or an accounting policy chain of the blockchain system.
Optionally, the preset storage location includes at least one of a local storage area of the blockchain node, a blockbook of the blockchain system, and a billing policy chain of the blockchain system.
In a tenth aspect, an embodiment of the present invention provides a policy management node, which is characterized by comprising a transceiver and a processor,
the transceiver is used for receiving second transaction data in the blockchain system;
the processor to generate a second billing policy based on the second transaction data;
the transceiver is configured to send the second accounting policy to the blockchain system, so that the endorsement node and/or the sorting node acquires the second accounting policy.
Optionally, the processor is further configured to extract policy information from the second transaction data;
the processor is further configured to generate a second billing policy based on the policy information.
Optionally, the processor is further configured to encrypt the second billing policy by using a private key, and generate a signature of the second billing policy;
the transceiver is further configured to send a second accounting policy carrying the signature to the blockchain system.
Optionally, the transceiver is further configured to receive a third policy query request sent by a target node, and send the second accounting policy to the target node based on the third policy query request, where the target node is the endorsement node or the ordering node.
Optionally, the transceiver is further configured to send the second billing policy to the endorsement node, where the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing policy chain of the blockchain system;
the transceiver is further configured to receive a third endorsement result sent by the endorsement node, where the third endorsement result is obtained by the endorsement node performing an endorsement on the second accounting policy;
the transceiver is further configured to send the second billing policy and the third endorsement result to the sorting node, so that the sorting node verifies the second billing policy and/or the third endorsement result.
In an eleventh aspect, an embodiment of the present invention provides an endorsement node, including: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the block processing method of the first aspect.
In a twelfth aspect, an embodiment of the present invention provides a sort node, including: a processor, a memory and a program stored on the memory and executable on the processor, the program implementing the steps of the block processing method of the second aspect when executed by the processor.
In a thirteenth aspect, an embodiment of the present invention provides a policy management node, including: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the block processing method according to the third aspect.
In a fourteenth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the block processing method according to the first aspect; or the computer program, when executed by a processor, implements the steps of the block processing method of the second aspect; or the computer program, when executed by a processor, implements the steps of the block processing method of the third aspect.
In the embodiment of the invention, first transaction data sent by client equipment is received; when the first transaction data accords with a first accounting strategy, endorsement is carried out on the first transaction data to generate a first endorsement result, wherein the first accounting strategy is acquired from the strategy management node in advance; and sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to the sequencing node for verification. The embodiment of the invention can generate the accounting strategy through the strategy management node, so that the endorsement node can endorse the transaction data based on the accounting strategy, the sequencing node can verify the endorsement result based on the accounting strategy and intervene the transaction data which do not conform to the accounting strategy, and the safety of the block chain system is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a block processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a blockchain network architecture according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a block processing method according to an embodiment of the present invention;
FIG. 4 is a third flowchart of a block processing method according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of a billing policy storage flow provided by an embodiment of the invention;
FIG. 6 is a block ledger chart diagram according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a chain of billing policies provided by an embodiment of the invention;
FIG. 8 is a block diagram of a transaction chain according to an embodiment of the present invention;
FIG. 9 is one of the block diagrams of an endorsement node provided by embodiments of the present invention;
FIG. 10 is one of the block diagrams of a sequencing node provided by embodiments of the present invention;
FIG. 11 is one of the block diagrams of a policy management node provided by embodiments of the present invention;
fig. 12 is a second structural diagram of an endorsement node according to an embodiment of the present invention;
FIG. 13 is a second block diagram of a sorting node according to an embodiment of the present invention;
fig. 14 is a second structural diagram of a policy management node according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a block processing method provided in an embodiment of the present invention, and is applied to an endorsement node of a blockchain system, where the blockchain system further includes a policy management node and a sorting node, and the endorsement node, the policy management node, and the sorting node are connected to each other, as shown in fig. 1, the method includes the following steps:
step 101, receiving first transaction data sent by a client device.
In the embodiment of the present invention, the endorsement node, the policy management node, and the sorting node are all nodes in a blockchain system, the endorsement node, the policy management node, and the sorting node are connected to each other to form a blockchain network architecture in a blockchain, and a structural schematic diagram of the blockchain network architecture is shown in fig. 2. As shown in fig. 2, in the blockchain network architecture, endorsement nodes are connected to each other in a point-to-point (Peer-to-Peer) manner, and are responsible for receiving transaction data sent by a client device, and after passing consensus, recording the transaction data into a blockchain system. And the policy management node in the blockchain network architecture can receive transaction data in the blockchain system, analyze the transaction data, extract a transaction or an account needing to make an accounting policy, and generate the accounting policy based on the transaction or the account. Each endorsement node is connected with the strategy management node, so that the endorsement nodes can acquire the accounting strategy generated by the strategy management node and endorse the received transaction data according to the accounting strategy, and the transaction data conforming to the accounting strategy can be recorded and sent to the block chain system, thereby realizing the management of the transaction data of the block chain through the strategy management node.
The first transaction data is transaction data currently received by the endorsement node, and may be one transaction data or multiple transaction data, which is not limited in the present invention. The first transaction data may include at least one of account, transaction, keyword, etc. information.
And 102, under the condition that the first transaction data accord with a first accounting strategy, performing endorsement on the first transaction data to generate a first endorsement result, wherein the first accounting strategy is acquired from the strategy management node in advance.
After the endorsement node receives the first transaction data submitted by the client device, intervention is carried out on the transaction data which do not accord with the first accounting strategy based on the first accounting strategy which is obtained from the strategy management node in advance, namely, the intervention is not carried out, and the endorsement is carried out on the transaction data which accord with the first accounting strategy to generate a first endorsement result, so that the safety of the block chain system is improved.
Step 103, sending the first endorsement result to the client device, so that the client device sends the first transaction data and the first endorsement result to the sequencing node for verification.
The endorsement node returns the first endorsement result to the client device, the client device sends the first transaction data and the first endorsement result to the sequencing node, the sequencing node verifies the first endorsement result according to the first accounting strategy, under the condition that the verification is passed, the first transaction data is recorded to a new block, namely, a target block is generated, and the target block is sent to the block chain system, otherwise, the transaction is not accepted, and the first transaction data cannot be recorded in the block chain.
In the embodiment of the invention, the endorsement node can acquire the accounting strategy from the strategy management node, so that the endorsement node can endorse the transaction data based on the accounting strategy, the sequencing node can verify the endorsement result based on the accounting strategy and intervene the transaction data which do not conform to the accounting strategy, and the transaction data which do not conform to the accounting strategy are not recorded into the block chain, thereby improving the safety of the block chain system.
Optionally, in the case that the first transaction data conforms to the first billing policy, before the endorsement is performed on the first transaction data, the method further includes:
obtaining the first billing policy from the policy management node.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting strategy sent by the strategy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Specifically, after the policy management node generates the first accounting policy, the policy management node may actively send the first accounting policy to the endorsement node, so that the endorsement node may directly receive the first accounting policy sent by the policy management node; alternatively, the policy management node provides a policy query function, the endorsement node may send a policy query request to the policy management node, and the policy management node returns the first accounting policy to the endorsement node based on the received policy query request. After the endorsement node acquires the first accounting policy, the first accounting policy can be stored in a preset storage position, so that each endorsement node in the block chain network architecture can conveniently access the first accounting policy at any time.
Optionally, after obtaining the first billing policy from the policy management node, the method further includes:
storing the first accounting strategy to a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
After the endorsement node acquires the first accounting policy from the policy management node, the endorsement node may store the first accounting policy in the local storage area; or after receiving the first billing strategy issued by the strategy management node, the endorsement node performs endorsement on the received first billing strategy to generate a second endorsement result, and sends the second endorsement result to the strategy management node. And the policy management node sends the second endorsement result to the sequencing node, the sequencing node verifies the first accounting policy and/or the second endorsement result, and after the verification is passed, the first accounting policy is recorded into a block account book or an accounting policy channel in the block chain.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting policy with the signature sent by the policy management node;
verifying a signature of the first accounting policy based on a pre-acquired public key of the policy management node, wherein the signature of the first accounting policy is generated by encrypting the first accounting policy by the policy management node using a private key corresponding to the public key;
and storing the first accounting strategy or endorsing the first accounting strategy when the signature verification of the first accounting strategy is passed.
Specifically, the policy management node includes a public key and a private key corresponding to the public key, and the policy management node may publish its own public key so that the endorsement node may obtain and store the public key. After the policy management node generates the first bookkeeping policy, the first bookkeeping policy can be encrypted through a private key of the policy management node, so that a corresponding signature is generated, the endorsement node can verify the signature according to a public key after acquiring the signature of the first bookkeeping policy, if the signature of the first bookkeeping policy is verified, the first bookkeeping policy is legal, and therefore the first bookkeeping policy can be locally stored or endorsed, and an endorsement result is sent to the policy management node; the first billing policy may be discarded if the signature verification of the first billing policy fails. Therefore, the first accounting strategy can be prevented from being maliciously tampered, and the safety of transaction data in the block chain is further ensured.
Referring to fig. 3, fig. 3 is a second flowchart of a block processing method according to an embodiment of the invention. The block processing method is applied to a sorting node of a blockchain system, the blockchain system further comprises a policy management node and an endorsement node, and the sorting node, the policy management node and the endorsement node are connected with each other, and the method can comprise the following steps:
step 301, receiving first transaction data and a first endorsement result sent by a client device, where the first endorsement result is obtained by the endorsement node performing an endorsement on the first transaction data based on a first accounting policy.
Step 302, verifying the first endorsement result based on the first transaction data and the first pre-obtained billing policy, wherein the first billing policy is pre-obtained from the policy management node.
And 303, generating a target block and sending the target block to the block chain system under the condition that the verification is passed.
The first endorsement result is obtained by the endorsement node performing endorsement on the first transaction data based on the first accounting policy, specifically, the client device sends the first transaction data and the first endorsement result to the sequencing node, the sequencing node verifies the first endorsement result according to the first accounting policy, and in case of passing the verification, a new block, namely a target block, is generated and issued. The sequencing node can verify the first endorsement result based on the first accounting strategy, intervene in the transaction data which do not accord with the accounting strategy, ensure that the first transaction data all accord with the first accounting strategy, and improve the safety of the block chain system.
Optionally, before verifying the first endorsement result based on the first transaction data and the first pre-acquired billing policy, the method further includes:
and acquiring the first accounting strategy from the strategy management node, and storing the first accounting strategy to a preset storage position.
Optionally, the obtaining the first billing policy from the policy management node includes:
receiving the first accounting strategy sent by the strategy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Specifically, after the policy management node generates the first accounting policy, the policy management node may actively send the first accounting policy to the sorting node, so that the sorting node may directly receive the first accounting policy sent by the policy management node; alternatively, the policy management node provides the policy query function, the ranking node may send a second policy query request to the policy management node, and the policy management node returns the first accounting policy to the ranking node based on the received second policy query request. After the sequencing node acquires the first accounting policy, the first accounting policy can be stored in a preset storage position, so that each sequencing node in the block chain network architecture can conveniently access the first accounting policy at any time.
Optionally, the obtaining the first accounting policy from the policy management node and storing the first accounting policy in a preset storage location includes:
receiving the first billing strategy and a second endorsement result sent by the strategy management node, and verifying the first billing strategy and/or the second endorsement result, wherein the second endorsement result is obtained by the endorsement node performing endorsement on the first billing strategy;
and if the verification is passed, storing the first accounting strategy to a target position, wherein the target position is a block book of the blockchain system or an accounting strategy chain of the blockchain system.
The endorsement node endorses the first accounting strategy, generates a second endorsement result, sends the second endorsement result to the strategy management node, the strategy management node sends the second endorsement result to the sequencing node, the sequencing node verifies the first accounting strategy and/or the second endorsement result, and stores the first accounting strategy to a block account book of the block chain system or an accounting strategy chain of the block chain system under the condition that the verification is passed, so that the accuracy and the safety of the first accounting strategy can be ensured.
Optionally, the preset storage location includes at least one of a local storage area of a blockchain node, a blockchain ledger of the blockchain system, and an accounting policy chain of the blockchain system.
The local storage area of the block chain node includes, but is not limited to, a Read-Only Memory (Read-Only Memory), a Random Access Memory (Random Access Memory), a magnetic disk or an optical disk of an endorsement node or a sorting node. When the preset storage location is a local storage area of the block chain node, a schematic diagram of a storage flow of the first accounting policy is shown in fig. 5, the policy management node generates the first accounting policy, encrypts the first accounting policy by using a private key of the policy management node, generates a signature corresponding to the first accounting policy, sends the first accounting policy and the signature to the endorsement node and the sorting node together, verifies the signature by the endorsement node and the sorting node respectively, and stores the first accounting policy in the local storage area after the signature verification is passed.
The block account of the blockchain system represents a block in the blockchain system for storing transaction data. After each endorsement node receives the first accounting policy and the signature sent by the policy management node, the signature is verified, and after the signature verification is passed, the first accounting policy is stored as transaction data in a block ledger, and a structural schematic diagram of the block ledger is shown in fig. 6. In fig. 6, the block account book includes a block header and a block body, where the block header is used to store block header information, and may include information such as a hash value of a previous block, a hash value of the block body, and a time stamp, and the block body stores a plurality of rows of data of the block, which may be transaction data or some other information. In one embodiment, the block body comprises a plurality of transaction data and a plurality of accounting strategies, and the endorsement node can acquire the corresponding accounting strategies from the block account book at any time.
The accounting policy chain of the block chain represents the blocks in the block chain for storing the accounting policies separately. After each endorsement node receives the first accounting policy and the signature sent by the policy management node, the signature is verified, and after the signature verification is passed, the first accounting policy is stored as transaction data in an accounting policy chain, and a structural schematic diagram of the accounting policy chain is shown in fig. 7. In fig. 7, the block of the accounting policy chain includes several accounting policies, and the endorsement node can obtain the latest accounting policy in the accounting policy chain at any time. In addition, the blockchain also includes a transaction data chain corresponding to the accounting policy chain, and transaction data are stored in the transaction data chain, as shown in fig. 8, a blockbody of the transaction chain includes a plurality of transactions. Thus there are two separate data chains in the blockchain system, one for storing accounting policies and one for storing transaction data. The endorsement node can endorse the transaction data according to the accounting strategy in the accounting strategy chain, and generate a new block of the endorsed transaction data and store the new block in the transaction data chain.
It should be noted that any one of the local storage area of the blockchain node, the block account book of the blockchain system, and the accounting policy chain of the blockchain system may be used as the preset storage location, and any two or three of the local storage area of the blockchain node, the block account book of the blockchain system, and the accounting policy chain of the blockchain system may also be used as the preset storage location, which is not limited in the present invention.
Referring to fig. 4, fig. 4 is a third flowchart of a block processing method according to an embodiment of the present invention. The block processing method is applied to a policy management node of a block chain system, the block chain system further comprises an endorsement node and a sequencing node, and the policy management node, the endorsement node and the sequencing node are connected with one another. The method may comprise the steps of:
step 401, receiving second transaction data in the blockchain system.
The second transaction data may be one transaction data or multiple transaction data, and the second transaction data may be the same as or different from the first transaction data, which is not limited in the present invention. The second transaction data may include at least one of account, transaction, keyword, etc. information.
Step 402, generating a second billing policy based on the second transaction data.
The second billing policy may be the same as or different from the first billing policy, and the present invention is not limited in particular.
Specifically, after receiving the second transaction data, the policy management node may analyze the second transaction data, extract policy information that an accounting policy needs to be formulated from the second transaction data, and finally generate a third accounting policy based on the policy information. The policy information includes a transaction object and a management operation, the transaction object may be information such as an account, a transaction, a keyword, and the like, and the management operation may be information such as freeze, thaw, prohibition, and the like, so that the generated accounting policy may include contents such as an account white list, an account black list, a keyword, and the like, and may also include information such as freeze, thaw, and the like of a transaction or an account, for example, "account a: freeze "," transaction B: unfreezing "," keyword XXX: inhibit ", and the like.
And step 403, sending the second accounting policy to the blockchain system, so that the endorsement node and/or the sorting node acquires the second accounting policy.
After the policy management node generates the second accounting policy, the second accounting policy may be sent to the blockchain system, so that the endorsement node and/or the sorting node may obtain the second accounting policy, the endorsement node may perform endorsement on the transaction data that conforms to the second accounting policy according to the second accounting policy, and the sorting node may verify the endorsement result of the endorsement node according to the second accounting policy.
In this embodiment, the policy management node may generate an accounting policy according to the transaction data in the blockchain system, so that the endorsement node may intervene in the received transaction data according to the accounting policy, and discard the transaction data that does not meet the accounting policy, so that the transaction data that does not meet the accounting policy is not recorded in the blockchain system, thereby ensuring the security of the blockchain.
Optionally, the generating a second billing policy based on the second transaction data includes:
extracting policy information from the second transaction data;
generating a second billing policy based on the policy information.
Specifically, after receiving the second transaction data, the policy management node may analyze the second transaction data, extract policy information that an accounting policy needs to be formulated from the second transaction data, and finally generate the second accounting policy based on the policy information. The policy information includes a transaction object and a management operation, the transaction object may be information such as an account, a transaction, a keyword, and the like, and the management operation may be information such as freeze, thaw, prohibition, and the like, so that the generated accounting policy may include contents such as an account white list, an account black list, a keyword, and the like, and may also include information such as freeze, thaw, and the like of a transaction or an account, for example, "account a: freeze "," transaction B: unfreezing "," keyword XXX: inhibit ", and the like.
Optionally, the sending the second accounting policy to the blockchain system includes:
encrypting the second accounting strategy by using a private key to generate a signature of the second accounting strategy;
and sending a second accounting strategy carrying the signature to the blockchain system.
Specifically, the policy management node includes a public key and a private key corresponding to the public key, and the policy management node may publish its own public key so that the endorsement node and the sorting node may obtain and store the public key. After the policy management node generates the second accounting policy, the second accounting policy can be encrypted through a private key of the policy management node, so that a corresponding signature is generated, after the endorsement node and the sequencing node acquire the signature of the second accounting policy, the signature can be verified according to the public key, if the signature of the second accounting policy is verified, the second accounting policy is legal, and the second accounting policy is stored in a preset storage position; otherwise, the second billing policy is discarded. Therefore, the second accounting strategy can be prevented from being maliciously tampered, and the safety of transaction data in the blockchain system is further ensured.
Optionally, the sending the second accounting policy to the blockchain system includes:
and receiving a third strategy inquiry request sent by a target node, and sending the second accounting strategy to the target node based on the third strategy inquiry request, wherein the target node is an endorsement node or a sequencing node.
Specifically, after the policy management node generates the second accounting policy, the policy management node may actively send the second accounting policy to the endorsement node and the sorting node, so that the endorsement node and the sorting node may directly receive the second accounting policy sent by the policy management node; or, the policy management node provides a policy query function, the endorsement node and the sorting node may both send a policy query request to the policy management node, and the policy management node may return the second accounting policy to the corresponding node based on the received policy query request. After the endorsement node and the sequencing node acquire the second accounting policy, the second accounting policy can be stored in a preset storage position, so that each endorsement node and each sequencing node in the block chain network architecture can conveniently access the second accounting policy at any time.
Optionally, the sending the second accounting policy to the blockchain system includes:
sending the second billing strategy to the endorsement node, wherein the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing strategy chain of the blockchain system;
receiving a third endorsement result sent by the endorsement node, wherein the third endorsement result is obtained by the endorsement node performing the endorsement on the second accounting policy;
and sending the second accounting strategy and the third endorsement result to the sequencing node so that the sequencing node verifies the second accounting strategy and/or the third endorsement result.
The policy management node may submit the second bookkeeping policy as a transaction to an endorsement node in the block chain or an endorsement node in the bookkeeping policy chain, the endorsement node receives the second bookkeeping policy issued by the policy management node, endorses the received second bookkeeping policy to generate a third endorsement result, the endorsement node returns the third endorsement result to the policy management node, the policy management node sends the third endorsement result to the sequencing node, the sequencing node verifies the second bookkeeping policy and/or the third endorsement result, and after the verification is passed, the second bookkeeping policy is recorded to a block ledger in the block chain or is recorded to the bookkeeping policy chain.
For convenience of understanding, some contents related to the embodiments of the present invention are also described below in addition.
In the block processing method, the client equipment firstly sends the first transaction information to the endorsement node for endorsement, then sends the first transaction information and the first endorsement result to the sequencing node for sequencing, the sequencing node verifies the first transaction information and the first endorsement result again, and the transaction in the first transaction information is recorded in the block chain system after the verification is passed.
The block chain system is additionally provided with the strategy management node, the strategy management node can receive second transaction data in the block chain system and can send a second accounting strategy to the block chain system, and the second accounting strategy can comprise contents such as an account white list, an account black list and key words and can also comprise information such as transaction/account freezing/unfreezing.
The policy management node, the endorsement node and the sequencing node are connected with each other, the endorsement node and the sequencing node can receive the accounting policy from the policy management node, and the endorsement node and the sequencing node perform endorsement or accounting according to the accounting policy.
The issuing process of the accounting strategy related by the invention is as follows:
(1) the strategy management node is used as a node in the blockchain system, has a private and public key pair of the strategy management node, and publishes a public key of the strategy management node.
(2) And the strategy management node receives second transaction data in the blockchain system, analyzes the second transaction data, and extracts the transaction or account needing to make a second accounting strategy.
(3) The strategy management node formulates a second accounting strategy for the transaction or the account, issues the second accounting strategy in the block chain system, signs the second accounting strategy by using a node private key, and also provides a strategy query function.
The invention relates to the following three storage modes of accounting strategies:
in the first mode, the bookkeeping strategy is stored in a node of the block chain system, specifically, public key information of the strategy management node is stored by the endorsement node and the sequencing node, the endorsement node and the sequencing node receive the bookkeeping strategy issued by the strategy management node, or actively inquire the bookkeeping strategy from the strategy management node, the endorsement node and the sequencing node verify the signature of the received bookkeeping strategy, and the bookkeeping strategy is stored locally after the verification is passed. Referring to fig. 5, fig. 5 is a schematic diagram of a storage flow of an accounting policy provided by the embodiment of the present invention.
And in the second mode, the accounting strategy is stored in a block account book of the block chain system as a transaction, specifically, public key information of the strategy management node is stored by the endorsement node and the sequencing node, the endorsement node and the sequencing node receive the accounting strategy issued by the strategy management node, verify the signature of the received accounting strategy, and store the accounting strategy in a newly generated block account book as a transaction after the verification is passed. Referring to fig. 6, fig. 6 is a schematic structural diagram of a block ledger book according to an embodiment of the present invention.
And in the third mode, the accounting strategy is stored as an independent account book, specifically, the endorsement node stores the public key information of the strategy management node, receives the accounting strategy issued by the strategy management node, verifies the signature of the received accounting strategy, and records the accounting strategy into an accounting strategy chain after the verification is passed. In a specific implementation, the billing policy can be used as a single channel, and all endorsement nodes perform transaction endorsements according to the billing policy in the channel. Referring to fig. 7, fig. 7 is a schematic structural diagram of a billing policy chain according to an embodiment of the present invention.
For the application method of the accounting strategy, the invention relates to the following three modes:
in the first mode (for the accounting strategy stored in the node of the blockchain system), the endorsement node and the sequencing node receive the transaction data from the blockchain system, and select the corresponding transaction to account according to the locally stored accounting strategy.
In the second mode (for the accounting policy, the accounting policy is stored in a block book of the blockchain system as a transaction), the endorsement node and the sequencing node receive transaction data from the blockchain system, receive an accounting policy issued by the policy management node, and select a corresponding transaction for accounting according to the accounting policy stored in the history block and newly received.
And in the third mode (aiming at the accounting strategy to be stored as a single account book), the endorsement node receives the transaction data from the blockchain system, and selects the corresponding transaction to account according to the accounting strategy in the accounting strategy chain.
The invention relates to the following three accounting schemes:
and a first accounting scheme (for accounting strategies stored in the nodes of the blockchain system) is applied to the blockchain, wherein the accounting strategies are only stored in the local storage area of the endorsement node, and the endorsement node and the sequencing node acquire and store the accounting strategies and perform endorsement or accounting according to the accounting strategies. The specific flow of the accounting scheme is as follows:
(1) the endorsement node and the ordering node store public keys of the policy management node.
(2) And the policy management node signs the accounting policy and issues the accounting policy.
(3) The endorsement node and the sequencing node receive the accounting strategy issued by the strategy management node or actively inquire the accounting strategy from the strategy management node, and the endorsement node and the sequencing node verify the signature of the received accounting strategy and record the signature to a local storage area after the verification is passed.
(4) The endorsement node receives first transaction data submitted by the client device.
(5) And the endorsement node performs endorsement on the transaction in the first transaction data according to the accounting strategy by using the accounting strategy of the local storage area, and returns the first endorsement result to the client device.
(6) The client device sends the first transaction data and the first endorsement result to the ordering node.
(7) And the sequencing node verifies the first endorsement result according to the accounting strategy of the local storage area, and generates and issues a new block after the verification is passed.
And a second accounting scheme (aiming at the accounting strategy stored in a block ledger of the block chain system as a transaction) is applied to the block chain, wherein the accounting strategy is recorded in the block ledger as a transaction record, and the endorsement node and the sequencing node perform endorsement or accounting according to the accounting strategy in the block ledger. The specific flow of the accounting scheme is as follows:
(1) the endorsement node and the ordering node store public keys of the policy management node.
(2) The policy management node signs the billing policy and submits the billing policy as a transaction to an endorsement node of the blockchain system.
(3) And the endorsement node receives the bookkeeping strategy issued by the strategy management node, performs signature verification and endorsement on the received bookkeeping strategy, and returns an endorsement result to the strategy management node.
(4) And the policy management node sends the endorsement result to the sequencing node.
(5) And the sequencing node verifies the accounting strategy and/or endorsement result, and records the accounting strategy to a block book of the block chain system after the verification is passed.
(6) The endorsement node receives first transaction data submitted by the client device;
(7) and the endorsement node endorses the transaction in the first transaction data according to the accounting strategy in the block account book and returns the first endorsement result to the client device.
(8) The client device sends the first transaction data and the first endorsement result to the ordering node.
(9) And the sequencing node verifies the first endorsement result by using the accounting strategy in the block account book, and generates and issues a new block after the verification is passed.
And a third accounting scheme (stored as an individual account book for the accounting strategy) is applied to the block chain, wherein the accounting strategy is stored as the individual account book in the accounting strategy chain of the block chain system, and the endorsement node and the sequencing node perform endorsement or accounting according to the accounting strategy in the accounting strategy chain. The specific flow of the accounting scheme is as follows:
(1) the endorsement node and the sorting node in the accounting policy chain store the public key of the policy management node.
(2) And the policy management node signs the accounting policy and submits the accounting policy as a transaction to an endorsement node of an accounting policy chain.
(3) And the endorsement node in the bookkeeping strategy chain receives the bookkeeping strategy issued by the strategy management node, performs signature verification and endorsement on the received bookkeeping strategy, and returns an endorsement result to the strategy management node.
(4) And the policy management node sends the endorsement result to the sequencing node.
(5) And the sequencing node verifies the accounting strategy and/or endorsement result, and records the accounting strategy into an accounting strategy chain after the verification is passed.
(6) The endorsement node receives first transaction data submitted by the client device;
(7) and the endorsement node performs endorsement on the transaction according to the accounting strategy in the accounting strategy chain and returns the first endorsement result to the client equipment.
(8) The client device sends the first transaction data and the first endorsement result to the ordering node.
(9) And the sequencing node verifies the first endorsement result according to the accounting strategy in the accounting strategy chain, and generates and issues a new block after the verification is passed.
The following describes a specific implementation of the embodiment of the present invention with reference to several application examples:
application case one (account freeze):
assume that account a needs to be frozen. The policy management node generates a billing policy that states that account a is blocked (e.g., account a: blocked), which can be submitted to the blockchain system as a transaction.
The endorsement node and the sequencing node receive the accounting strategy sent by the strategy management node, and can also actively inquire the accounting strategy from the strategy management node.
And the endorsement node receives the transaction data submitted by the client equipment and endorses the transaction according to the accounting strategy. If a transaction involving account a occurs in the transaction data submitted by the client device, the endorsement node will go unprocessed.
After receiving the transaction endorsement result submitted by the client, the sequencing node verifies whether the transaction endorsement result conforms to the accounting policy of the policy management node, and if so, the transaction does not contain the transaction related to the account A, and the transaction is recorded into a new block. Otherwise, the transaction is not accepted.
By the above method, all transactions involving account a will not be recorded into the blockchain system.
If the account needs to be unfrozen, the policy management node needs to generate an account unfreezing policy. And if the endorsement node retrieves the corresponding freezing or unfreezing strategy of the account, executing the latest strategy.
Application case two (transaction prevention):
if the policy management node discovers through big data analysis or other means that a transaction B that has been sent to the blockchain system but not yet recorded in a new block needs to be blocked, the policy management node generates a billing policy that indicates that transaction B is blocked (e.g., transaction B: prohibited), which can be submitted as a transaction to the blockchain system.
The endorsement node and the sequencing node receive the accounting strategy sent by the strategy management node, and can also actively inquire the accounting strategy from the strategy management node.
And the endorsement node receives the transaction data submitted by the client equipment and endorses the transaction according to the accounting strategy. If transaction B appears in the transaction data submitted by the client device, the endorsement node will not process it.
After receiving the transaction endorsement result submitted by the client device, the sequencing node verifies whether the transaction endorsement result conforms to the accounting policy of the policy management node, and if so, the transaction can be recorded in a new block, namely the transaction B is not involved in the transaction. Otherwise, the transaction is not accepted.
By the above method, transaction B will not be recorded in the blockchain system.
Application case three (transaction freeze):
assuming that the policy management node finds, through big data analysis or other means, that a certain transaction C that has occurred and is recorded in the blockchain system needs to be frozen, the policy management node generates an accounting policy, which indicates that the transaction C is frozen, and the accounting policy can be submitted to the blockchain system as a transaction.
The endorsement node and the sequencing node receive the accounting strategy sent by the strategy management node, and can also actively inquire the accounting strategy from the strategy management node.
And the endorsement node receives the transaction data submitted by the client equipment and carries out endorsement according to the accounting strategy. If a transaction involving transaction C occurs in the transaction data submitted by the client device, the endorsement node will go unprocessed.
After receiving the transaction endorsement result submitted by the client device, the sequencing node verifies whether the transaction endorsement result conforms to the accounting policy of the policy management node, and if so, the sequencing node records the transaction into a new block, namely the transaction C is not involved in the transaction. Otherwise, the transaction is not accepted.
By the above method, all transactions involving transaction C will not be recorded in the blockchain system, transaction C being frozen.
If the transaction needs to be unfrozen, the policy management node needs to generate a transaction unfreezing policy, and the endorsement node and the sequencing node retrieve the corresponding freezing and unfreezing policy of a certain transaction and execute the latest policy.
The policy management node: generating an accounting strategy, signing the accounting strategy, issuing the accounting strategy and providing a strategy query function. An endorsement node: and receiving the accounting strategy sent by the strategy management node, having a strategy query function, and endorsing the transaction according to the accounting strategy of the strategy management node. Sequencing nodes: and receiving the bookkeeping strategy of the strategy management node, having a strategy query function, and verifying the endorsement result according to the strategy of the strategy management node.
In another aspect, the present invention further provides a blockchain network architecture, as shown in fig. 2, where the blockchain system includes an endorsement node, a sorting node, and a policy management node, and the endorsement node, the sorting node, and the policy management node are connected to each other,
the policy management node is used for receiving second transaction data in the blockchain system; generating a second billing policy based on the second transaction data; sending the second billing policy to the blockchain system;
the endorsement node is used for receiving first transaction data sent by the client equipment; under the condition that the first transaction data accord with a first accounting strategy, endorsement is carried out on the first transaction data to obtain a first endorsement result, wherein the first accounting strategy is an accounting strategy obtained from the strategy management node; sending the first endorsement result to the client device;
the sequencing node is used for receiving first transaction data and a first endorsement result sent by the client device; verifying the first endorsement result based on the first transaction data and the first pre-acquired accounting policy; and generating a target block and sending the target block to the blockchain system if the verification is passed.
Referring to fig. 2, endorsement nodes are connected with each other in a point-to-point (Peer-to-Peer) manner, each endorsement node is connected with a policy management node, sequencing nodes are connected with each other in a point-to-point manner, and each sequencing node is connected with a policy management node to form a block chain network architecture. The policy management node receives second transaction data in the blockchain system corresponding to the blockchain network architecture, and generates an accounting policy based on the second transaction data. The endorsement node receives the accounting strategy actively sent by the strategy management node, or inquires the strategy management node to obtain the accounting strategy, after the endorsement node obtains the accounting strategy, the signature in the accounting strategy is verified, and the accounting strategy after the signature verification is passed is stored in a local storage area of the endorsement node, or a block account book of a block chain system, or an accounting strategy chain of the block chain system. After the endorsement node receives the new transaction data, the endorsement node screens the received transaction data according to the accounting strategy of the strategy management node, records the transaction data conforming to the accounting strategy in the new block, and does not record the transaction data not conforming to the accounting strategy in the new block, so that the transaction data in the block chain all conform to the accounting strategy of the strategy management node.
The invention further provides an endorsement node, and referring to fig. 9, fig. 9 is one of schematic diagrams of the endorsement node provided in the embodiment of the invention. As shown in fig. 9, the endorsement node 900 comprises:
a first receiving module 901, configured to receive first transaction data sent by a client device;
an endorsement module 902, configured to, in a case that the first transaction data conforms to a first accounting policy, endorse the first transaction data to generate a first endorsement result, where the first accounting policy is obtained from the policy management node in advance;
a first sending module 903, configured to send the first endorsement result to the client device, so that the client device sends the first transaction data and the first endorsement result to the sorting node for verification.
Optionally, the endorsement node further comprises:
a first obtaining module, configured to obtain the first accounting policy from the policy management node.
Optionally, the first obtaining module is further configured to:
receiving the first accounting strategy sent by the strategy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Optionally, the endorsement node further comprises:
the first storage module is used for storing the first accounting strategy to a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
Optionally, the first obtaining module is further configured to:
receiving the first accounting policy with the signature sent by the policy management node;
verifying a signature of the first accounting policy based on a pre-acquired public key of the policy management node, wherein the signature of the first accounting policy is generated by encrypting the first accounting policy by the policy management node using a private key corresponding to the public key;
and storing the first accounting strategy or endorsing the first accounting strategy when the signature verification of the first accounting strategy is passed.
The endorsement node 900 can implement each process that the endorsement node can implement in the method embodiment of the present invention, and achieve the same beneficial effect, and for avoiding repetition, the detailed description is omitted here.
The present invention further provides a sort node, referring to fig. 10, fig. 10 is one of the structural diagrams of the sort node provided in the embodiment of the present invention. As shown in fig. 10, the sorting node 1000 includes:
a second receiving module 1001, configured to receive first transaction data and a first endorsement result sent by a client device, where the first endorsement result is obtained by the endorsement node performing an endorsement on the first transaction data based on a first accounting policy;
a verification module 1002, configured to verify the first endorsement result based on the first transaction data and the first pre-obtained billing policy, where the first billing policy is pre-obtained from the policy management node;
a first generating module 1003, configured to generate a target block and send the target block to the blockchain system if the verification passes.
Optionally, the sorting node further includes:
and the second acquisition module is used for acquiring the first accounting policy from the policy management node and storing the first accounting policy to a preset storage position.
Optionally, the second obtaining module is further configured to:
receiving the first accounting strategy sent by the strategy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Optionally, the second obtaining module is further configured to:
receiving the first billing strategy and a second endorsement result sent by the strategy management node, and verifying the first billing strategy and/or the second endorsement result, wherein the second endorsement result is obtained by the endorsement node performing endorsement on the first billing strategy;
and if the verification is passed, storing the first accounting strategy to a target position, wherein the target position is a block book of the blockchain system or an accounting strategy chain of the blockchain system.
Optionally, the preset storage location includes at least one of a local storage area of the blockchain node, a blockbook of the blockchain system, and a billing policy chain of the blockchain system.
The sequencing node 1000 can implement each process that can be implemented by the sequencing node in the method embodiment of the present invention, and achieve the same beneficial effects, and for avoiding repetition, details are not described here.
The present invention further provides a policy management node, referring to fig. 11, where fig. 11 is one of the structural schematic diagrams of the policy management node provided in the embodiment of the present invention. As shown in fig. 11, the policy management node 1100 includes:
a third receiving module 1101, configured to receive second transaction data in the blockchain system;
a second generating module 1102 for generating a second billing policy based on the second transaction data;
a second sending module 1103, configured to send the second billing policy to the blockchain system, so that the endorsement node and/or the sorting node obtains the second billing policy.
Optionally, the second generating module is further configured to:
extracting policy information from the second transaction data;
generating a second billing policy based on the policy information.
Optionally, the second sending module is further configured to:
encrypting the second accounting strategy by using a private key to generate a signature of the second accounting strategy;
and sending a second accounting strategy carrying the signature to the blockchain system.
Optionally, the second sending module is further configured to:
receiving a third policy query request sent by a target node, and sending the second accounting policy to the target node based on the third policy query request, wherein the target node is the endorsement node or the ordering node.
Optionally, the second sending module is further configured to:
sending the second billing strategy to the endorsement node, wherein the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing strategy chain of the blockchain system;
receiving a third endorsement result sent by the endorsement node, wherein the third endorsement result is obtained by the endorsement node performing the endorsement on the second accounting policy;
and sending the second accounting strategy and the third endorsement result to the sequencing node so that the sequencing node verifies the second accounting strategy and/or the third endorsement result.
The policy management node 1100 can implement each process that the policy management node can implement in the method embodiment of the present invention, and achieve the same beneficial effects, and for avoiding repetition, the details are not described here again.
Specifically, referring to fig. 12, an embodiment of the present invention further provides an endorsement node, which includes a bus 1201, a transceiver 1202, an antenna 1203, a bus interface 1204, a processor 1205, and a memory 1206.
The transceiver 1202 is configured to receive first transaction data sent by a client device;
the processor 1205 is configured to endorse the first transaction data to generate a first endorsement result when the first transaction data conforms to a first accounting policy, where the first accounting policy is obtained from the policy management node in advance;
the transceiver 1202 is configured to send the first endorsement result to the client device, so that the client device sends the first transaction data and the first endorsement result to the sorting node for verification.
Further, the processor 1205 is further configured to obtain the first accounting policy from the policy management node.
Further, the transceiver 1202 is further configured to receive the first accounting policy sent by the policy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
Further, the processor 1205 is further configured to store the first accounting policy in a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
Further, the transceiver 1202 is further configured to receive the first accounting policy with a signature sent by the policy management node;
the processor 1205 is further configured to verify a signature of the first billing policy based on a pre-obtained public key of the policy management node, where the signature of the first billing policy is generated by encrypting, by the policy management node, the first billing policy using a private key corresponding to the public key;
the processor 1205 is further configured to store the first billing policy or endorse the first billing policy if the signature verification of the first billing policy passes.
In fig. 12, a bus architecture (represented by the bus 1201), the bus 1201 can include any number of interconnected buses and bridges, and the bus 1201 links together various circuits including one or more processors, represented by the processor 1205, and memory, represented by the memory 1206. The bus 1201 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 1204 provides an interface between the bus 1201 and the transceiver 1202. The transceiver 1202 may be one element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. Data processed by the processor 1205 is transmitted over a wireless medium via the antenna 1203, and further, the antenna 1203 receives the data and transmits the data to the processor 1205.
The processor 1205 is responsible for managing the bus 1201 and normal processing, and may provide a variety of functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 1206 may be used for storing data used by processor 1205 in performing operations.
Alternatively, the processor 1205 may be a CPU, ASIC, FPGA, or CPLD.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the block processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
An embodiment of the present invention further provides an endorsement node, including: the processor, the memory and the program stored in the memory and capable of running on the processor, wherein the program, when executed by the processor, implements each process of the block processing method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
Specifically, referring to fig. 13, an embodiment of the present invention further provides a structural schematic diagram of a sorting node, as shown in fig. 13, the policy management node includes a bus 1301, a transceiver 1302, an antenna 1303, a bus interface 1304, a processor 1305, and a memory 1306.
The transceiver 1302 is configured to receive first transaction data and a first endorsement result sent by a client device, where the first endorsement result is obtained by the endorsement node performing an endorsement on the first transaction data based on a first accounting policy;
the processor 1305, configured to verify the first endorsement result based on the first transaction data and the first pre-obtained billing policy, where the first billing policy is pre-obtained from the policy management node;
the processor 1305 is configured to generate a target block and send the target block to the blockchain system if the verification passes.
Further, the processor 1305 is further configured to obtain the first accounting policy from the policy management node, and store the first accounting policy in a preset storage location.
Further, the transceiver 1302 is further configured to receive the first accounting policy sent by the policy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
Further, the transceiver 1302 is further configured to receive the first billing policy and the second endorsement result sent by the policy management node, and verify the first billing policy and/or the second endorsement result, where the second endorsement result is obtained by the endorsement node performing an endorsement on the first billing policy;
the processor 1305 is further configured to store the first accounting policy to a target location if the verification passes, where the target location is a block book of the blockchain system or an accounting policy chain of the blockchain system.
Further, the preset storage location includes at least one of a local storage area of the blockchain node, a blockchain account book of the blockchain system, and an accounting policy chain of the blockchain system.
In FIG. 13, a bus architecture (represented by the bus 1301), the bus 1301 can include any number of interconnected buses and bridges, the bus 1301 linking together various circuits including one or more processors, represented by the processor 1305, and memory, represented by the memory 1306. The bus 1301 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 1304 provides an interface between the bus 1301 and the transceiver 1302. The transceiver 1302 may be one element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 1305 is transmitted over a wireless medium through the antenna 1303, and further, the antenna 1303 receives the data and transmits the data to the processor 1305.
The processor 1305 is responsible for managing the bus 1301 and general processing, and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 1306 may be used to store data used by the processor 1305 in performing operations.
Alternatively, the processor 1305 may be a CPU, ASIC, FPGA or CPLD.
An embodiment of the present invention further provides a sequencing node, including: the processor, the memory and the program stored in the memory and capable of running on the processor, wherein the program, when executed by the processor, implements each process of the block processing method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
Specifically, referring to fig. 14, an embodiment of the present invention further provides a schematic structural diagram of a policy management node, as shown in fig. 14, the policy management node includes a bus 1401, a transceiver 1402, an antenna 1403, a bus interface 1404, a processor 1405, and a memory 1406.
The transceiver 1402, configured to receive second transaction data in the blockchain system;
the processor 1405, for generating a second billing policy based on the second transaction data;
the transceiver 1402 is configured to send the second accounting policy to the blockchain system, so that the endorsement node and/or the sorting node acquires the second accounting policy.
Further, the processor 1405 is further configured to extract policy information from the second transaction data;
the processor 1405 is further configured to generate a second billing policy based on the policy information.
Further, the processor 1405 is further configured to encrypt the second billing policy using a private key, and generate a signature of the second billing policy;
the transceiver 1402 is further configured to send a second accounting policy carrying the signature to the blockchain system.
Further, the transceiver 1402 is further configured to receive a third policy query request sent by a target node, and send the second accounting policy to the target node based on the third policy query request, where the target node is the endorsement node or the ordering node.
Further, the transceiver 1402 is further configured to send the second billing policy to the endorsement node, where the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing policy chain of the blockchain system;
the transceiver 1402 is further configured to receive a third endorsement result sent by the endorsement node, where the third endorsement result is obtained by the endorsement node performing an endorsement on the second billing policy;
the transceiver 1402 is further configured to send the second billing policy and the third endorsement result to the sorting node, so that the sorting node verifies the second billing policy and/or the third endorsement result.
In fig. 14, a bus architecture (represented by the bus 1401), the bus 1401 may comprise any number of interconnected buses and bridges, and the bus 1401 links together various circuits including one or more processors, represented by the processor 1405, and memory, represented by the memory 1406. The bus 1401 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 1404 provides an interface between the bus 1401 and the transceiver 1402. The transceiver 1402 may be one element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. Data processed by processor 1405 is transmitted over a wireless medium via antenna 1403 and further antenna 1403 receives and transmits data to processor 1405.
The processor 1405 is responsible for managing the bus 1401 and general processing, and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 1406 may be used to store data used by processor 1405 in performing operations.
Alternatively, processor 1405 may be a CPU, ASIC, FPGA, or CPLD.
An embodiment of the present invention further provides a policy management node, including: the processor, the memory and the program stored in the memory and capable of running on the processor, wherein the program, when executed by the processor, implements each process of the block processing method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing repeated transmission control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer readable storage medium is, for example, ROM, RAM, magnetic disk or optical disk.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (26)

1. A block processing method applied to an endorsement node of a blockchain system, the blockchain system further comprising a policy management node and a sorting node, the endorsement node, the policy management node and the sorting node being interconnected, the method comprising:
receiving first transaction data sent by client equipment;
when the first transaction data accords with a first accounting strategy, endorsement is carried out on the first transaction data to generate a first endorsement result, wherein the first accounting strategy is acquired from the strategy management node in advance;
and sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to the sequencing node for verification.
2. The method of claim 1, wherein prior to endorsement of the first transaction data if the first transaction data complies with a first billing policy, the method further comprises:
obtaining the first billing policy from the policy management node.
3. The method of claim 2, wherein said obtaining the first billing policy from the policy management node comprises:
receiving the first accounting strategy sent by the strategy management node;
or sending a first policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the first policy query request.
4. The method of claim 2, wherein after obtaining the first billing policy from the policy management node, the method further comprises:
storing the first accounting strategy to a local storage area;
or, endorsement is carried out on the first accounting strategy to obtain a second endorsement result, and the second endorsement result is sent to the strategy management node, so that the strategy management node sends the second endorsement result to the sequencing node for verification.
5. The method of claim 2, wherein said obtaining the first billing policy from the policy management node comprises:
receiving the first accounting policy with the signature sent by the policy management node;
verifying a signature of the first accounting policy based on a pre-acquired public key of the policy management node, wherein the signature of the first accounting policy is generated by encrypting the first accounting policy by the policy management node using a private key corresponding to the public key;
and storing the first accounting strategy or endorsing the first accounting strategy when the signature verification of the first accounting strategy is passed.
6. A block processing method applied to a sorting node of a blockchain system, wherein the blockchain system further comprises a policy management node and an endorsement node, and the sorting node, the policy management node and the endorsement node are connected to each other, the method comprising:
receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node performing endorsement on the first transaction data based on a first accounting strategy;
verifying the first endorsement result based on the first transaction data and the first pre-acquired billing policy, wherein the first billing policy is pre-acquired from the policy management node;
and generating a target block and sending the target block to the blockchain system if the verification is passed.
7. The method of claim 6, wherein prior to verifying the first endorsement outcome based on the first transaction data and the first pre-obtained billing policy, the method further comprises:
and acquiring the first accounting strategy from the strategy management node, and storing the first accounting strategy to a preset storage position.
8. The method of claim 7, wherein said obtaining the first billing policy from the policy management node comprises:
receiving the first accounting strategy sent by the strategy management node;
or sending a second policy query request to the policy management node, and receiving the first accounting policy returned by the policy management node based on the second policy query request.
9. The method according to claim 7, wherein the obtaining the first accounting policy from the policy management node and storing the first accounting policy to a preset storage location comprises:
receiving the first billing strategy and a second endorsement result sent by the strategy management node, and verifying the first billing strategy and/or the second endorsement result, wherein the second endorsement result is obtained by the endorsement node performing endorsement on the first billing strategy;
and if the verification is passed, storing the first accounting strategy to a target position, wherein the target position is a block book of the blockchain system or an accounting strategy chain of the blockchain system.
10. The method of claim 7, wherein the predetermined storage location comprises at least one of a local storage area of the blockchain node, a blockbook of the blockchain system, and a chain of accounting policies of the blockchain system.
11. A block processing method applied to a policy management node of a blockchain system, wherein the blockchain system further comprises an endorsement node and a sorting node, and the policy management node, the endorsement node and the sorting node are connected to each other, the method comprising:
receiving second transaction data in the blockchain system;
generating a second billing policy based on the second transaction data;
and sending the second accounting strategy to the blockchain system so as to enable the endorsement node and/or the sequencing node to acquire the second accounting strategy.
12. The method of claim 11, wherein generating a second billing policy based on the second transaction data comprises:
extracting policy information from the second transaction data;
generating a second billing policy based on the policy information.
13. The method of claim 11, wherein sending the second billing policy to the blockchain system comprises:
encrypting the second accounting strategy by using a private key to generate a signature of the second accounting strategy;
and sending a second accounting strategy carrying the signature to the blockchain system.
14. The method of claim 11, wherein sending the second billing policy to the blockchain system comprises:
receiving a third policy query request sent by a target node, and sending the second accounting policy to the target node based on the third policy query request, wherein the target node is the endorsement node or the ordering node.
15. The method of claim 11, wherein sending the second billing policy to the blockchain system comprises:
sending the second billing strategy to the endorsement node, wherein the endorsement node is an endorsement node in the blockchain system or an endorsement node in a billing strategy chain of the blockchain system;
receiving a third endorsement result sent by the endorsement node, wherein the third endorsement result is obtained by the endorsement node performing the endorsement on the second accounting policy;
and sending the second accounting strategy and the third endorsement result to the sequencing node so that the sequencing node verifies the second accounting strategy and/or the third endorsement result.
16. A blockchain network architecture comprising an endorsement node, a sorting node and a policy management node, the endorsement node, the sorting node and the policy management node being interconnected, wherein,
the policy management node is used for receiving second transaction data in the blockchain system; generating a second billing policy based on the second transaction data; sending the second billing policy to the blockchain system;
the endorsement node is used for receiving first transaction data sent by the client equipment; under the condition that the first transaction data accord with a first accounting strategy, endorsement is carried out on the first transaction data to obtain a first endorsement result, wherein the first accounting strategy is an accounting strategy obtained from the strategy management node; sending the first endorsement result to the client device;
the sequencing node is used for receiving first transaction data and a first endorsement result sent by the client device; verifying the first endorsement result based on the first transaction data and the first pre-acquired accounting policy; and generating a target block and sending the target block to the blockchain system if the verification is passed.
17. An endorsement node, comprising:
the first receiving module is used for receiving first transaction data sent by the client equipment;
the endorsement module is used for endorsement of the first transaction data to generate a first endorsement result under the condition that the first transaction data accords with a first accounting strategy, wherein the first accounting strategy is acquired from a strategy management node in advance;
the first sending module is used for sending the first endorsement result to the client device so that the client device sends the first transaction data and the first endorsement result to a sequencing node for verification.
18. A sequencing node, comprising:
the second receiving module is used for receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node in an endorsement mode on the basis of a first accounting strategy;
a verification module, configured to verify the first endorsement result based on the first transaction data and the first pre-obtained billing policy, where the first billing policy is pre-obtained from the policy management node;
and the first generation module is used for generating a target block and sending the target block to the blockchain system under the condition that the verification is passed.
19. A policy management node, comprising:
the third receiving module is used for receiving second transaction data in the blockchain system;
a second generating module for generating a second billing policy based on the second transaction data;
and the second sending module is used for sending the second accounting strategy to the blockchain system so that the endorsement node and/or the sequencing node can obtain the second accounting strategy.
20. An endorsement node comprising a transceiver and a processor,
the transceiver is used for receiving first transaction data sent by the client device;
the processor is used for endorsement of the first transaction data to generate a first endorsement result under the condition that the first transaction data conforms to a first accounting policy, wherein the first accounting policy is acquired from a policy management node in advance;
the transceiver is configured to send the first endorsement result to the client device, so that the client device sends the first transaction data and the first endorsement result to a sorting node for verification.
21. A sequencing node, comprising a transceiver and a processor,
the transceiver is used for receiving first transaction data and a first endorsement result sent by client equipment, wherein the first endorsement result is obtained by the endorsement node performing endorsement on the first transaction data based on a first accounting strategy;
the processor is configured to verify the first endorsement result based on the first transaction data and the first pre-acquired accounting policy, where the first accounting policy is pre-acquired from the policy management node;
and the processor is used for generating a target block and sending the target block to the block chain system under the condition that the verification is passed.
22. A policy management node comprising a transceiver and a processor,
the transceiver is used for receiving second transaction data in a blockchain system;
the processor to generate a second billing policy based on the second transaction data;
the transceiver is configured to send the second accounting policy to the blockchain system, so that the endorsement node and/or the sorting node acquires the second accounting policy.
23. An endorsement node, comprising: processor, memory and a program stored on the memory and executable on the processor, which program, when executed by the processor, carries out the steps of the block processing method according to any one of claims 1 to 5.
24. A sequencing node, comprising: processor, memory and a program stored on the memory and executable on the processor, which program, when executed by the processor, carries out the steps of the block processing method according to any one of claims 6 to 10.
25. A policy management node, comprising: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the block processing method according to any one of claims 11 to 15.
26. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the block processing method according to any one of claims 1 to 5; or the computer program when executed by a processor implements the steps of the block processing method of any of claims 6 to 10; or which computer program, when being executed by a processor, carries out the steps of the block processing method according to any one of claims 11 to 15.
CN202011238112.2A 2020-11-09 2020-11-09 Block processing method, block chain network architecture, node and storage medium Pending CN114463000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011238112.2A CN114463000A (en) 2020-11-09 2020-11-09 Block processing method, block chain network architecture, node and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011238112.2A CN114463000A (en) 2020-11-09 2020-11-09 Block processing method, block chain network architecture, node and storage medium

Publications (1)

Publication Number Publication Date
CN114463000A true CN114463000A (en) 2022-05-10

Family

ID=81403950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011238112.2A Pending CN114463000A (en) 2020-11-09 2020-11-09 Block processing method, block chain network architecture, node and storage medium

Country Status (1)

Country Link
CN (1) CN114463000A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979148A (en) * 2022-06-16 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979148A (en) * 2022-06-16 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and computer readable storage medium
CN114979148B (en) * 2022-06-16 2023-07-14 中国联合网络通信集团有限公司 Data transmission method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109257342B (en) Block chain cross-chain authentication method, system, server and readable storage medium
US10404455B2 (en) Multiple-phase rewritable blockchain
CN111914027B (en) Block chain transaction keyword searchable encryption method and system
CN108595126B (en) Data storage system, query method, query device, server, and storage medium
US9967088B2 (en) Rewritable blockchain
JP7296596B2 (en) Distributed Consensus Algorithm, Device and Computer Readable Storage Medium for Rapid Generation of Blocks
Kong et al. Blockchain-based privacy-preserving driver monitoring for MaaS in the vehicular IoT
CN111191283B (en) Beidou positioning information security encryption method and device based on alliance block chain
US20070140479A1 (en) Privacy-preserving data aggregation using homomorphic encryption
CN110581839B (en) Content protection method and device
US20090208015A1 (en) Offline consumption of protected information
DE10393847B4 (en) Method and apparatus for finding shared confidential information without affecting non-shared confidential information
CN110737915B (en) Anti-quantum-computation anonymous identity recognition method and system based on implicit certificate
CN111340483A (en) Data management method based on block chain and related equipment
Guo et al. Dynamic proof of data possession and replication with tree sharing and batch verification in the cloud
CN110868295A (en) Anti-quantum computing alliance chain system based on secret sharing and communication method
CN110992032A (en) Method and device for evaluating credible users by combining multiple parties
Badr et al. Blockchain-based ride-sharing system with accurate matching and privacy-preservation
CN104361295B (en) Internet of vehicles RSU data query and verification method based on cloud platform
CN110191467A (en) A kind of method for authenticating of internet of things equipment, unit and storage medium
CN114463000A (en) Block processing method, block chain network architecture, node and storage medium
CN115705601A (en) Data processing method and device, computer equipment and storage medium
CN116777397A (en) Electronic bill management method, device, terminal and storage medium based on block chain
CN108763303B (en) Platform verification method and device, computer equipment and storage medium
CN115827773A (en) Data processing system, and storage medium and method for processing warehousing business documents of data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination