Unlock instant, AI-driven research and patent intelligence for your innovation.

Smart contract testing method, computer-readable storage medium and testing terminal

A technology of smart contracts and testing methods, applied in the field of blockchain, can solve problems such as low efficiency and cumbersome testing process steps of smart contracts, and achieve the effect of guaranteeing effectiveness, improving development efficiency, and simplifying the testing process.

Active Publication Date: 2022-03-04
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides a smart contract testing method, a computer-readable storage medium, and a testing terminal to solve the problems of cumbersome and inefficient testing procedures of smart contracts in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Smart contract testing method, computer-readable storage medium and testing terminal
  • Smart contract testing method, computer-readable storage medium and testing terminal
  • Smart contract testing method, computer-readable storage medium and testing terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0042] see figure 1 , an embodiment of a smart contract testing method in the embodiment of the present invention may include:

[0043] In step S101, the smart contract to be tested is loaded into the offline testing environment.

[0044] In the embodiment of the present invention, the offline test environment is an operating environmen...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the technical field of block chains, and in particular relates to a test method for an intelligent contract, a computer-readable storage medium and a test terminal. The test method includes: loading the smart contract to be tested into an offline test environment, wherein the offline test environment is an operating environment obtained by simulating the block chain environment in which the smart contract actually operates; Compile the contract to obtain an executable file; execute the executable file to generate the service of the smart contract; call the service and provide trigger data to trigger the smart contract to run in the offline test environment; The smart contract running in the offline test environment is tested. The invention can simplify the testing process of the smart contract and is beneficial to improving the development efficiency of the smart contract.

Description

technical field [0001] The invention belongs to the technical field of block chains, and in particular relates to a test method for an intelligent contract, a computer-readable storage medium and a test terminal. Background technique [0002] Smart Contract is a computer protocol designed to disseminate, verify or execute contracts in an informational manner, which allows trusted transactions without third parties, which are traceable and irreversible. Currently, under the blockchain structure, smart contracts need to run in an isolated sandbox, for example, the smart contracts of Hyperledger need to run in Docker containers. [0003] Due to the complexity and diversity of business scenarios, smart contracts need to meet Turing completeness, so they may have extremely complex business logic. In order to ensure the quality of smart contracts, testing the released smart contracts is an essential link. At present, the process of testing smart contracts is generally as follows:...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3688
Inventor 谢丹力陈飞宦鹏飞
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN