US Patent No. 11,113,271

METHODS AND DEVICES FOR PERFORMING OFF-CHAIN TESTING ON SMART CONTRACT


Patent No. 11,113,271
Issue Date September 07, 2021
Title Methods And Devices For Performing Off-chain Testing On Smart Contract
Inventorship Haizhen Zhuo, Zhejiang (CN)
Honglin Qiu, Zhejiang (CN)
Assignee Advanced New Technologies Co., Ltd., Grand Cayman (KY)

Claim of US Patent No. 11,113,271


1. A computer-implemented method for performing an off-chain testing on a smart contract, comprising:generating execution environment information for the smart contract, the execution environment information including at least one of transaction context information, blockchain information, or state information;
providing an interface between the generated execution environment information and the smart contract;
executing the smart contract based on the generated execution environment information and the provided interface; and
storing an execution result of the smart contract, wherein the storing the execution result comprises storing data indicating a change in at least one of the blockchain information or the state information,
wherein the generating the execution environment information, the providing the interface, the executing the smart contract, and the storing the execution result of the smart contract are performed before the smart contract is deployed into a blockchain, thereby implementing the off-chain testing on the smart contract.