Blockchain system and data storage method and apparatus
View Patent ↗Methods, systems, and apparatus, including computer programs encoded on computer storage media, for storing data are provided. One of the methods includes: receiving, by one or more computing devices, a transaction request from a first node, the transaction request comprising transaction data; determining, by the one or more computing devices based on the transaction data, a blockchain network corresponding to the transaction request from a plurality of blockchain networks connected to the one or more computing devices, wherein the first node is excluded from a consensus process associated with the determined blockchain network; forwarding, by the one or more computing devices, the transaction request to the determined blockchain network; receiving, by the one or more computing devices from the determined blockchain network, a block generated based on consensus validation on the transaction request; and forwarding, by the one or more computing devices, the block to the first node.
1. A method for storing data, comprising:
receiving, by one or more computing devices, a transaction request from a first node, the transaction request comprising transaction data;
determining, by the one or more computing devices based on the transaction data, a blockchain network corresponding to the transaction request from a plurality of blockchain networks connected to the one or more computing devices, wherein the first node is excluded from a consensus process associated with the determined blockchain network;
forwarding, by the one or more computing devices, the transaction request to the determined blockchain network;
receiving, by the one or more computing devices from the determined blockchain network, a block generated based on consensus validation on the transaction request; and
forwarding, by the one or more computing devices, the block to the first node.
2. The method of claim 1 , further comprising:
performing, by the determined blockchain network, the consensus validation on the transaction request forwarded by the one or more computing devices;
generating, by the determined blockchain network, the block associated with the transaction request; and
adding, by the determined blockchain network, the generated block to a blockchain associated with the determined blockchain network.
3. The method of claim 1 , further comprising:
storing, by the first node, information associated with the block to a public blockchain.
4. The method of claim 1 , further comprising:
receiving, by the one or more computing devices, a transaction digest corresponding to the block from the determined blockchain network; and
forwarding, by the one or more computing devices, the transaction digest to the first node.
5. The method of claim 4 , further comprising:
storing, by the first node, information associated with the transaction digest to a public blockchain.
6. The method of claim 1 , further comprising:
receiving, by the one or more computing devices, a search request for transaction data from the first node;
determining, by the one or more computing devices, a search permission associated with the first node based on the search request;
obtaining, by the one or more computing devices from the determined blockchain network, transaction data corresponding to the search permission; and
sending, by the one or more computing devices, the obtained transaction data to the first node.
7. The method of claim 6 , wherein the determining a search permission associated with the first node comprises:
determining a type of the first node; and
assigning the search permission to the first node based on the determined type.
8. A system for storing data, comprising a processor and a non-transitory computer-readable storage medium storing instructions executable by the processor to cause the system to perform operations comprising:
receiving a transaction request from a first node, the transaction request comprising transaction data;
determining, based on the transaction data, a blockchain network corresponding to the transaction request from a plurality of blockchain networks connected to the one or more computing devices, wherein the first node is excluded from a consensus process associated with the determined blockchain network;
forwarding the transaction request to the determined blockchain network;
receiving, from the determined blockchain network, a block generated based on consensus validation on the transaction request; and
forwarding the block to the first node.
9. The system of claim 8 , wherein the operations further comprise:
validating, by a node associated with the determined blockchain network, the transaction request forwarded by the one or more computing devices;
generating, by the node associated with the determined blockchain network, the block associated with the transaction request; and
adding, by the node associated with the determined blockchain network, the generated block to a blockchain associated with the determined blockchain network.
10. The system of claim 8 , wherein the operations further comprise:
storing, by the first node, information associated with the block to a public blockchain.
11. The system of claim 8 , wherein the operations further comprise:
receiving a transaction digest corresponding to the block from the determined blockchain network; and
forwarding the transaction digest to the first node.
12. The system of claim 11 , wherein the operations further comprise:
storing, by the first node, information associated with the transaction digest to a public blockchain.
13. The system of claim 8 , wherein the operations further comprise:
receiving a search request for transaction data from the first node;
determining a search permission associated with the first node based on the search request;
obtaining, from the determined blockchain network, transaction data corresponding to the search permission; and
sending the obtained transaction data to the first node.
14. The system of claim 13 , wherein the determining a search permission associated with the first node comprises:
determining a type of the first node; and
assigning the search permission to the first node based on the determined type.
15. A non-transitory computer-readable storage medium, configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
receiving a transaction request from a first node, the transaction request comprising transaction data;
determining, based on the transaction data, a blockchain network corresponding to the transaction request from a plurality of blockchain networks connected to the one or more computing devices, wherein the first node is excluded from a consensus process associated with the determined blockchain network;
forwarding the transaction request to the determined blockchain network;
receiving, from the determined blockchain network, a block generated based on consensus validation on the transaction request; and
forwarding the block to the first node.
16. The non-transitory computer-readable storage medium of claim 15 , wherein the operations further comprise:
validating, by a node associated with the determined blockchain network, the transaction request forwarded by the one or more computing devices;
generating, by the node associated with the determined blockchain network, the block associated with the transaction request; and
adding, by the node associated with the determined blockchain network, the generated block to a blockchain associated with the determined blockchain network.
17. The non-transitory computer-readable storage medium of claim 15 , wherein the operations further comprise:
storing, by the first node, information associated with the block to a public blockchain.
18. The non-transitory computer-readable storage medium of claim 15 , wherein the operations further comprise:
receiving a transaction digest corresponding to the block from the determined blockchain network; and
forwarding the transaction digest to the first node.
19. The non-transitory computer-readable storage medium of claim 18 , wherein the operations further comprise:
storing, by the first node, information associated with the transaction digest to a public blockchain.
20. The non-transitory computer-readable storage medium of claim 15 , wherein the operations further comprise:
receiving a search request for transaction data from the first node;
determining a search permission associated with the first node based on the search request;
obtaining, from the determined blockchain network, transaction data corresponding to the search permission; and
sending the obtained transaction data to the first node.