CN113805889A - Intelligent contract calling execution method, device, equipment and readable storage medium - Google Patents

Intelligent contract calling execution method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113805889A
CN113805889A CN202110993544.2A CN202110993544A CN113805889A CN 113805889 A CN113805889 A CN 113805889A CN 202110993544 A CN202110993544 A CN 202110993544A CN 113805889 A CN113805889 A CN 113805889A
Authority
CN
China
Prior art keywords
compiling
executed
instruction
intelligent contract
calling
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.)
Granted
Application number
CN202110993544.2A
Other languages
Chinese (zh)
Other versions
CN113805889B (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.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker 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 Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202110993544.2A priority Critical patent/CN113805889B/en
Publication of CN113805889A publication Critical patent/CN113805889A/en
Application granted granted Critical
Publication of CN113805889B publication Critical patent/CN113805889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention relates to the technical field of video content analysis, in particular to an intelligent contract calling and executing method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: receiving a transaction request; according to the transaction request, calculating to obtain a plurality of compiling instructions to be executed; sequentially executing precompilation operation on each compiling instruction to be executed respectively, and obtaining an execution result after all compiling instructions to be executed are executed, wherein the precompilation operation is to detect an identification code segment of the compiling instruction to be executed and call a corresponding precompilation contract; the execution result is sent, and the method detects the identification code segment in each compiling instruction when the compiling instruction compiled by the intelligent contract is executed, calls the corresponding pre-compiling contract according to the identification code segment, and executes partial function steps in the corresponding compiling instruction through the pre-compiling contract, so that the running speed of the compiling instruction in the virtual machine is increased, and the execution speed of the whole intelligent contract is increased.

Description

Intelligent contract calling execution method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of video content analysis, in particular to an intelligent contract calling execution method, device, equipment and readable storage medium.
Background
The intelligent contract is a computer transaction protocol for executing contract terms, different transaction types are adapted to the intelligent contract containing different term codes in a blockchain network, but the traditional intelligent contract calling and executing are directly sent to a virtual machine for executing after being compiled, the virtual machine directly executes the compiled codes in sequence, part of terms in the intelligent contract are common terms, and if the term codes are required to be executed on the virtual machine again every time the intelligent contract is executed, the execution efficiency of the intelligent contract is greatly reduced.
Disclosure of Invention
The invention aims to provide an intelligent contract calling execution method, an intelligent contract calling execution device, equipment and a readable storage medium, so as to solve the problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides an intelligent contract invoking execution method, where the method includes: receiving a transaction request, wherein the transaction request is an instruction containing various transaction information; according to the transaction request, calculating to obtain a plurality of compiling instructions to be executed; sequentially executing precompilation operation on each compiling instruction to be executed respectively, and obtaining an execution result after all compiling instructions to be executed are executed, wherein the precompilation operation is an identification code segment for detecting the compiling instructions to be executed, and calling a corresponding precompilation contract according to the identification code segment; and sending the execution result to a human-computer interaction end.
Optionally, the calculating, according to the transaction request, a plurality of compiling instructions to be executed includes:
calling the transaction request, wherein the transaction request comprises transaction parameters and a transaction type;
calling a corresponding intelligent contract according to the transaction type;
and compiling the corresponding intelligent contract according to the transaction parameters to obtain a corresponding compiled code, wherein the compiled code comprises a plurality of compiling instructions to be executed.
Optionally, the sequentially performing precompilation operations on each to-be-executed compiling instruction respectively includes:
calling one compiling instruction to be executed and recording the compiling instruction as a first compiling instruction;
precompiled detect operation: detecting an identification code segment of a first compiling instruction, if the identification code segment is a pre-compiling code segment, calling a pre-compiling contract corresponding to the identification code segment of the first compiling instruction, wherein the pre-compiling contract is used for acquiring target data from a preset storage position, judging the matching of the target data and an intelligent contract and returning a matching value;
and executing instruction operation: executing the first compiling instruction according to the matching value, and recording the first compiling instruction as an executed instruction;
and calling another compiling instruction to be executed, recording the another compiling instruction as a first compiling instruction, and sequentially executing the precompilation detection operation and the instruction execution operation until the plurality of compiling instructions to be executed are all executed.
In a second aspect, an embodiment of the present application provides an intelligent contract invoking execution apparatus, where the apparatus includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a transaction request which is an instruction containing various transaction information;
the first calculation module is used for calculating to obtain a plurality of compiling instructions to be executed according to the transaction request;
the second calculation module is used for sequentially executing precompilation operation on each compiling instruction to be executed respectively and obtaining an execution result after all the compiling instructions to be executed are executed, wherein the precompilation operation is an identification code segment for detecting the compiling instructions to be executed and calls a corresponding precompilation contract according to the identification code segment;
and the sending module is used for sending the execution result to the man-machine interaction end.
Optionally, the first computing module includes:
the first calling unit is used for calling the transaction request, and the transaction request comprises transaction parameters and a transaction type;
the first computing unit is used for calling a corresponding intelligent contract according to the transaction type;
and the second computing unit is used for compiling the corresponding intelligent contract according to the transaction parameters to obtain a corresponding compiled code, and the compiled code comprises a plurality of compiling instructions to be executed.
Optionally, the second computing module includes:
the first calling unit is used for calling one compiling instruction to be executed and recording the compiling instruction as a first compiling instruction;
the third calculation unit is used for detecting an identification code segment of the first compiling instruction, and if the identification code segment is a pre-compiling code segment, calling a pre-compiling contract corresponding to the identification code segment of the first compiling instruction, wherein the pre-compiling contract is used for acquiring target data from a preset storage position, judging the matching of the target data and the intelligent contract and returning a matching value;
the fourth calculation unit is used for executing the first compiling instruction according to the matching value and recording the first compiling instruction as an executed instruction;
and the fifth calculating unit is used for calling another compiling instruction to be executed, recording the another compiling instruction as the first compiling instruction, and sequentially executing the precompilation detection operation and the instruction execution operation until the plurality of compiling instructions to be executed are all executed.
In a third aspect, an embodiment of the present application provides an intelligent contract invoking execution device, which includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the intelligent contract calling execution method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the above-mentioned intelligent contract invoking execution method.
The invention has the beneficial effects that:
the method and the device detect the identification code segment in each compiling instruction when the compiling instruction compiled by the intelligent contract is executed, call the corresponding precompiled contract according to the identification code segment, and execute partial functional steps in the corresponding compiling instruction through the precompiled contract, thereby increasing the running speed of the compiling instruction in the virtual machine and further increasing the execution speed of the whole intelligent contract.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic flow chart illustrating a method for invoking and executing an intelligent contract according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an intelligent contract invocation executing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an intelligent contract invoking execution device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides an intelligent contract calling execution method including step S1, step S2, step S3, and step S4.
Step S1, receiving a transaction request, wherein the transaction request is an instruction containing various transaction information, the transaction request can comprise transaction parameters and transaction types, the transaction parameters can be understood as parameters which can be possibly used by an intelligent contract, such as user ID (identity), transaction amount and the like, and the transaction types are formulated according to actual requirements, such as transfer requirements, requirements for buying and selling bonds and the like, different requirements and corresponding intelligent contracts;
s2, calculating to obtain a plurality of compiling instructions to be executed according to the transaction request, specifically, a system firstly identifies the transaction type requested by the transaction request, calls a corresponding intelligent contract on a chain according to the transaction type matching, then compiles the intelligent contract, and when compiling is required, the transaction parameters in the transaction request are compiled together with the intelligent contract, so that a plurality of compiling instructions to be executed are obtained;
it should be noted that a plurality of pre-compiled contracts are deployed in advance on the chain, and the pre-compiled contracts are part of common functional blocks of the intelligent contract, such as identity authority query, balance query and the like.
S3, sequentially executing precompilation operation on each compiling instruction to be executed respectively, and obtaining an execution result after all the compiling instructions to be executed are executed, wherein the precompilation operation is an identification code segment for detecting the compiling instructions to be executed, and calling a corresponding precompilation contract according to the identification code segment;
when each compiling instruction to be executed is executed, a virtual machine in the system firstly detects an identification code segment in the compiling instruction to be executed, wherein the identification code segment is used for identifying whether the compiling instruction is applied to a pre-compiling contract or not and specifically calling which pre-compiling contract, for example, when the virtual machine identifies that the compiling instruction is coincided with one pre-compiling contract (KYC-pre-compiling contract for identity verification) through the identification code segment, KYC calls relevant data in a server database according to identity information of a transaction initiator in calling transaction parameters, such as identity ID, KYC according to the identity ID and checks whether the relevant data is matched with a transaction type or not (in some special transactions, the identity of the transaction initiator is strictly limited such as nationality and the like), and if the relevant data is matched with the transaction type, a qualified matching value is returned, the virtual machine detects the matching value and then judges whether the intelligent contract continues to be executed.
In the description of the above embodiment, it can be seen that a series of operations of KYC are no longer executed in the virtual machine, and the virtual machine only needs to be identified, and meanwhile, since KYC is a pre-compilation contract, the running speed of the series of operations is much faster than that of the virtual machine, so that the running speed of the virtual machine for running the compilation instruction can be significantly increased, and the running speed of the intelligent contract is increased.
And S4, sending the execution result to a human-computer interaction end.
In a specific embodiment of the present disclosure, the step S2 may further include:
s21, calling the transaction request, wherein the transaction request comprises transaction parameters and a transaction type;
s22, calling a corresponding intelligent contract according to the transaction type;
and S23, compiling the corresponding intelligent contract according to the transaction parameters to obtain a corresponding compiling code, wherein the compiling code comprises a plurality of compiling instructions to be executed.
In a specific embodiment of the present disclosure, the step S3 may further include:
s31, calling one compiling instruction to be executed, and recording the compiling instruction as a first compiling instruction;
step S32, pre-compiling detection operation: detecting an identification code segment of a first compiling instruction, if the identification code segment is a pre-compiling code segment, calling a pre-compiling contract corresponding to the identification code segment of the first compiling instruction, wherein the pre-compiling contract is used for acquiring target data from a preset storage position, judging the matching of the target data and an intelligent contract and returning a matching value;
step S33, executing instruction operation: executing the first compiling instruction according to the matching value, and recording the first compiling instruction as an executed instruction;
and S34, calling another compiling instruction to be executed, recording the compiling instruction as a first compiling instruction, and sequentially executing the pre-compiling detection operation and the instruction execution operation until the plurality of compiling instructions to be executed are all executed.
Example 2
As shown in fig. 2, the present embodiment provides an intelligent contract invoking execution apparatus, including:
a receiving module 71, configured to receive a transaction request, where the transaction request is an instruction including multiple transaction information;
a first calculating module 72, configured to calculate, according to the transaction request, a plurality of compiling instructions to be executed;
the second calculation module 73 is configured to sequentially perform a pre-compilation operation on each to-be-executed compilation instruction, and obtain an execution result after all to-be-executed compilation instructions are executed, where the pre-compilation operation is an identification code segment that detects the to-be-executed compilation instruction, and calls a corresponding pre-compilation contract according to the identification code segment;
and a sending module 74, configured to send the execution result to the human-computer interaction terminal.
In a specific embodiment of the present disclosure, the first calculating module 72 includes:
a first retrieving unit 721, configured to retrieve the transaction request, where the transaction request includes a transaction parameter and a transaction type;
the first calculation unit 722 is used for calling a corresponding intelligent contract according to the transaction type;
the second calculating unit 723 is configured to compile the corresponding intelligent contract according to the transaction parameter to obtain a corresponding compiled code, where the compiled code includes a plurality of compiling instructions to be executed.
In a specific embodiment of the present disclosure, the second calculating module 73 includes:
a first retrieving unit 731, configured to retrieve one of the compiling instructions to be executed, and record the compiling instruction as a first compiling instruction;
a third calculating unit 732, configured to detect an identifier code segment of the first compiling instruction, and if the identifier code segment is a precompiled code segment, invoke a precompiled contract corresponding to the identifier code segment of the first compiling instruction, where the precompiled contract is used to obtain target data from a preset storage location, determine matching between the target data and an intelligent contract, and return a matching value;
a fourth calculation unit 733, configured to execute the first compiling instruction according to the matching value, and mark the first compiling instruction as an executed instruction;
the fifth calculating unit 734 is configured to call another to-be-executed compiling instruction, which is recorded as the first compiling instruction, and sequentially execute the precompilation detection operation and the instruction execution operation until all the to-be-executed compiling instructions are executed.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Example 3
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides an intelligent contract invoking execution device, and the below described intelligent contract invoking execution device and the above described intelligent contract invoking execution method may be referred to correspondingly.
FIG. 3 is a block diagram illustrating a smart contract invocation execution device 800 in accordance with an illustrative embodiment. As shown in fig. 3, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800, so as to complete all or part of the steps in the above-mentioned smart contract call execution method. The memory 402 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the above-described smart contract call execution method.
In another exemplary embodiment, a computer readable storage medium is also provided that includes program instructions which, when executed by a processor, implement the steps of the intelligent contract call execution method described above. For example, the computer-readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the intelligent contract invocation execution method described above.
Example 4
Corresponding to the above method embodiment, the disclosed embodiment further provides a readable storage medium, and a readable storage medium described below and an intelligent contract invoking execution method described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the intelligent contract invocation execution method of the above-described method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An intelligent contract call execution method, comprising:
receiving a transaction request, wherein the transaction request is an instruction containing various transaction information;
according to the transaction request, calculating to obtain a plurality of compiling instructions to be executed;
sequentially executing precompilation operation on each compiling instruction to be executed respectively, and obtaining an execution result after all compiling instructions to be executed are executed, wherein the precompilation operation is an identification code segment for detecting the compiling instructions to be executed, and calling a corresponding precompilation contract according to the identification code segment;
and sending the execution result to a human-computer interaction end.
2. The intelligent contract call execution method of claim 1, wherein the calculating a plurality of compilation instructions to be executed according to the transaction request comprises:
calling the transaction request, wherein the transaction request comprises transaction parameters and a transaction type;
calling a corresponding intelligent contract according to the transaction type;
and compiling the corresponding intelligent contract according to the transaction parameters to obtain a corresponding compiled code, wherein the compiled code comprises a plurality of compiling instructions to be executed.
3. The intelligent contract call execution method according to claim 1, wherein the performing precompilation operations on each of the compiling instructions to be executed in turn comprises:
calling one compiling instruction to be executed and recording the compiling instruction as a first compiling instruction;
precompiled detect operation: detecting an identification code segment of a first compiling instruction, if the identification code segment is a pre-compiling code segment, calling a pre-compiling contract corresponding to the identification code segment of the first compiling instruction, wherein the pre-compiling contract is used for acquiring target data from a preset storage position, judging the matching of the target data and an intelligent contract and returning a matching value;
and executing instruction operation: executing the first compiling instruction according to the matching value, and recording the first compiling instruction as an executed instruction;
and calling another compiling instruction to be executed, recording the another compiling instruction as a first compiling instruction, and sequentially executing the precompilation detection operation and the instruction execution operation until the plurality of compiling instructions to be executed are all executed.
4. An intelligent contract invocation execution apparatus, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a transaction request which is an instruction containing various transaction information;
the first calculation module is used for calculating to obtain a plurality of compiling instructions to be executed according to the transaction request;
the second calculation module is used for sequentially executing precompilation operation on each compiling instruction to be executed respectively and obtaining an execution result after all the compiling instructions to be executed are executed, wherein the precompilation operation is an identification code segment for detecting the compiling instructions to be executed and calls a corresponding precompilation contract according to the identification code segment;
and the sending module is used for sending the execution result to the man-machine interaction end.
5. The intelligent contract call execution method of claim 1, wherein the first computing module comprises:
the first calling unit is used for calling the transaction request, and the transaction request comprises transaction parameters and a transaction type;
the first computing unit is used for calling a corresponding intelligent contract according to the transaction type;
and the second computing unit is used for compiling the corresponding intelligent contract according to the transaction parameters to obtain a corresponding compiled code, and the compiled code comprises a plurality of compiling instructions to be executed.
6. The intelligent contract call execution method of claim 1, wherein the second computing module comprises:
the first calling unit is used for calling one compiling instruction to be executed and recording the compiling instruction as a first compiling instruction;
the third calculation unit is used for detecting an identification code segment of the first compiling instruction, and if the identification code segment is a pre-compiling code segment, calling a pre-compiling contract corresponding to the identification code segment of the first compiling instruction, wherein the pre-compiling contract is used for acquiring target data from a preset storage position, judging the matching of the target data and the intelligent contract and returning a matching value;
the fourth calculation unit is used for executing the first compiling instruction according to the matching value and recording the first compiling instruction as an executed instruction;
and the fifth calculating unit is used for calling another compiling instruction to be executed, recording the another compiling instruction as the first compiling instruction, and sequentially executing the precompilation detection operation and the instruction execution operation until the plurality of compiling instructions to be executed are all executed.
7. An intelligent contract invocation execution device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the intelligent contract invocation execution method according to any of claims 1 to 3 when executing the computer program.
8. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, carries out the steps of the intelligent contract invocation execution method according to any of claims 1 to 3.
CN202110993544.2A 2021-08-27 2021-08-27 Intelligent contract calling execution method, device, equipment and readable storage medium Active CN113805889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110993544.2A CN113805889B (en) 2021-08-27 2021-08-27 Intelligent contract calling execution method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110993544.2A CN113805889B (en) 2021-08-27 2021-08-27 Intelligent contract calling execution method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113805889A true CN113805889A (en) 2021-12-17
CN113805889B CN113805889B (en) 2023-07-28

Family

ID=78942034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110993544.2A Active CN113805889B (en) 2021-08-27 2021-08-27 Intelligent contract calling execution method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113805889B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213501A (en) * 2018-09-27 2019-01-15 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN109240793A (en) * 2017-05-16 2019-01-18 龙芯中科技术有限公司 Recognition methods, device, electronic equipment and the storage medium of hot-spots
WO2019024674A1 (en) * 2017-07-31 2019-02-07 众安信息技术服务有限公司 Smart contract processing method and apparatus
CN109976871A (en) * 2018-12-28 2019-07-05 无锡井通网络科技有限公司 Intelligent contract dispositions method, device, electronic equipment and storage medium
CN110221837A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Intelligent contract call method, device, equipment and storage medium
CN111061685A (en) * 2019-11-21 2020-04-24 腾讯科技(深圳)有限公司 Log query method and device, node equipment and storage medium
US20200225968A1 (en) * 2019-01-10 2020-07-16 Red Hat, Inc. Combining ahead-of-time compilation and just-in-time compilation to improve application deployment
CN111683083A (en) * 2020-06-05 2020-09-18 成都质数斯达克科技有限公司 Block chain user identity authentication method, device, equipment and medium
CN111768183A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and storage medium
CN111770202A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and storage medium
CN111770113A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and node equipment
WO2020233638A1 (en) * 2019-05-20 2020-11-26 创新先进技术有限公司 Receipt storage method and node based on code labeling and transaction type
CN112308716A (en) * 2020-10-28 2021-02-02 深圳前海微众银行股份有限公司 Block chain intelligent contract execution method, device, equipment and computer storage medium
CN112529711A (en) * 2021-02-07 2021-03-19 腾讯科技(深圳)有限公司 Transaction processing method and device based on block chain virtual machine multiplexing
CN112612482A (en) * 2020-12-28 2021-04-06 杭州趣链科技有限公司 Method, device, equipment and storage medium for executing intelligent contract
CN113077260A (en) * 2021-04-13 2021-07-06 支付宝(杭州)信息技术有限公司 Data access method and device based on block chain and electronic equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240793A (en) * 2017-05-16 2019-01-18 龙芯中科技术有限公司 Recognition methods, device, electronic equipment and the storage medium of hot-spots
WO2019024674A1 (en) * 2017-07-31 2019-02-07 众安信息技术服务有限公司 Smart contract processing method and apparatus
CN109213501A (en) * 2018-09-27 2019-01-15 上海点融信息科技有限责任公司 The method, apparatus and storage medium of intelligent contract are installed in block chain network
CN109976871A (en) * 2018-12-28 2019-07-05 无锡井通网络科技有限公司 Intelligent contract dispositions method, device, electronic equipment and storage medium
US20200225968A1 (en) * 2019-01-10 2020-07-16 Red Hat, Inc. Combining ahead-of-time compilation and just-in-time compilation to improve application deployment
WO2020233638A1 (en) * 2019-05-20 2020-11-26 创新先进技术有限公司 Receipt storage method and node based on code labeling and transaction type
WO2020233092A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Smart contract calling method and apparatus, device, and storage medium
CN110221837A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 Intelligent contract call method, device, equipment and storage medium
CN111061685A (en) * 2019-11-21 2020-04-24 腾讯科技(深圳)有限公司 Log query method and device, node equipment and storage medium
CN111683083A (en) * 2020-06-05 2020-09-18 成都质数斯达克科技有限公司 Block chain user identity authentication method, device, equipment and medium
CN111768183A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and storage medium
CN111770202A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and storage medium
CN111770113A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method for executing intelligent contract, block chain node and node equipment
CN112308716A (en) * 2020-10-28 2021-02-02 深圳前海微众银行股份有限公司 Block chain intelligent contract execution method, device, equipment and computer storage medium
CN112612482A (en) * 2020-12-28 2021-04-06 杭州趣链科技有限公司 Method, device, equipment and storage medium for executing intelligent contract
CN112529711A (en) * 2021-02-07 2021-03-19 腾讯科技(深圳)有限公司 Transaction processing method and device based on block chain virtual machine multiplexing
CN113077260A (en) * 2021-04-13 2021-07-06 支付宝(杭州)信息技术有限公司 Data access method and device based on block chain and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Z.TIAN: "Smart Contract Defect Detection Based on Parallel Symbolic Execution", 《2019 3RD INTERNATIONAL CONFERENCE ON CIRCUITS,SYSTEM AND SIMULATION》, pages 127 - 132 *
张召等: "链上存证、链下传输的可信数据共享平台", 《大数据》, vol. 6, no. 5, pages 106 - 117 *
王正凯: "基于分组的智能合约并行化研究", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 6, pages 138 - 600 *

Also Published As

Publication number Publication date
CN113805889B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN108958729B (en) Data processing method, device and storage medium
WO2017059676A1 (en) Smart card read/write methods and devices
CN111638983A (en) Interface calling method, interface calling device and terminal equipment
US20200210829A1 (en) Network off-line model processing method, artificial intelligence processing device and related products
CN112559088A (en) Configuration file optimization method, device, server and storage medium
CN110838929B (en) System error checking method and system error checking device
CN112241362A (en) Test method, test device, server and storage medium
CN110619204A (en) Invitation code generation method and device, terminal equipment and storage medium
CN113468212A (en) Event execution method and device and electronic equipment
CN110045952B (en) Code calling method and device
CN113805889B (en) Intelligent contract calling execution method, device, equipment and readable storage medium
CN109995931B (en) Method and device for realizing automatic calling
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN112181816B (en) Scene-based interface testing method and device, computer equipment and medium
CN110309062B (en) Use case generation method, device, electronic equipment and storage medium
CN112783500B (en) Method and device for generating compiling optimization information and electronic equipment
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN114936368A (en) Java memory Trojan detection method, terminal device and storage medium
CN110851346B (en) Query statement boundary problem detection method, device, equipment and storage medium
CN113342553A (en) Data acquisition method and device, electronic equipment and storage medium
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN112612474A (en) Product transplanting method and device, storage medium and electronic equipment
CN112596846A (en) Method and device for determining interface display content, terminal equipment and storage medium
CN111488286A (en) Method and device for independently developing Android module

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