Method and device for realizing oracle machine calling process based on smart contract

A smart contract and calling process technology, applied in the blockchain field, can solve the problems of complex contract code writing, slow blockchain speed, and low transaction execution efficiency.

Pending Publication Date: 2021-04-13
HANGZHOU QULIAN TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for implementing an oracle call process based on a smart contract, so as t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing oracle machine calling process based on smart contract
  • Method and device for realizing oracle machine calling process based on smart contract
  • Method and device for realizing oracle machine calling process based on smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0056] Embodiments of the present invention provide a method and device for implementing an oracle call process based on a smart contract, so as to solve the problems of slow transaction execution speed, low transaction execution efficiency, and complex contract code writing in the prior art.

[0057] see figure 1 , is a schematic flowchart of a ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for realizing an oracle machine calling process based on a smart contract. The method comprises the following steps: acquiring an oracle machine calling event of an original transaction, wherein the oracle machine calling event comprises an oracle machine calling request, a request identifier and an intelligent contract address of an intelligent contract of an original transaction, and the request identifier is generated based on the oracle machine calling request and is globally unique; sending an oracle machine calling event to the trusted execution environment module during original transaction block writing; starting a timer and sending a data acquisition request based on the oracle machine calling request to the outside; and if an external response to the data acquisition request is received before the timer finishes running, constructing a first callback transaction and sending the first callback transaction to the executor, thereby enabling the executor to execute the first callback transaction, and further executing callback logic of the smart contract of the original transaction. According to the embodiment of the invention, the transaction execution speed of the blockchain is ensured, the transaction execution efficiency is high, and contract code writing is simple.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and device for realizing an oracle calling process based on a smart contract. Background technique [0002] As a sandbox execution environment, the smart contract of the blockchain can effectively execute the user's logic code and limit some behaviors that may lead to inconsistent execution results. Therefore, the function of executing the contract on the blockchain is relatively limited and very difficult. Difficulty interacting with the outside world. The oracle machine is a mechanism for writing information outside the blockchain into the blockchain. This mechanism solves the technical problem that the smart contract of the blockchain is difficult to interact with the outside world. [0003] In the prior art, the oracle machine is invoked in a synchronous waiting manner, that is, the oracle machine is called and waits for the result to be returned, and the next ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/54G06F9/52G06F21/53
CPCG06F9/52G06F9/542G06F21/53
Inventor 邱炜伟李伟黄方蕾张珂杰胡麦芳
Owner HANGZHOU QULIAN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products