Smart contracts, blockchains (distributed ledgers), and rights management broadly construed are the themes of today's Spotlight Patents. Both of today's patents are from Chinese organizations. Assigned to Alipay, the first patent addresses techniques for executing a smart contract. Assigned to Huazhong University of Science and Technology ("HUST"), the second patent addresses techniques for a sidechain testing system and method for improving security and stability of a smart contract.
11,301,222, "Method for executing smart contract, blockchain node, and storage medium," assigned to Alipay (Hangzhou) Information Technology Co., Ltd. (CN).
Abstract
The present specification provides a method for executing a smart contract, a blockchain node, and a storage medium. An implementation of a method for executing a smart contract includes: receiving, by a blockchain node, a request for creating a smart contract, the request including a bytecode of the smart contract; starting, by the blockchain node after completing deployment of the smart contract, to compile the bytecode of the smart contract into a machine code by using ahead of time and storing the machine code; and during execution of the deployed smart contract, executing, by the blockchain node, the machine code of the smart contract in response to the machine code being locally stored. According to the above implementations of the present application, the blockchain node can greatly increase a speed of executing a smart contract, and reduce storage overheads on the blockchain node.
11,301,361, "Sidechain testing system and method for improving security and stability of a smart contract by generating sidechains having mirror image accounts of part or all mainchain assets," assigned to Huazhong University of Science and Technology ("HUST") (CN).
Abstract
The present disclosure involves a sidechain testing system and method for improving security and stability of a smart contract.
The present specification provides a method for executing a smart contract, a blockchain node, and a storage medium. An implementation of a method for executing a smart contract includes: receiving, by a blockchain node, a request for creating a smart contract, the request including a bytecode of the smart contract; starting, by the blockchain node after completing deployment of the smart contract, to compile the bytecode of the smart contract into a machine code by using ahead of time and storing the machine code; and during execution of the deployed smart contract, executing, by the blockchain node, the machine code of the smart contract in response to the machine code being locally stored. According to the above implementations of the present application, the blockchain node can greatly increase a speed of executing a smart contract, and reduce storage overheads on the blockchain node.