Method for upgrading smart contract in blockchain system

A smart contract and blockchain technology, applied in the blockchain field, can solve the problems of leaving interfaces, status data of old contracts cannot be migrated, and huge losses, etc., to achieve the effect of ensuring security and simple upgrade solutions
CN108196872AInactive Publication Date: 2018-06-22邵美

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
邵美
Publication Date
2018-06-22
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The present invention discloses a method for upgrading a smart contract in a blockchain system. The method comprises the following steps: A. at a language level, enabling a contract to directly read and write state variables in another contract under the premise of complying with security constraints, and when the code is running, providing a separate storage area for the state variables through the nebula chain virtual machine NVM for direct access by other contracts; B. providing a shared keyword at the language level, wherein the state variables modified by using the keyword can be accessedby other contracts; and C. translating the shared keyword defined by the language level into a pre-defined completed function by the corresponding compiler front end, and generating the underlying virtual machine LLVM byte code. According to the upgrade mechanism provided by the upgrade method of the present invention, the security of the smart contract can be ensured while solving the smart contract upgrade problem.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to blockchain technology, in particular to a method for upgrading smart contracts in a blockchain system. Background technique

[0002] The current blockchain technology is considered to be the next-generation disruptive core technology after the steam engine, electricity, and the Internet. If the steam engine has released people's productivity, electricity has solved people's basic living needs, and the Internet has completely changed the way information is transmitted, then the blockchain, as a machine for constructing trust, may completely change the way the value of the entire human society is transmitted.

[0003] Blockchain technology (Blockchain Technology, BT) is an Internet database technology, which is characterized by decentralization, openness and transparency, allowing everyone to participate in database records. The basic concepts of the blockchain include: Transaction, an operation that leads to a change in...

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