首页> 外国专利> Permission-controlled smart contract upgrade method based on smart contract

Permission-controlled smart contract upgrade method based on smart contract

机译:基于智能合约的权限控制智能合约升级方法

摘要

The present disclosure provides a permission-controlled smart contract upgrade method based on a smart contract. The method first deploys a contract upgrade smart contract, and then deploys a smart contract to be upgraded including information of contract participants and information of a required minimum number of agreements on passing a proposal related to the contract. Then any of the blockchain nodes receives a contract upgrade proposal submitted by a user to the contract upgrade smart contract, the contract upgrade proposal carrying an address of the smart contract to be upgraded and binary information of a new contract. After the contract upgrade smart contract determines to pass the proposal, a proposing event is generated and then is forwarded to each user client participating in the contract. After the client receives the proposing event, the client receives user's vote and feeds it back to the contract upgrade smart contract. If the number of agreements exceeds the required minimum number of agreements, the proposal is passed and employed, and a binary replacement is performed to complete upgrade of the smart contract. The present disclosure solves a problem of centralization of the traditional contract upgrade, solves a problem of single point of failure, and improves a security of contract upgrade.
机译:本发明提供了一种基于智能合约的权限控制智能合约升级方法。该方法首先部署一个合同升级智能合同,然后部署一个要升级的智能合同,包括合同参与者的信息和通过与合同相关的提案所需的最少协议数的信息。然后,任何区块链节点都会收到用户提交给合约升级智能合约的合约升级建议,该合约升级建议包含要升级的智能合约的地址和新合约的二进制信息。合同升级智能合同确定通过提案后,将生成提案事件,然后转发给参与合同的每个用户客户端。在客户端收到提议事件后,客户端接收用户投票并将其反馈给合同升级智能合同。如果协议数量超过所需的最小协议数量,则通过并使用该提案,并执行二进制替换以完成智能合约的升级。本发明解决了传统合同升级的集中化问题,解决了单点故障问题,提高了合同升级的安全性。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号