CN112118133B - Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data - Google Patents

Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data Download PDF

Info

Publication number
CN112118133B
CN112118133B CN202010952867.2A CN202010952867A CN112118133B CN 112118133 B CN112118133 B CN 112118133B CN 202010952867 A CN202010952867 A CN 202010952867A CN 112118133 B CN112118133 B CN 112118133B
Authority
CN
China
Prior art keywords
data
contract
request
upgrade
ethernet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010952867.2A
Other languages
Chinese (zh)
Other versions
CN112118133A (en
Inventor
徐强
冯宏伟
张博
刘铜
田文丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yi'an Ruilong Technology Co ltd
Original Assignee
Beijing Yi'an Ruilong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yi'an Ruilong Technology Co ltd filed Critical Beijing Yi'an Ruilong Technology Co ltd
Priority to CN202010952867.2A priority Critical patent/CN112118133B/en
Publication of CN112118133A publication Critical patent/CN112118133A/en
Application granted granted Critical
Publication of CN112118133B publication Critical patent/CN112118133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method for facilitating quick upgrade of an intelligent contract of an Ethernet based on custom structure data, which comprises the following steps: s1, creating two intelligent contracts, namely a data contract and a function contract, wherein the data contract provides a character string array with a mapping index and is used for storing custom structure data; s2, forming a character string by standardization of the custom data structure, and storing the character string into a data contract; accessing the data contract, obtaining the character string, and restoring the character string into a custom data structure through inverse standardization; the user updates the data structure of the data contract by redefining the data structure, and the access efficiency can be improved by redefining the standardized and inversely standardized processes; s3, the function contract provides an access interface for the user by accessing the data contract, and the contract part of functions can be upgraded by replacing the function contract.

Description

Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data
Technical Field
The invention relates to the field of intelligent contracts of blockchain, in particular to a method for facilitating quick upgrade of intelligent contracts of an Ethernet based on custom structure data.
Background
Ethernet (ethernet) is an open source, intelligent contract-enabled public blockchain platform that handles point-to-point contracts by providing a de-centralized ethernet virtual machine (Ethereum Virtual Machine) with its dedicated cryptocurrency ethernet (ETH for short).
In the prior art, the method for updating the data structure of the intelligent contract in the blockchain network mainly inherits the data structure contract to ensure that the historical data is not lost while updating the data structure. However, the following problems exist in the prior art:
1) Proxy contracts, logic contracts and data structure contracts are needed to be used, and the proxy contracts and the logic contracts need to inherit the data structure contracts, so that the structure is complex and difficult to understand, and the deployment and upgrading difficulties are increased.
2) The data structure is stored in the contract, resulting in the contract having to be upgraded each time the user wants to modify the data structure.
3) The data structures are stored in contracts, so the data structures must be designed before the contracts are deployed.
Disclosure of Invention
The invention aims at least solving the technical problems in the prior art, and particularly creatively provides a method for facilitating quick updating of an intelligent contract of an Ethernet based on custom structure data.
In order to achieve the above object of the present invention, the present invention provides a method for facilitating the rapid upgrade of an intelligent contract of an ethernet based on custom structure data, comprising the steps of:
s1, creating two intelligent contracts, namely a data contract and a function contract, wherein the data contract provides a character string array with a mapping index and is used for storing custom structure data;
s2, forming a character string by standardization of the custom data structure, and storing the character string into a data contract; accessing the data contract, obtaining the character string, and restoring the character string into a custom data structure through inverse standardization; the user updates the data structure of the data contract by redefining the data structure, and the access efficiency can be improved by redefining the standardized and inversely standardized processes;
s3, the function contract provides an access interface for the user by accessing the data contract, and the contract part of functions can be upgraded by replacing the function contract.
Preferably, the method further comprises:
s1-1, receiving an intelligent contract upgrading request from a block chain node through a Taifang server, establishing a custom structure data request unit for upgrading the intelligent contract, and setting access information in the request unit;
s1-2, reserving a storage address for access information of an Ethernet server; and storing the access information, the storage address and the intelligent contract character string which is about to establish the upgrading relation.
S1-3, performing character string definition on the data contracts in the intelligent contracts, constructing a file ID set, a file name set, a file type set and a file storage capacity set data structure,
s1-4, forming a standardized form of a function contract in the intelligent contract, and integrating a file ID set, a file name set, a file type set and a file storage capacity set data structure into a value-json standard data structure;
s1-5, compiling the data contracts and the function contracts to obtain byte numbers of the contracts to be deployed and storage address space record information of the conversion character strings, after the record information of the data contracts and the function contracts is stored, carrying out intelligent contract upgrading identification remarks, feeding back to an Ethernet server to initiate deployment of intelligent contract upgrading requests, converting the storage states of the intelligent contract records into key values for storage through a function entry address table and a data standardization record set of the intelligent contracts,
s1-6, the Ethernet server authenticates data contracts and function contract addresses in the intelligent contracts, aims to propagate, verify or execute network protocols of intelligent contract quick upgrades in an informationized mode, verifies the network protocols of the intelligent contract quick upgrades as a plug-in module of the data contracts and the function contracts according to intelligent contract upgrading requirements, and deploys the assignment requirements of the quick upgrades so as to update self-defined structural data;
s1-7, writing the intelligent contract upgrading scheme on an Ethernet server, and setting an intelligent contract storage address of the verification upgrading scheme; the intelligent contract storage address parameter is set as an access address of an Ethernet server, when the Ethernet server receives the intelligent contract deployment request, the intelligent contract storage address of the verification upgrade scheme is obtained,
s1-8, the Ethernet server acquires event information of an intelligent contract upgrading event to be executed, and generates an event request according to the event information; and mapping the storage addresses of the file ID set, the file name set, the file type set and the file storage capacity set data structure integrated in the value-json standard data structure in the intelligent contract on the Ethernet server, and after finishing deploying the verification logic of the verification upgrading scheme, initiating an instruction to be upgraded on the Ethernet server.
Preferably, the method comprises the steps of:
s2-1, a data contract acquires an upgrade request from an Ethernet server, prepares a data structure in a character string form after receiving upgrade request information each time, and performs authentication verification on the upgrade request; generating an event structure body of an upgrade request, and performing authentication verification according to the event structure body called by a request address of an Ethernet server; after the event structure body is verified by the data contract authentication, a data structure in the form of a character string is built according to the upgrading request in the event structure body, and a preset upgrading operation is executed on the upgrading request through the authentication verification process;
s2-2, when the Ethernet server receives a corresponding character string created when an upgrade event request is received, mapping a file ID set, a file name set, a file type set and a file storage capacity set data structure of file data to be upgraded in the event structure body;
s2-3, if the character string data structure in the upgrade request corresponds to the data with the upgrade file, executing instructions of the upgrade request are carried out, if the character string data structure does not correspond to the data with the upgrade file, executing instructions of the upgrade request are not carried out, an upgrade request redundancy threshold is established, if the redundancy threshold is exceeded, a data contract is returned for reauthentication verification, and otherwise, the upgrade request is continuously executed;
s2-4, performing verification work of the data contract by using the updated function contract, and when the Ethernet server executes the upgrade request, classifying the task of updating the structure data in the updated function contract, and deleting the function contract defined before from the Ethernet server; in the function contract deleting operation, a deleting result is broadcast to each Ethernet server, so that the Ethernet server on the block chain is formed, the function contract deleting operation is executed, and the function contract deleting operation is prevented from being repeatedly executed for a plurality of times.
S2-5, the Ethernet server carries out the coverage operation of the function contracts defined before by using the updated function contracts with the upgrade request to be executed, if the coverage operation fails to check, the Ethernet server notes the upgrade request from the Ethernet server until the coverage operation checks successfully, and the formed data contract character string form structure data is used as intelligent contract upgrade information, and the Ethernet server generates an event structure according to the upgrade information, and the event structure comprises: the intelligent contract matching process is completed through the data structures of the file ID set, the file name set, the file type set and the file storage capacity set after the function contract is updated.
Preferably, the method comprises the steps of:
s3-1, the intelligent contract can upgrade and finish the quick upgrade process of the Ethernet server through a data contract and function contract verification scheme by executing an upgrade request of the Ethernet server and broadcasting the upgrade request to any node of a block chain, and the event structure is verified by calling the verification upgrade request through a verification logical address to realize the upgrade request of the intelligent contract; the upgrade request can change the content and the capacity of the upgrade request according to different upgrade times of the intelligent contract, and the data contract and the verification logic with the upgradeable function contract are updated by assigning values to the verification logic variables, so that the upgrade request is flexibly updated without switching to a new intelligent contract;
s3-2, the execution sequence of the upgrade requests in the upgrade process is sequentially arranged according to the request time, the execution sequence is determined according to the specific content of the upgrade requests, and an intelligent contract deployment request is generated according to the contract address by acquiring the intelligent contract address of the Ethernet server in the upgrade request;
s3-3, through a deployment upgrade request receiving module 71, an intelligent contract deployment request sent by the Ethernet front-end server is received, and a contract address of the verification scheme upgradeable wallet is obtained;
s3-4, accessing the intelligent contract address of the Ethernet server by deploying the intelligent contract upgrading request, and broadcasting whether to upgrade to other Ethernet servers; for the intelligent contract upgrading update request, receiving a verification logic update request sent by the Ethernet server to obtain a verification logic address; generating an event structure body by receiving an upgrade request sent by the Ethernet server, and calling a verification scheme according to the verification logical address to carry out authentication verification on the event structure body;
if the event structure body verification fails, deleting the upgrading request from the Ethernet server address; the event structure body is an information body created by the Ethernet server according to the data contract and the function contract of the upgrade request; and calling an upgrade request according to the verification logical address, and checking the event structure body to realize intelligent contract upgrade authentication check of the Ethernet server.
Preferably, the method further comprises:
s4-1, performing intelligent contract upgrading request by receiving the intelligent contract upgrading request from the Ethernet server, wherein the intelligent contract upgrading request comprises upgrading request of data contracts and function contracts;
s4-2, searching an issuing address of an intelligent contract upgrading request with an Ethernet server in a blockchain network, calling the issuing address of the intelligent contract upgrading request, inputting parameters and storage contents of character string structure data in a data contract and a function contract in the intelligent contract, sending upgrading interface data for the Ethernet server through executing upgrading request information, describing upgrading request information in a blockchain protocol type UTXO (Unspent TransactionOutput, unexpired transaction output) model and different blockchain protocols according to different upgrading request formats, including upgrading request description information in an upgrading request script of the UTXO model, receiving description information of the structure data of a character string in the process of deploying the upgrading interface data, realizing the upgrading request through different blockchain protocols,
s4-3, the character strings of the data contracts form hash values, sending addresses and request information of the Ethernet server of the structural data, the progress of the upgrading request can be inquired in the execution process of the Ethernet server, and the progress of the upgrading request is returned to the Ethernet server when the data contracts and the function contract requests are executed.
Preferably, the method further comprises:
through the structure data standardization structure M of the character string of the intelligent contract as input, outputting whether the intelligent contract indicated by the upgrade request has upgrade request errors or not; forming character string structure data of the data contract and update data of the function contract by calculating an upgrade request label of M;
the method comprises the steps that a standardized structure M= { S, L and V }, wherein S is an upgrade address set of an intelligent contract of an Ethernet server, L is a data contract character string set, V is a critical state set for updating a function contract, and V1 and V2 respectively represent a start state node and an end state node for updating in the updating process of the function contract;
and updating and adjusting V through a deviation vector b by cascade operation, converting the V into an updating request aggregated by any Ethernet server in the blockchain node to update a function contract, traversing all the Ethernet servers in the blockchain node which are in an updating request state, labeling the Ethernet servers with the updating request, and mapping to the Ethernet servers with the intelligent contract updating completion.
Preferably, the method comprises the steps of:
and carrying out standardization processing on the character strings of the data contract by using the structure data to obtain the standardized structure data with the training completion, wherein the specific standardized structure data comprises the following components: the method comprises the steps that through an upgrade request time message neural network, variable information of a structural data transmission is assigned, and the designed neural network is in two stages to form character string structural data of a data contract and update data of a function contract; sequentially transmitting information along the upgrade request, rolling back the upgrade request of the intelligent contract of the Ethernet server in the beginning and ending time periods, fusing the progress of the upgrade request to the integrated intelligent contract upgrade request data set in the process of the intelligent contract upgrade request of the next Ethernet server, standardizing to obtain a standardized graph structure of the intelligent contract upgrade request, taking the standardized graph structure of the intelligent contract upgrade request as the input of a custom structure data neural network, and outputting the running state of the intelligent contract upgrade request of the Ethernet server.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
the quick updating of the data structure stored in the intelligent Ethernet contract is realized through the standardized/inverse standardized rules of the custom data structure.
By the method, the data structure stored in the intelligent contract of the Ethernet is updated rapidly.
Deploying an upgrade request for the intelligent Ethernet contract to obtain a contract address, and completing quick upgrade from deploying the data contract to the function contract according to the contract address; in the process of verification and upgrading, the data contracts of the intelligent Ethernet contracts are subjected to character string matching, an updating request is generated according to the character string verification address, definition operation is performed through structural data, and the upgrading process is updated to the verification logical address through the verification logical variable, so that the Ethernet upgrading operation is realized rapidly.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a general schematic of the present invention;
FIG. 2 is a schematic diagram of an embodiment of the present invention;
fig. 3 is a flow chart of the operation of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
When structured data is stored in an ethernet intelligent contract, there is always a problem that the data structure is difficult to upgrade due to the characteristics of the blockchain. The present invention provides a fast method to solve such problems.
Complete scheme
1) As shown in fig. 1, two smart contracts are created, a data contract and a function contract, the data contract provides a character string array with mapping index (the index is easy to realize) for storing data, and the function contract provides service for users by accessing the data contract.
fileID fileName fileType fileSize
001 contract.txt text 20k
026 film.mp4 mpeg 100m
042 novel.pdf pdf 10m
TABLE 1 data structure
Figure BDA0002677604810000071
Figure BDA0002677604810000081
TABLE 2 data normalization form (using json)
2) The data contract does not provide data structure storage, but only stores strings. The user defines the data structure by himself and converts the data structure into character strings for storage, and designates an attribute for retrieval; as shown in fig. 2, the function of the user data normalization module is to normalize data to a string. For example, json may be used to convert structured data into character strings by a normalization module, table 1 is structured data for the user, and table 2 is the converted character strings and the index selected by the user. When the user obtains the string data from the contract, the data may be restored using the data inverse normalization module shown in fig. 2. Of course, the user may also select other ways and indexes of converting from the data structure to the string.
3) As shown in fig. 2, the function update is mainly performed by replacing the old function contract with the new one, and history data is not lost since the function contract does not hold data.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.

Claims (15)

1. A method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data is characterized by comprising the following steps:
s1, creating two intelligent contracts, namely a data contract and a function contract, wherein the data contract provides a character string array with a mapping index and is used for storing custom structure data;
s1-1, receiving an intelligent contract upgrading request from a block chain node through an Ethernet server, establishing a custom structure data request unit for upgrading the intelligent contract, and setting access information in the request unit;
s1-2, reserving a storage address for access information of an Ethernet server; storing access information, a storage address and an intelligent contract character string to be established with an upgrade relation;
s1-3, performing character string definition on the data contracts in the intelligent contracts, constructing a file ID set, a file name set, a file type set and a file storage capacity set data structure,
s1-4, forming a standardized form of a function contract in the intelligent contract, and integrating a file ID set, a file name set, a file type set and a file storage capacity set data structure into a value standard data structure;
s1-5, compiling the data contracts and the function contracts to obtain byte numbers of the contracts to be deployed and storage address space record information of the conversion character strings, after the record information of the data contracts and the function contracts is stored, carrying out intelligent contract upgrading identification remarks, feeding back to an Ethernet server to initiate deployment of intelligent contract upgrading requests, converting the storage states of the intelligent contract records into key values for storage through a function entry address table and a data standardization record set of the intelligent contracts,
s1-6, the Ethernet server authenticates data contracts and function contract addresses in the intelligent contracts, aims to propagate, verify or execute network protocols of intelligent contract quick upgrades in an informationized mode, verifies the network protocols of the intelligent contract quick upgrades as a plug-in module of the data contracts and the function contracts according to intelligent contract upgrading requirements, and deploys the assignment requirements of the quick upgrades so as to update self-defined structural data;
s1-7, writing the intelligent contract upgrading scheme on an Ethernet server, and setting an intelligent contract storage address of the verification upgrading scheme; the intelligent contract storage address parameter is set as an access address of an Ethernet server, when the Ethernet server receives the intelligent contract deployment request, the intelligent contract storage address of the verification upgrade scheme is obtained,
s1-8, the Ethernet server acquires event information of an intelligent contract upgrading event to be executed, and generates an event request according to the event information; mapping a storage address of a file ID set, a file name set, a file type set and a file storage capacity set data structure integrated in a value standard data structure in an intelligent contract on an Ethernet server, and after finishing deploying verification logic of the verification upgrading scheme, initiating an instruction to be upgraded on the Ethernet server;
s2, forming a character string by standardization of the custom data structure, and storing the character string into a data contract; accessing the data contract, obtaining the character string, and restoring the character string into a custom data structure through inverse standardization; the user updates the data structure of the data contract by redefining the data structure, and the access efficiency can be improved by redefining the standardized and inversely standardized processes;
s3, the function contract provides an access interface for the user by accessing the data contract, and the contract part of functions can be upgraded by replacing the function contract.
2. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 1, further comprising:
s2-1, a data contract acquires an upgrade request from an Ethernet server, prepares a data structure in a character string form after receiving upgrade request information each time, and performs authentication verification on the upgrade request; generating an event structure body of an upgrade request, and performing authentication verification according to the event structure body called by a request address of an Ethernet server; after the event structure body is verified through data contract authentication, a data structure in the form of a character string is built according to the upgrading request in the event structure body, and preset upgrading operation is executed on the upgrading request through the verification process.
3. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 2, further comprising:
s2-2, when the Ethernet server receives a corresponding character string created when an upgrade event request is received, mapping a file ID set, a file name set, a file type set and a file storage capacity set data structure of file data to be upgraded in the event structure body.
4. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 3, further comprising:
s2-3, if the character string data structure in the upgrade request corresponds to the file data to be upgraded, executing instructions of the upgrade request are carried out, if the character string data structure does not correspond to the file data to be upgraded, executing instructions of the upgrade request are not carried out, an upgrade request redundancy threshold is established, if the redundancy threshold is exceeded, a data contract is returned for reauthentication verification, and otherwise, the upgrade request is continuously executed.
5. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 4, further comprising:
s2-4, performing verification work of the data contract by using the updated function contract, and when the Ethernet server executes the upgrade request, classifying the task of updating the structure data in the updated function contract, and deleting the function contract defined before from the Ethernet server; in the function contract deleting operation, a deleting result is broadcast to each Ethernet server, so that the Ethernet server on the block chain is formed, the function contract deleting operation is executed, and the function contract deleting operation is prevented from being repeatedly executed for a plurality of times.
6. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 5, further comprising:
s2-5, the Ethernet server carries out the coverage operation of the function contracts defined before by using the updated function contracts with the upgrade request to be executed, if the coverage operation fails to check, the Ethernet server notes the upgrade request from the Ethernet server until the coverage operation checks successfully, and the formed data contract character string form structure data is used as intelligent contract upgrade information, and the Ethernet server generates an event structure according to the upgrade information, and the event structure comprises: the intelligent contract matching process is completed through the data structures of the file ID set, the file name set, the file type set and the file storage capacity set after the function contract is updated.
7. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 6, comprising:
s3-1, the intelligent contract can upgrade and finish the quick upgrade process of the Ethernet server through a data contract and function contract verification scheme by executing an upgrade request of the Ethernet server and broadcasting the upgrade request to any node of a block chain, and the event structure is verified by calling the verification upgrade request through a verification logical address to realize the upgrade request of the intelligent contract; the upgrade request can change the content and the capacity of the upgrade request according to different upgrade times of the intelligent contracts, and the data contract and the verification logic which can be upgraded by the function contract are updated by assigning values to the verification logic variables, so that the upgrade request is flexibly updated without switching to a new intelligent contract.
8. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 7, further comprising:
s3-2, the execution sequence of the upgrade requests in the upgrade process is sequentially arranged according to the request time, the execution sequence is determined according to the specific content of the upgrade requests, and an intelligent contract deployment request is generated according to the contract address by acquiring the intelligent contract address of the Ethernet server in the upgrade request.
9. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 8, further comprising:
s3-3, through a deployment upgrade request receiving module, the intelligent contract deployment request sent by the Ethernet front-end server is received, and the contract address of the upgradeable wallet of the verification scheme is obtained.
10. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 9, further comprising:
s3-4, accessing the intelligent contract address of the Ethernet server by deploying the intelligent contract upgrading request, and broadcasting whether to upgrade to other Ethernet servers; for the intelligent contract upgrading update request, receiving a verification logic update request sent by the Ethernet server to obtain a verification logic address; generating an event structure body by receiving an upgrade request sent by the Ethernet server, and calling a verification scheme according to the verification logical address to carry out authentication verification on the event structure body;
if the event structure body verification fails, deleting the upgrading request from the Ethernet server address; the event structure body is an information body created by the Ethernet server according to the data contract and the function contract of the upgrade request; and calling an upgrade request according to the verification logical address, and checking the event structure body to realize intelligent contract upgrade authentication check of the Ethernet server.
11. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 10, further comprising:
s4-1, performing intelligent contract upgrading request by receiving the intelligent contract upgrading request from the Ethernet server, wherein the intelligent contract upgrading request comprises upgrading request of data contracts and function contracts.
12. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 11, further comprising:
s4-2, searching an issuing address of an intelligent contract upgrading request with an Ethernet server in a blockchain network, calling the issuing address of the intelligent contract upgrading request, inputting parameters and storage contents of character string structure data in a data contract and a function contract in the intelligent contract, sending upgrading interface data for the Ethernet server through executing upgrading request information, wherein the described upgrading request information is different in format in upgrading requests of different blockchain protocols according to a blockchain protocol type UTXO model, upgrading request description information is included in an upgrading request script of the UTXO model, and the upgrading request is realized through different blockchain protocols after deploying the description information of the structure data of an upgrading interface data receiving character string.
13. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 12, further comprising:
s4-3, the character strings of the data contracts form hash values, sending addresses and request information of the Ethernet server of the structural data, the progress of the upgrading request can be inquired in the execution process of the Ethernet server, and the progress of the upgrading request is returned to the Ethernet server when the data contracts and the function contract requests are executed.
14. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 13, further comprising:
through the structure data standardization structure M of the character string of the intelligent contract as input, outputting whether the intelligent contract indicated by the upgrade request has upgrade request errors or not; forming character string structure data of the data contract and update data of the function contract by calculating an upgrade request label of M;
the method comprises the steps that a standardized structure M= { S, L and V }, wherein S is an upgrade address set of an intelligent contract of an Ethernet server, L is a data contract character string set, V is a critical state set for updating a function contract, and V1 and V2 respectively represent a start state node and an end state node for updating in the updating process of the function contract;
and updating and adjusting V through a deviation vector b by cascade operation, converting the V into an updating request aggregated by any Ethernet server in the blockchain node to update a function contract, traversing all the Ethernet servers in the blockchain node which are in an updating request state, labeling the Ethernet servers with the updating request, and mapping to the Ethernet servers with the intelligent contract updating completion.
15. The method for facilitating rapid upgrade of an ethernet intelligent contract based on custom structure data according to claim 14, comprising:
and carrying out standardization processing on the character strings of the data contract by using the structure data to obtain the standardized structure data with the training completion, wherein the specific standardized structure data comprises the following components: the method comprises the steps that through an upgrade request time message neural network, variable information of a structural data transmission is assigned, and the designed neural network is in two stages to form character string structural data of a data contract and update data of a function contract; sequentially transmitting information along the upgrade request, rolling back the upgrade request of the intelligent contract of the Ethernet server in the beginning and ending time periods, fusing the progress of the upgrade request to the integrated intelligent contract upgrade request data set in the process of the intelligent contract upgrade request of the next Ethernet server, standardizing to obtain a standardized graph structure of the intelligent contract upgrade request, taking the standardized graph structure of the intelligent contract upgrade request as the input of a custom structure data neural network, and outputting the running state of the intelligent contract upgrade request of the Ethernet server.
CN202010952867.2A 2020-09-11 2020-09-11 Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data Active CN112118133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010952867.2A CN112118133B (en) 2020-09-11 2020-09-11 Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010952867.2A CN112118133B (en) 2020-09-11 2020-09-11 Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data

Publications (2)

Publication Number Publication Date
CN112118133A CN112118133A (en) 2020-12-22
CN112118133B true CN112118133B (en) 2023-06-09

Family

ID=73802119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010952867.2A Active CN112118133B (en) 2020-09-11 2020-09-11 Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data

Country Status (1)

Country Link
CN (1) CN112118133B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527781B (en) * 2020-12-23 2022-07-15 上海万向区块链股份公司 Intelligent contract data migration method and system
CN113220701B (en) * 2021-05-25 2023-05-02 成都佰纳瑞信息技术有限公司 Block chain-based data structure self-adaptive change upgrading method, device, equipment and product
CN114201206A (en) * 2021-07-19 2022-03-18 南京邮电大学 Intelligent contract dynamic upgrading method based on agent contracts in block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034814A (en) * 2018-09-14 2018-12-18 百度在线网络技术(北京)有限公司 Intelligent contract treating method and apparatus based on ether mill virtual machine
CN110557384A (en) * 2019-08-12 2019-12-10 杭州云象网络技术有限公司 internet of things management control method based on block chain
CN111159301A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Data creating method, device, equipment and storage medium based on intelligent contract

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11556924B2 (en) * 2019-04-29 2023-01-17 Advanced New Technologies Co., Ltd. Blockchain-based payment withholding and agreement signing method, apparatus, and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109034814A (en) * 2018-09-14 2018-12-18 百度在线网络技术(北京)有限公司 Intelligent contract treating method and apparatus based on ether mill virtual machine
CN110557384A (en) * 2019-08-12 2019-12-10 杭州云象网络技术有限公司 internet of things management control method based on block chain
CN111159301A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Data creating method, device, equipment and storage medium based on intelligent contract

Also Published As

Publication number Publication date
CN112118133A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112118133B (en) Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data
US7296012B2 (en) Method of and apparatus for multimedia processing, and computer product
US7644055B2 (en) Rule-based database object matching with comparison certainty
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
CN110225039B (en) Authority model obtaining method, authority authentication method, gateway, server and storage medium
CN110851127B (en) Universal evidence-storing method based on blockchain
CN110866029B (en) sql statement construction method, device, server and readable storage medium
CN111026858A (en) Project information processing method and device based on project recommendation model
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
US8756205B2 (en) System and method for rule-based data object matching
CN110599175A (en) Block processing method and related equipment
CN112671734A (en) Message processing method facing multiple data sources and related equipment thereof
CN114218315A (en) Interface generation method and device, computer equipment and storage medium
CN103004135B (en) Access control method and access control server
CN110233904A (en) Equipment update method, device, system, storage medium and computer equipment
CN116360809B (en) Remote firmware upgrading method, system and medium for embedded intelligent terminal
CN111339193B (en) Category encoding method and device
CN112612802A (en) Real-time data middlebox processing method, device and platform
CN112256760A (en) Data prediction method and device, computer equipment and storage medium
CN116402491A (en) Block chain management and storage method for electronic resume data of urban rail vehicle
CN114489737A (en) Multi-firmware OTA (over the air) upgrading method and device, server and storage medium
CN112925766B (en) Data security management and control device, system and method and readable storage medium thereof
CN114626352A (en) Report automatic generation method and device, computer equipment and storage medium
CN113824703A (en) Energy system control method based on block chain and energy system
CN113536767A (en) Data processing method, device, equipment, medium and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant