Smart contracts, blockchains (distributed ledgers), and rights management broadly construed are the themes of today's Spotlight Patents. Assigned to IBM, the first patent addresses techniques for converting processes into multiple blockchain smart contracts. Assigned to Alipay, the second patent addresses techniques for generating a smart contract test case.
11,205,178, "Converting processes into multiple blockchain smart contracts," assigned to IBM.
Abstract
An example operation may include one or more of identifying a workflow specification including a number of entities and state elements, selecting two or more entities designated as a subset of entities among the entities, where the subset of entities share one or more of the state elements of the workflow specification among the state elements, and creating a first smart contract identifying the one or more state elements.
11,204,860, "Methods and apparatuses for generating smart contract test case," assigned to Alipay (Hangzhou) Information Technology Co., Ltd. (CN)
Abstract
Embodiments of the present specification provide a method and an apparatus for generating a smart contract test case. A test case that can be parsed by the smart contract includes one or more structured parameters, and the structured parameters are used to invoke interfaces of the smart contract. If a structured parameter can be identified by an interface of the smart contract, a mutated structured parameter obtained by mutating the structured parameter based on a parameter structure of the structured parameter can also be identified by the interface of the smart contract, a test case including the mutated structured parameter can be generated, which ensures that the test case generated can be executed by the smart contract and can cover a deeper program path in the smart contract, thereby improving the efficiency of testing the smart contract.