Blockchain consensus method and device
AssigneeAlibaba Group Holding Limited
InventorShifeng Wang
Life of this patent
Estimating the term…
Abstract
The present application discloses a blockchain consensus method and device. In the blockchain consensus method, a blockchain node obtains service data on which to perform consensus processing. A service type of the service data is determined. At least one consensus node that provides a consensus service is selected by the blockchain node and from a consensus network based on the service type. The blockchain node sends the service data to the at least one consensus node, so that the at least one consensus node performs consensus processing on the service data.
Claims17
A blockchain consensus method, comprising:
- obtaining, by a blockchain node of a blockchain network, service data on which to perform consensus processing, the service data comprising data generated with a request of a service, the blockchain network comprising a plurality of blockchain nodes;
- classifying, by the blockchain node, the service data based on a service function and a service content of the service, wherein the service function comprises a function to be performed using the service data and the service content defines an item processed by the service function;
- determining, by the blockchain node, a service type of the service data based on classifying the service data and based on a vulnerability of the service data, wherein the vulnerability of the service data indicates whether the service data is vulnerable or invulnerable to an attack;
- determining, by the blockchain node, a consensus policy based on a predetermined mapping relationship between the consensus policy and the service type, wherein the consensus policy comprises a method of performing consensus processing on the service data;
- identifying, by the blockchain node, based on the consensus policy, a consensus algorithm that comprises a respective set of operating principles defining a consensus service for the service type;
- identifying, by the blockchain node, based on the consensus algorithm, a minimum number of consensus nodes to perform a round of consensus processing, wherein the minimum number of consensus nodes comprises a percentage of available consensus nodes within the blockchain network required by the consensus algorithm to process the service data;
- selecting, by the blockchain node from a consensus network based on the consensus policy, the minimum number of consensus nodes that provides the consensus service corresponding to the service type;
- sending, by the blockchain node, the service data to the minimum number of consensus nodes;
- and
- performing, by the minimum number of consensus nodes, the consensus service on the service data.
A non-transitory, computer-readable medium storing one or more instructions executable by a computer system comprising one or more processors to perform operations comprising:
- obtaining, by a blockchain node of a blockchain network, service data on which to perform consensus processing, the service data comprising data generated with a request of a service, the blockchain network comprising a plurality of blockchain nodes;
- classifying, by the blockchain node, the service data based on a service function and a service content of the service, wherein the service function comprises a function to be performed using the service data and the service content defines an item processed by the service function;
- determining, by the blockchain node, a service type of the service data based on classifying the service data and based on a vulnerability of the service data, wherein the vulnerability of the service data indicates whether the service data is vulnerable or invulnerable to an attack;
- determining, by the blockchain node, a consensus policy based on a predetermined mapping relationship between the consensus policy and the service type, wherein the consensus policy comprises a method of performing consensus processing on the service data;
- identifying, by the blockchain node, based on the consensus policy, a consensus algorithm that comprises a respective set of operating principles defining a consensus service for the service type;
- identifying, by the blockchain node, based on the consensus algorithm, a minimum number of consensus nodes to perform a round of consensus processing, wherein the minimum number of consensus nodes comprises a percentage of available consensus nodes within the blockchain network required by the consensus algorithm to process the service data;
- selecting, by the blockchain node from a consensus network based on the consensus policy, the minimum number of consensus nodes that provides the consensus service corresponding to the service type;
- sending, by the blockchain node, the service data to the minimum number of consensus nodes;
- and
- performing, by the minimum number of consensus nodes, the consensus service on the service data.
A computer-implemented system comprising:
- one or more computers;
- and
- one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
- obtaining, by a blockchain node of a blockchain network, service data on which to perform consensus processing, the service data comprising data generated with a request of a service, the blockchain network comprising a plurality of blockchain nodes;
- classifying, by the blockchain node, the service data based on a service function and a service content of the service, wherein the service function comprises a function to be performed using the service data and the service content defines an item processed by the service function;
- determining, by the blockchain node, a service type of the service data based on classifying the service data and based on a vulnerability of the service data, wherein the vulnerability of the service data indicates whether the service data is vulnerable or invulnerable to an attack;
- determining, by the blockchain node, a consensus policy based on a predetermined mapping relationship between the consensus policy and the service type, wherein the consensus policy comprises a method of performing consensus processing on the service data;
- identifying, by the blockchain node, based on the consensus policy, a consensus algorithm that comprises a respective set of operating principles defining a consensus service for the service type;
- identifying, by the blockchain node, based on the consensus algorithm, a minimum number of consensus nodes to perform a round of consensus processing, wherein the minimum number of consensus nodes comprises a percentage of available consensus nodes within the blockchain network required by the consensus algorithm to process the service data;
- selecting, by the blockchain node from a consensus network based on the consensus policy, the minimum number of consensus nodes that provides the consensus service corresponding to the service type;
- selecting, by the blockchain node from a consensus network based on the consensus policy, the minimum number of consensus nodes that provides a consensus service corresponding to the service type;
- sending, by the blockchain node, the service data to the minimum number of consensus nodes;
- and
- performing, by the minimum number of consensus nodes, the consensus service on the service data.
Dependencies are inferred from the claim text.