CN114461347A - Block chain intelligent contract development and deployment method, device, equipment and storage medium - Google Patents

Block chain intelligent contract development and deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN114461347A
CN114461347A CN202210122618.XA CN202210122618A CN114461347A CN 114461347 A CN114461347 A CN 114461347A CN 202210122618 A CN202210122618 A CN 202210122618A CN 114461347 A CN114461347 A CN 114461347A
Authority
CN
China
Prior art keywords
intelligent contract
virtual machine
instruction
contract
code
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.)
Pending
Application number
CN202210122618.XA
Other languages
Chinese (zh)
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.)
Shanghai Zhongjian Financial Technology Co ltd
Zhejiang Geely Holding Group Co Ltd
Original Assignee
Shanghai Zhongjian Financial Technology Co ltd
Zhejiang Geely Holding Group 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 Shanghai Zhongjian Financial Technology Co ltd, Zhejiang Geely Holding Group Co Ltd filed Critical Shanghai Zhongjian Financial Technology Co ltd
Priority to CN202210122618.XA priority Critical patent/CN114461347A/en
Publication of CN114461347A publication Critical patent/CN114461347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a block chain intelligent contract development and deployment method, a device, equipment and a storage medium, wherein the block chain intelligent contract development and deployment method comprises the following steps: receiving a first instruction, and extracting a virtual machine selected from the first instruction from a preset virtual machine library; receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library; receiving a code, and compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on a contract language; running the intelligent contract bytecode on a virtual machine to obtain an intelligent contract; and testing the intelligent contract, and if the test is successful, deploying the intelligent contract on the block chain network. This application belongs to block chain technical field, provides a visual block chain intelligence contract platform, supports the intelligent contract mode of multiple virtual machine, multiple contract language, and the developer need not to switch a plurality of platforms of deploying, improves work efficiency.

Description

Block chain intelligent contract development and deployment method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain intelligent contract development and deployment method, device, equipment and storage medium.
Background
The block chain technology is a novel application mode of computer technologies such as a distributed account book technology, a consensus algorithm, an encryption algorithm and the like. The block chain technology is characterized by decentralization, openness and transparency and no tampering. For modern block chains, the development of intelligent contracts can be a milestone of block chain technology development, more powerful logic functions are provided, and business requirements of various fields can be met, so that the block chains are developed and integrated into various fields such as finance, government affair services, supply chains, games and the like from the initial single digital currency application.
The smart contracts themselves are executable programs that require development by developers to meet the needs of the users. The current blockchain platforms with more intelligent contract deployments are bitcoin, ether house and super book, and by taking the ether house as an example, a user needs to develop an intelligent contract through a solid language, compile the intelligent contract into byte codes, issue the byte codes to the blockchain platform, and run on an EVM (ether house virtual machine).
At present, the development of the intelligent contract is still in an early stage, related supporting facilities are not perfect, a user needs to learn more concepts and knowledge, the technology comprises a plurality of fields including a distributed technology, a consensus algorithm, an encryption algorithm and the like, a plurality of tools can be mastered to develop, deploy, test and run the intelligent contract, and the requirements on the mastering of a developer on the block chain network technology and the programming capability are high. The deployment platform of the existing intelligent contract only supports a single virtual machine or a single intelligent contract language, but each virtual machine and each contract language have respective applicable scenes and advantages, the prior art cannot meet the requirement that a user needs to issue intelligent contract deployment requirements related to different virtual machines and different intelligent contract languages at the same time, and developers need to use different deployment platforms when having the requirement of deploying intelligent contracts of different virtual machines and different intelligent contract languages, so that the process is complicated and the working efficiency is low.
Disclosure of Invention
The invention mainly aims to provide a block chain intelligent contract development and deployment method, device, equipment and storage medium, and aims to solve the technical problems that different deployment platforms are needed when intelligent contracts of different virtual machines and different intelligent contract languages are deployed in the prior art, the process is complicated, and the working efficiency is low.
In order to achieve the above object, the present application provides a block chain intelligent contract development and deployment method, where the block chain intelligent contract development and deployment method includes:
receiving a first instruction, and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library;
receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
running the intelligent contract byte codes on the virtual machine to obtain an intelligent contract;
and testing the intelligent contract, and if the test is successful, deploying the intelligent contract on a block chain network.
Optionally, before the step of receiving the first instruction and reading the virtual machine selected in the first instruction, the method includes:
setting a container group;
and deploying each virtual machine in the virtual machine set to a corresponding container group to obtain the preset virtual machine library, wherein the container group is deployed with all compiling tool chains and all versions of the compiling tool chains.
Optionally, the step of receiving a code, and compiling the code based on the virtual machine to obtain an intelligent contract bytecode, includes:
receiving a code, and sending the code to a container group;
and compiling the code based on the virtual machine and the compiling tool chain to obtain the intelligent contract byte code.
Optionally, the step of running the intelligent contract bytecode on the virtual machine to obtain an intelligent contract includes:
interpreting the intelligent contract bytecode into machine instructions based on the virtual machine;
and operating the machine instruction to obtain the intelligent contract.
Optionally, wherein the step of deploying the smart contracts on a blockchain network comprises:
receiving a third instruction from which to extract the blockchain network;
configuring the blockchain network;
deploying the smart contracts on the blockchain network.
Optionally, before the step of receiving the first instruction and reading the virtual machine selected in the first instruction, the method includes:
acquiring demand information;
performing demand analysis on the demand information based on a preset demand analysis model to obtain a demand suggestion;
and sending the requirement suggestion to a user side.
Optionally, before the step of acquiring the demand information, the method includes:
acquiring a training data set, wherein the training data set is demand information with a preset label;
and performing iterative training on the model to be trained based on the training data set to obtain the demand analysis model meeting the precision condition.
The present application further provides a block chain intelligent contract development and deployment device, where the block chain intelligent contract development and deployment device includes:
the first receiving module is used for receiving a first instruction and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
the second receiving module is used for receiving a second instruction and extracting a contract language selected from the second instruction from a preset contract language library;
the compiling module is used for receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
the running module is used for running the intelligent contract bytecode on the virtual machine to obtain an intelligent contract;
and the deployment module is used for testing the intelligent contract, and deploying the intelligent contract on the block chain network if the testing is successful.
The present application further provides a block chain intelligent contract development and deployment device, where the block chain intelligent contract development and deployment device includes: a memory, a processor, and a program stored on the memory for implementing the blockchain intelligent contract development deployment method,
the memory is used for storing a program for realizing the block chain intelligent contract development and deployment method;
the processor is used for executing a program for realizing the block chain intelligent contract development and deployment method so as to realize the steps of the block chain intelligent contract development and deployment method.
The application also provides a storage medium, on which a program for implementing the block chain intelligent contract development and deployment method is stored, and the program for implementing the block chain intelligent contract development and deployment method is executed by a processor to implement the steps of the block chain intelligent contract development and deployment method.
Compared with the prior intelligent contract deployment platform which only supports a single virtual machine or a single intelligent contract language and cannot meet the requirement that a user needs to issue intelligent contract deployment related to different virtual machines and different intelligent contract languages, the block chain intelligent contract development deployment method, the block chain intelligent contract development deployment device, the block chain intelligent contract deployment device and the block chain intelligent contract deployment method, the block chain intelligent contract deployment device, the block chain intelligent contract deployment equipment and the block chain intelligent contract deployment storage medium have the advantages that a first instruction is received, and a virtual machine selected from the first instruction is extracted from a preset virtual machine library; receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library; receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language; running the intelligent contract byte codes on the virtual machine to obtain an intelligent contract; the intelligent contract is tested, and if the test is successful, the intelligent contract is deployed on the block chain network, namely, in the application, a user can select a virtual machine and a contract language from multiple virtual machines and multiple contract languages of the terminal, and sends a code, so that the terminal automatically operates and deploys the intelligent contract, the difficulty of developing and deploying the intelligent contract by developers is reduced, and the working efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a block chain intelligent contract development and deployment method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compress standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compress standard Audio Layer 3) player, a portable computer, and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating device, a network communication module, a user interface module, and a blockchain smart contract development deployment program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be used to invoke a blockchain smart contract development deployment program stored in memory 1005.
Referring to fig. 2, an embodiment of the present application provides a method for developing and deploying a blockchain intelligent contract, where the method for developing and deploying a blockchain intelligent contract includes:
step S100, receiving a first instruction, and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
step S200, receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library;
step S300, receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
step S400, operating the intelligent contract bytecode on the virtual machine to obtain an intelligent contract;
and S500, testing the intelligent contract, and if the test is successful, deploying the intelligent contract on a block chain network.
In this embodiment, the specific application scenarios may be:
in the process of developing an intelligent contract, developers often have the need of deploying intelligent contracts of different virtual machines and different intelligent contract languages because each virtual machine and each contract language have respective application scenes and advantages. However, in the prior art, the requirement that a user needs to issue intelligent contract deployment related to different virtual machines and different intelligent contract languages at the same time cannot be met, and different deployment platforms need to be used. When the intelligent contracts are developed on different platforms, operations such as virtual machines need to be configured repeatedly, the process is complicated, and the working efficiency is low.
The present application is directed to: the visual block chain intelligent contract platform is provided, intelligent contract deployment modes of multiple virtual machines and multiple contract languages are supported, developers do not need to switch multiple deployment platforms, and working efficiency is improved.
The method comprises the following specific steps:
step S100, receiving a first instruction, and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
in this embodiment, the first instruction is a virtual machine input by a user, where the virtual machine may be an EVM (ethernet virtual machine), a WASM (smart contract standard virtual machine, webassemb), a V8(JavaScript engine virtual machine), or a JVM (Java virtual machine).
In this embodiment, first, a first instruction is received, where the manner of receiving the first instruction may be:
the method I comprises the following steps: if the voice instruction is detected, extracting voice information in the voice instruction, and analyzing the voice information to obtain a target first instruction;
the second method comprises the following steps: in this embodiment, an inquiry interface may be further provided, and the target first instruction is acquired based on information input on the inquiry interface.
Step S200, receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library;
in this embodiment, the second instruction is a contract language input by the user, where the contract language may be a solidity language, a C + + language, a Rust language, a golang language, a JAVA language, and the like. The manner of receiving the second instruction is the same as that of receiving the first instruction, and is not described herein again.
It should be noted that, different virtual machines support different contract languages, EVM only supports the compatibility language, WASM and V8 support the C language, C + + language, Rust language and golang language, and JVM only supports the JAVA language.
Step S300, receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
in this embodiment, the mode of receiving the code by the client may be that the user performs programming on the client based on the contract language after selecting the contract language to obtain the code, and then uploads the code to the client, or that the user copies and uploads the programmed code to the client after selecting the contract language.
In this embodiment, the code is sent to the virtual machine for compiling to obtain the intelligent contract bytecode, so that the terminal obtains the final intelligent contract program based on the intelligent contract bytecode.
Step S400, operating the intelligent contract bytecode on the virtual machine to obtain an intelligent contract;
in this embodiment, the terminal runs the intelligent contract bytecode through the running function of the virtual machine, so as to obtain a final intelligent contract program.
Specifically, the step S400 includes the following steps S410 to S420:
step S410, based on the virtual machine, interpreting the intelligent contract byte codes into machine instructions;
and step S420, operating the machine instruction to obtain the intelligent contract.
And S500, testing the intelligent contract, and if the test is successful, deploying the intelligent contract on a block chain network.
In this embodiment, if the test of the intelligent contract fails, the user may return to the code programming step, modify the intelligent contract, perform recompilation, retest, and deployment, it should be noted that, in the step after receiving the code, if the code needs to be supplemented and modified, the terminal provides a corresponding interface/channel, and returns to the code programming step.
In this embodiment, the terminal automatically operates and deploys the intelligent contract, and the difficulty of developing and deploying the intelligent contract by developers is reduced.
In this embodiment, if the intelligent contract is successfully tested, the intelligent contract may be deployed on the blockchain network to complete the development and deployment processes of the intelligent contract, so that a developer may issue the intelligent contract on a required blockchain platform.
Specifically, the step S500 includes the following steps S510 to S520:
step S510, receiving a third instruction, and extracting the blockchain network from the third instruction;
in this embodiment, the third instruction is a user-input blockchain network, wherein the blockchain network is a user-specified blockchain network. The manner of receiving the third instruction is the same as that of receiving the first instruction and the second instruction, and is not described herein again.
Step S520, configuring the block chain network;
step S530, deploying the smart contract on the blockchain network.
In the method for developing and deploying a blockchain intelligent contract provided by this embodiment, in step S100, before the step of receiving a first instruction and extracting a virtual machine selected from the first instruction from a preset virtual machine library, the method includes the following steps a100-a 200:
step A100, a container group is set;
in this embodiment, the container group is a collection of containers arranged on the same host, the containers in the container group share a lifecycle, resources, a local network, and storage volumes, and the configuration in the container group can be preserved.
Step A200, deploying each virtual machine in the virtual machine set to a corresponding container group to obtain the preset virtual machine library, wherein the container group is deployed with all compiling tool chains and all versions of the compiling tool chains.
In this embodiment, the terminal establishes a virtual machine library accommodating different virtual machines in a container group manner, where the container group deploys different versions of different compiling tool chains, thereby avoiding tedious installation and configuration performed manually by developers and switching between tool versions.
In the method for developing and deploying a blockchain intelligent contract provided by this embodiment, in step S300, receiving a code, compiling the code based on the virtual machine, and obtaining an intelligent contract bytecode, the step includes the following steps S310 to S320:
step S310, receiving a code and sending the code to a container group;
and step S320, compiling the code based on the virtual machine and the compiling tool chain to obtain the intelligent contract byte code.
In this embodiment, the container group deploys all the compiling tool chains and all versions of the compiling tool chains, which avoids the tedious installation and configuration and the switching between tool versions performed manually by developers, and improves the compiling efficiency.
In the method for developing and deploying a blockchain intelligent contract provided by this embodiment, in step S100, before the step of receiving a first instruction and extracting a virtual machine selected from the first instruction from a preset virtual machine library, the method includes the following steps B100-B300:
step B100, acquiring demand information;
in this embodiment, the requirement information may be requirement content input by the user, or may be requirement information filled by the user through registration, and the content of the requirement information may be content of a virtual machine, a contract language, a functional requirement, a functional field, a block chain platform, and the like.
B200, performing demand analysis on the demand information based on a preset demand analysis model to obtain a demand suggestion;
and B300, sending the requirement suggestion to a user side.
In this embodiment, the output demand suggestions are specific virtual machines and contract languages, such as the etherhouse EVM virtual machine and the etherhouse solidity smart contract language.
In the method for developing and deploying the blockchain intelligent contracts provided by this embodiment, in step B100, the method includes the following steps B1001-B1002 before the step of acquiring the demand information:
step B1001, acquiring a training data set, wherein the training data set is demand information with a preset label;
and step B1002, performing iterative training on the model to be trained based on the training data set to obtain the demand analysis model meeting the precision condition.
In this embodiment, the training data set is input to the model to be trained, the training model is used to obtain the recognition result of the preset label based on the training data set, wherein the identification result of the preset label is a specific virtual machine and contract language, the identification result of the label and the actual demand suggestion result of the label are subjected to difference calculation to obtain a training error result, whether the training error result meets the error standard indicated by the preset error threshold range or not is judged, if the training error result does not meet the error criteria indicated by the preset error threshold range, updating the current training data set of the model to be trained, and returning to the step of obtaining the identification result of the label based on the training data set by using the training model, and stopping training until the training error result meets the error standard indicated by the preset error threshold range; and taking the training model which stops training as a demand analysis model meeting the precision condition.
In the embodiment, the demand analysis model has high precision and high recognition rate, and provides suggestions of which specific virtual machine and specific intelligent contract language are used by the user.
Compared with the prior intelligent contract deployment platform which only supports a single virtual machine or a single intelligent contract language and cannot meet the requirement that a user needs to issue intelligent contract deployment related to different virtual machines and different intelligent contract languages, the block chain intelligent contract development deployment method, the block chain intelligent contract development deployment device, the block chain intelligent contract deployment device and the block chain intelligent contract deployment method, the block chain intelligent contract deployment device, the block chain intelligent contract deployment equipment and the block chain intelligent contract deployment storage medium have the advantages that a first instruction is received, and a virtual machine selected from the first instruction is extracted from a preset virtual machine library; receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library; receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language; running the intelligent contract byte codes on the virtual machine to obtain an intelligent contract; the intelligent contract is tested, and if the test is successful, the intelligent contract is deployed on the block chain network, namely, in the application, a user can select a virtual machine and a contract language from multiple virtual machines and multiple contract languages of the terminal, and sends a code, so that the terminal automatically operates and deploys the intelligent contract, the difficulty of developing and deploying the intelligent contract by developers is reduced, and the working efficiency is improved.
The present application further provides a block chain intelligent contract development and deployment device, where the block chain intelligent contract development and deployment device includes:
the first receiving module is used for receiving a first instruction and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
the second receiving module is used for receiving a second instruction and extracting a contract language selected from the second instruction from a preset contract language library;
the compiling module is used for receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
the running module is used for running the intelligent contract bytecode on the virtual machine to obtain an intelligent contract;
and the deployment module is used for testing the intelligent contract, and deploying the intelligent contract on the block chain network if the testing is successful.
The specific implementation of the block chain intelligent contract development and deployment device is basically the same as that of each embodiment of the block chain intelligent contract development and deployment method, and details are not repeated here.
The present application further provides a block chain intelligent contract development and deployment device, where the block chain intelligent contract development and deployment device includes: a memory, a processor, and a program stored on the memory for implementing the blockchain intelligent contract development deployment method,
the memory is used for storing a program for realizing the block chain intelligent contract development and deployment method;
the processor is used for executing a program for realizing the block chain intelligent contract development and deployment method so as to realize the steps of the block chain intelligent contract development and deployment method.
The specific implementation manner of the block chain intelligent contract development and deployment device is basically the same as that of each embodiment of the block chain intelligent contract development and deployment method, and details are not repeated here.
The application also provides a storage medium, on which a program for implementing the block chain intelligent contract development and deployment method is stored, and the program for implementing the block chain intelligent contract development and deployment method is executed by a processor to implement the steps of the block chain intelligent contract development and deployment method.
The specific implementation of the storage medium of the present application is substantially the same as each embodiment of the above block chain intelligent contract development and deployment method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A block chain intelligent contract development and deployment method is characterized by comprising the following steps:
receiving a first instruction, and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
receiving a second instruction, and extracting a contract language selected from the second instruction from a preset contract language library;
receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
running the intelligent contract byte codes on the virtual machine to obtain an intelligent contract;
and testing the intelligent contract, and if the test is successful, deploying the intelligent contract on a block chain network.
2. The method for developing and deploying a blockchain intelligent contract according to claim 1, wherein before the step of receiving the first instruction and reading the virtual machine selected from the first instruction, the method comprises the following steps:
setting a container group;
and deploying each virtual machine in the virtual machine set to a corresponding container group to obtain the preset virtual machine library, wherein the container group is deployed with all compiling tool chains and all versions of the compiling tool chains.
3. The method for developing and deploying block-chain intelligent contracts according to claim 2, wherein the step of receiving codes and compiling the codes based on the virtual machine to obtain intelligent contract byte codes comprises the following steps:
receiving a code, and sending the code to a container group;
and compiling the code based on the virtual machine and the compiling tool chain to obtain the intelligent contract byte code.
4. A method for developing and deploying a blockchain intelligent contract according to claim 1, wherein the step of running the intelligent contract bytecode on the virtual machine to obtain an intelligent contract comprises:
interpreting the intelligent contract bytecode into machine instructions based on the virtual machine;
and operating the machine instruction to obtain the intelligent contract.
5. A blockchain intelligent contract development deployment method according to claim 1, wherein said step of deploying said intelligent contracts on a blockchain network comprises:
receiving a third instruction from which to extract the blockchain network;
configuring the blockchain network;
deploying the smart contracts on the blockchain network.
6. The method for developing and deploying a blockchain intelligent contract according to claim 1, wherein before the step of receiving the first instruction and reading the virtual machine selected from the first instruction, the method comprises the following steps:
acquiring demand information;
performing demand analysis on the demand information based on a preset demand analysis model to obtain a demand suggestion;
and sending the requirement suggestion to a user side.
7. The blockchain intelligent contract development deployment method of claim 6, wherein the step of obtaining demand information is preceded by the method comprising:
acquiring a training data set, wherein the training data set is demand information with a preset label;
and performing iterative training on the model to be trained based on the training data set to obtain the demand analysis model meeting the precision condition.
8. A blockchain intelligent contract development and deployment device is characterized in that the blockchain intelligent contract development and deployment device comprises:
the first receiving module is used for receiving a first instruction and extracting a virtual machine selected from the first instruction from a preset virtual machine library;
the second receiving module is used for receiving a second instruction and extracting a contract language selected from the second instruction from a preset contract language library;
the compiling module is used for receiving a code, compiling the code based on the virtual machine to obtain an intelligent contract byte code, wherein the code is obtained by programming based on the contract language;
the running module is used for running the intelligent contract bytecode on the virtual machine to obtain an intelligent contract;
and the deployment module is used for testing the intelligent contract, and deploying the intelligent contract on the block chain network if the testing is successful.
9. A blockchain intelligent contract development and deployment device, the blockchain intelligent contract development and deployment device comprising: a memory, a processor, and a program stored on the memory for implementing the blockchain intelligent contract development deployment method,
the memory is used for storing a program for realizing the block chain intelligent contract development and deployment method;
the processor is used for executing a program for implementing the blockchain intelligent contract development and deployment method so as to implement the steps of the blockchain intelligent contract development and deployment method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a program for implementing a blockchain intelligent contract development and deployment method, the program being executed by a processor to implement the steps of the blockchain intelligent contract development and deployment method according to any one of claims 1 to 7.
CN202210122618.XA 2022-02-09 2022-02-09 Block chain intelligent contract development and deployment method, device, equipment and storage medium Pending CN114461347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122618.XA CN114461347A (en) 2022-02-09 2022-02-09 Block chain intelligent contract development and deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122618.XA CN114461347A (en) 2022-02-09 2022-02-09 Block chain intelligent contract development and deployment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114461347A true CN114461347A (en) 2022-05-10

Family

ID=81413488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122618.XA Pending CN114461347A (en) 2022-02-09 2022-02-09 Block chain intelligent contract development and deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114461347A (en)

Similar Documents

Publication Publication Date Title
CN102160037B (en) Design once, deploy any where framework for heterogeneous mobile application development
CN108319489B (en) Application page starting method and device, storage medium and electronic equipment
KR101807897B1 (en) Cross―platform application framework
CN103970559A (en) Device loading method and device on basis of Android
CN111881019A (en) User interface testing method and device
US9361710B2 (en) Defining a midlet region space
KR20190031030A (en) Method and system for identifying an open source software package based on binary files
US20130042200A1 (en) System and method for annotating graphical user interface
CN116868193A (en) Firmware component identification and vulnerability assessment
CN108255509B (en) Application deployment method, device, equipment and readable storage medium
US11967313B2 (en) Method for expanding language used in speech recognition model and electronic device including speech recognition model
CN112286486B (en) Operation method of application program on intelligent terminal, intelligent terminal and storage medium
CN108491232A (en) The method and system of control are loaded in voice dialogue platform
CN111857672A (en) Business development method, device, equipment and medium based on SQL configuration
CN114461347A (en) Block chain intelligent contract development and deployment method, device, equipment and storage medium
CN113190434B (en) Test case generation method and device, storage medium and computer equipment
US20140304690A1 (en) Systems and Methods for Outputting an Application to Another Environment
CN110795154B (en) Cross-platform device driving method, device and computer readable storage medium
CN114121013A (en) Voice control method and device, electronic equipment and storage medium
CN109284097B (en) Method, device, system and storage medium for realizing complex data analysis
CN109683944B (en) Application function switch management method, device, equipment and readable storage medium
CN113835680A (en) Application program generation method and device, electronic equipment and computer storage medium
CN113934618A (en) Interface test case generation method, device, generator and readable storage medium
CN112307371A (en) Applet sub-service identification method, device, equipment and storage medium
CN112764849B (en) Desktop icon transformation method and system based on IOS system

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