US 12,309,301 B2
Method and apparatus for operating blockchain system, device and storage medium
Chunhui Wan, Beijing (CN); Yuan Wang, Beijing (CN); and Wei Xiao, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Mar. 30, 2022, as Appl. No. 17/657,355.
Claims priority of application No. 202110652768.7 (CN), filed on Jun. 11, 2021.
Prior Publication US 2022/0224545 A1, Jul. 14, 2022
This patent is subject to a terminal disclaimer.
Int. Cl. H04L 9/00 (2022.01); H04L 9/32 (2006.01); H04L 67/104 (2022.01); G06F 9/46 (2006.01); G06F 21/64 (2013.01); H04L 67/1097 (2022.01)
CPC H04L 9/50 (2022.05) [H04L 9/3236 (2013.01); H04L 9/3247 (2013.01); H04L 67/104 (2013.01); G06F 9/466 (2013.01); G06F 21/64 (2013.01); H04L 67/1097 (2013.01); H04L 2209/56 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A method for operating a blockchain system, comprising:
processing, through a kernel engine of the blockchain system, to-be-processed blockchain data, generating a kernel component call request based on a kernel component interface during the processing process of the to-be-processed blockchain data, and calling a kernel component corresponding to the kernel component call request according to the kernel component call request, wherein at least one kernel component is provided; and
executing, through the kernel component, the kernel component call request to execute processing of a set component function and satisfy a processing requirement for the to-be-processed blockchain data;
wherein the kernel component comprises at least one of: a contract component, a network component, a consensus component, a ledger component, a permission component, or a cryptography component;
wherein the to-be-processed blockchain data comprises at least one of: a to-be-processed blockchain transaction request, a to-be-verified block, a to-be-synchronized block or blockchain system maintenance data;
wherein the generating, through the kernel engine, the kernel component call request based on the kernel component interface during the processing process, calling the kernel component according to the kernel component call request, and executing, through the kernel component, the kernel component call request to execute the processing of the set component function comprises:
generating, through the kernel engine, a deal check request based on a deal check interface according to the to-be-processed blockchain transaction request, and calling the ledger component according to the deal check request;
performing, through the ledger component, ledger check on to-be-checked ledger data according to the deal check request, and feeding back a ledger check result to the kernel engine;
after the ledger check is successful, generating, through the kernel engine, a deal execution request based on a deal execution interface, and calling the ledger component according to the deal execution request;
executing, through the ledger component, the to-be-processed blockchain transaction request according to the deal execution request, forming deal data, and adding the deal data to an unconfirmed transaction pool;
in a case where a native node is a miner of a current block, generating, through the kernel engine, a deal packaging request based on a block packaging interface, and calling the ledger component according to the deal packaging request;
confirming, through the ledger component, to-be-packaged deal data from an unconfirmed deal pool according to the deal packaging request, and packaging the to-be-packaged deal data to form a block and feeding back the block to the kernel engine;
generating, through the kernel engine, a block signature request based on a signature interface, and calling the cryptography component according to the block signature request;
performing, through the cryptography component, signature processing on the packaged block according to the block signature request, and feeding back the signature-processed packaged block to the kernel engine;
generating, through the kernel engine, a block update request based on a block update interface, and calling the ledger component according to the block update request;
writing, through the ledger component, the signature-processed packaged block into a local ledger of the native node according to the block update request;
generating, through the kernel engine, a block broadcast request based on a block broadcast interface, and calling the network component according to the block broadcast request; and
transmitting, through the network component, the signature-processed packaged block into a blockchain network according to the block broadcast request.