# US 2020/0394032 A1 · Permission-controlled smart contract upgrade method based on smart contract

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394032 A1
- Document ID: US20200394032A1
- Status: Published application
- Kind: A1
- Application number: 16/762,154
- Filed: 2019-08-30
- Published: 2020-12-17
- Earliest claimed: 2018-10-24
- Assignees: Hangzhou Qulian Technology Co., Ltd.
- Applicants: Hangzhou Qulian Technology Co.,Ltd.
- Inventors: Wei LI; Weiwei QIU; Keting YIN; Qilei LI; Jialei RONG; Zhiqiang WU
- Web page: https://patentgrep.com/patent/US20200394032A1

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06Q 10/10: Office automation; Time management
- G06Q 20/405: {Establishing or using transaction specific rules}
- G06Q 30/0185: {Product, service or business identity fraud}
- G06Q 50/18: Legal services
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F 2221/033: Test or assess software
- G06Q 2230/00: Voting or election arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided is a permission-controlled smart contract upgrade method. The method deploys a contract upgrade smart contract, and deploys a smart contract to be upgraded including information of contract participants and a required minimum number of agreements on passing a proposal related to the contract. Any of the blockchain nodes receives a contract upgrade proposal submitted by user to the smart contract, the proposal carrying address of the contract to be upgraded and binary information of a new contract. After the smart contract determines to pass the proposal, a proposing event is generated and forwarded to each user client participating in the contract. After the client receives the event, the client receives user's vote and feeds back to the smart contract. If the number of agreements exceeds the required minimum number, the proposal is passed and employed, and a binary replacement is performed to complete upgrade of the smart contract.

## Claims

### Claim 1

A permission-controlled smart contract upgrade method based on a smart contract, applied in a blockchain, the blockchain comprising a plurality of blockchain nodes and a plurality of clients,
wherein the method comprises steps of:
step S1 of deploying a contract upgrade smart contract to the blockchain;
step S2 of deploying a smart contract to be upgraded to the blockchain, the smart contract to be upgraded comprising information of contract participants and information of a required minimum number of agreements on passing a proposal related to the contract;
step S3 of receiving, by one of the plurality of blockchain nodes, 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; checking, by the contract upgrade smart contract, whether the address of the smart contract to be upgraded is legitimate and whether a proposal initiator of the smart contract to be upgraded is one of the contract participants, and confirming whether the address and the proposal initiator are legitimate; refusing, by the contract upgrade smart contract, the upgrade when the address or the proposal initiator is illegitimate; and generating, by the contract upgrade smart contract, a contract upgrade proposal proposing event and forwarding the event to each of a plurality of user clients participating in the contract when the address and the proposal initiator are both legitimate;
step S4 of after obtaining the contract upgrade proposal proposing event, receiving, by each of the plurality of user clients, voting information of a corresponding user based on corresponding information, and feeding back, by each of the plurality of user clients, the voting information to the contract upgrade smart contract;
S5: collecting, by the contract upgrade smart contract, a number of agreements; and determining that the proposal is passed, generating a passing event and notifying all of the plurality of the blockchain nodes when the number of agreements exceeds the required minimum number of agreements, or determining that the proposal is abandoned with no upgrade when an insufficient number of agreements has been collected within a time limit; and
S6: performing, by each of the plurality of blockchain nodes, a binary replacement to complete upgrade of the smart contract.

### Claim 2 (depends on 1)

The permission-controlled smart contract upgrade method based on a smart contract according to claim 1, wherein the contract upgrade smart contract simultaneously processes upgrade proposals of multiple contracts by adding mappings and processes in such a manner that only one upgrade proposal of one contract is processed at one time.

### Claim 3 (depends on 1)

The permission-controlled smart contract upgrade method based on a smart contract according to claim 1, wherein in the step S3, said checking, by the contract upgrade smart contract, whether the proposal initiator is one of the contract participants, comprises retrieving, using an internal contract, information of the contract participants based on the address of the smart contract to be upgraded.

### Claim 4 (depends on 1)

The permission-controlled smart contract upgrade method based on a smart contract according to claim 1, wherein the information of contract participants of the smart contract to be upgraded and the information of the required minimum number of agreements on passing the proposal related to the contract are also capable of being updated by voting on proposals to adapt to an increase or a decrease of contract users.

### Claim 5 (depends on 1)

The permission-controlled smart contract upgrade method based on a smart contract according to claim 1, wherein in said step S2 of deploying the smart contract to be upgraded, the information of contract participants of the smart contract to be upgraded and the information of the required minimum number of agreements on passing a proposal related to the contract need to be redundantly backed up in each of the plurality of blockchain nodes.
