Smart contract testing method and device

CN111581077BActive Publication Date: 2024-12-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010269488.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-08
Publication Date
2024-12-31
Estimated Expiration
2040-04-08

AI Technical Summary

Technical Problem

In blockchain networks, vulnerability detection of smart contracts is difficult to achieve, resulting in irreversible errors and affecting network reliability.

Method used

By adding a contract upgrade function to a smart contract, separating logical contracts and data contracts, upgrading contracts based on the contract content that needs to be updated, generating a second smart contract, and determining the contract upgrade function by comparing the contents of the first smart contract and the second smart contract. test results to ensure the normality of the contract upgrade function.

Benefits of technology

It improves the reliability of the blockchain network, ensures the normal application of the contract upgrade function, and enhances the security and stability of smart contracts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111581077B_ABST
    Figure CN111581077B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for testing a smart contract. The method includes: obtaining a first smart contract to be tested from a blockchain network, wherein the first smart contract includes a contract upgrade function; executing the contract upgrade function based on the contract content that needs to be updated to upgrade the first smart contract and obtain a second smart contract; and determining the test result of the contract upgrade function based on the content included in the first smart contract and the content included in the second smart contract. The technical solution of the embodiment of the present application tests the contract upgrade function in the smart contract, realizes the upgrade test of the smart contract, and then after the upgrade test of the smart contract passes, the smart contract can be applied to the blockchain network, thereby improving the reliability of the blockchain network.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Intelligent contract upgrading method based on permission chain

    CN106709704A

  • Blockchain smart contract update method and apparatus, and device

    CN108833398A

  • Intelligent contract upgrading method, system and device and computer storage medium

    CN109445820A

  • Intelligent contract upgrading method and device, block chain node equipment and medium

    CN110018840A

  • Alliance chain-based smart contract upgrading method and system

    WO2019037561A1