Supercharge Your Innovation With Domain-Expert AI Agents!

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

A smart contract and blockchain technology, applied in electrical components, software deployment, transmission systems, etc., to achieve the effect of improving user experience

Active Publication Date: 2019-07-16
SHENZHEN THUNDER NETWORK TECH +1
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of this application is to provide a smart contract upgrade method, device, blockchain node device, and computer-readable storage medium, aiming to solve the problem caused by the existence of two different contract addresses, the old and the new, in the process of upgrading the smart contract as much as possible. Users need to complete various problems caused by the replacement of the old and new contract addresses by themselves

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
  • Intelligent contract upgrading method and device, block chain node equipment and medium
  • Intelligent contract upgrading method and device, block chain node equipment and medium
  • Intelligent contract upgrading method and device, block chain node equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] See figure 1 , figure 1 A flow chart of a smart contract upgrade method provided in the embodiment of this application, which includes the following steps:

[0074] S101: Obtain a smart contract upgrade request;

[0075] This step is to obtain smart contract upgrade requests for subsequent smart contract upgrades.

[0076] One method of obtaining the smart contract upgrade request includes but is not limited to: obtaining the smart contract upgrade request from the blockchain data pool in the blockchain network. Since the blockchain network is usually used to store transaction data, the blockchain data pool is also commonly referred to as a transaction data pool. Among them, various requests initiated by users uploaded by each blockchain node device will be aggregated into the data pool. When it is necessary to upgrade an old smart contract that has been deployed on the blockchain network to When a new smart contract is created, the upgrade party will initiate a sma...

Embodiment 2

[0089] See figure 2 , figure 2The flow chart of another smart contract upgrade method provided by the embodiment of this application is different from the first embodiment. From the perspective of considering the security of smart contract upgrades, this embodiment adds the smart contract upgrade method on the basis of the first embodiment. The legality verification steps of the upgrade request, and a specific implementation method is given, including the following steps:

[0090] S201: Obtain a smart contract upgrade request;

[0091] S202: Determine the old contract address of the replaced old smart contract according to the smart contract upgrade request, and obtain the new contract code of the new smart contract from the smart contract upgrade request;

[0092] S203: Verify whether the smart contract upgrade request is legal, if so, execute S205, otherwise execute S204;

[0093] In this embodiment, the verification of the legitimacy of the smart contract upgrade reque...

Embodiment 3

[0099] See image 3 , image 3 It is a flow chart of a user ID-based upgrade request legality verification method in the smart contract upgrade method provided by the embodiment of this application. On the basis of the second embodiment, this embodiment provides a specific method for upgrading the smart contract. The method for requesting legality verification includes the following steps:

[0100] S301: Verify that the user ID who initiated the smart contract upgrade request is consistent with the user ID who deployed the old smart contract, if so, execute S302, otherwise execute S303;

[0101] S302: Determine that the smart contract upgrade request is legal;

[0102] S303: Determine that the smart contract upgrade request is not legal.

[0103] It can be seen from the above content that this application provides a method for judging whether the smart contract upgrade request is legal based on the user ID, that is, by judging the user who initiated the smart contract upgra...

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 discloses an intelligent contract upgrading method, which aims to solve the replacement problem caused by new and old contract addresses in the prior art. According to the invention, thenew intelligent contract is not deployed under a new contract address again, instead, the corresponding relation between the old contract address of the old intelligent contract and the new contractcode of the new intelligent contract is newly increased. Due to the chain characteristics between blocks in the blockchain, when an intelligent contract is called, the corresponding relation can be found in the nearest block all the time; the smart contract corresponding to the latest contract code can be called all the time, and the contract address is not changed due to the fact that only the corresponding relation is changed, so that a user does not need to carry out replacement operation, the uncontrollable factor that the user carries out address replacement is eliminated from the source,and the use experience of the user is improved. The invention further discloses an intelligent contract upgrading device, block chain node equipment and a computer readable storage medium which havethe above beneficial effects.

Description

technical field [0001] The present application relates to the field of smart contracts under blockchain technology, and in particular to a smart contract upgrade method, device, blockchain node equipment, and computer-readable storage medium. Background technique [0002] With the increase of the amount of data, more and more problems have been exposed in the traditional centralized data management model, such as single node failure, scalability, maintenance, etc. are all important issues that restrict the further development of traditional centralization. Therefore, in order to solve these problems caused by centralization, the blockchain technology based on the concept of decentralization has gradually entered the field of vision of the majority of users. [0003] Blockchain technology was originally used to record every bitcoin transaction in the Bitcoin network, which is a bookkeeping mechanism. With the development of technology, Ethereum has greatly expanded the blockc...

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
IPC IPC(8): G06F8/65H04L29/06
CPCG06F8/65H04L63/12
Inventor 周茂青
Owner SHENZHEN THUNDER NETWORK TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More