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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com