Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Intelligent contract execution method supporting trusted execution environment

A smart contract and execution environment technology, applied in the blockchain field, can solve problems such as poor computing efficiency, inability to make full use of smart contract scalability, and poor smart contract scalability

Pending Publication Date: 2021-01-29
TIANYI ELECTRONICS COMMERCE
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] At present, there are mainly two ways to combine the smart contract with the trusted computing environment. One is to completely transplant the smart contract engine into the trusted execution environment. This solution is limited by the trusted execution environment. Computing Poor efficiency and poor scalability of smart contracts
The second method is centered on a trusted computing environment, using blockchain and smart contracts as data exchange and storage intermediaries for computing. This solution cannot make full use of the scalability of smart contracts, and the system flexibility is poor

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
  • Intelligent contract execution method supporting trusted execution environment
  • Intelligent contract execution method supporting trusted execution environment
  • Intelligent contract execution method supporting trusted execution environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as Figure 1-4 As shown, the present invention provides a smart contract execution method that supports a trusted execution environment. The blockchain consensus node monitors and collects transaction requests, and obtains smart contracts deployed on the blockchain. Smart contracts include common execution codes and trusted Execute the code, the ordinary execution code in the smart contract is executed by the smart contract virtual machine, the trusted execution code is loaded in the trusted execution environment to complete the execution, and the trusted execution environment deploys a trusted stub program and its matching signature private key , the security of the stub program is guaranteed by the remote authentication mechanism. The stub program loads the trusted execution code in the smart contract and completes its integrity check, and signs the execution result and code integrity; it includes the following four main links:

[0033] S1. Pile program loading ...

comparative approach 1

[0047] Intelligent contract operation method, device, equipment and storage medium-----CN202010683529.3

[0048]The comparative invention is based on the target transaction request initiated by the target smart contract, the target transaction request includes the target contract method to be called in the target smart contract, and the target transaction request is processed in the trusted execution environment by invoking the target contract method based on the shared link library. In the comparative invention, the smart smart contract is compiled in a trusted execution environment, and a shared link library linked with a trusted execution environment is generated. In the present invention, the smart contract logic on the chain will be split, and the trusted part of the contract will be executed through the stub program. Therefore, the implementation methods adopted are different.

comparative approach 2

[0050] Internet of Things access control method with privacy protection based on blockchain -----CN202010461829.7

[0051] The comparative invention uses a zero-knowledge proof algorithm to encrypt transactions, generate proofs, and utilize a trusted execution environment to ensure the security of smart contracts and related data. The present invention does not use unconventional encryption schemes such as zero-knowledge proof, and through the splitting of smart contracts, the privacy-related business logic is executed in the security domain of the trusted execution environment, which has better versatility.

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 an intelligent contract execution method supporting a trusted execution environment, and the method comprises the steps that a blockchain consensus node monitors and collects atransaction request, and obtains an intelligent contract deployed in a blockchain, the intelligent contract comprises a common execution code and a trusted execution code, and the common execution code in the intelligent contract is executed by an intelligent contract virtual machine; wherein the trusted execution code is loaded in the trusted execution environment to complete execution, a trusted pile program and a signature private key matched with the trusted pile program are deployed in the trusted execution environment, the security of the pile program is ensured by a remote authentication mechanism, and the pile program loads the trusted execution code in the intelligent contract and completes integrity check of the trusted execution code; and signing the execution result and the code integrity. According to the method, the secure smart contract code can be executed in the blockchain environment, the contract code can include a common code and a trusted execution code, the common execution code can be executed efficiently, the trusted execution code can be executed securely, and the execution process is secure and verifiable.

Description

technical field [0001] The invention relates to the field of block chains, in particular to a smart contract execution method supporting a trusted execution environment. Background technique [0002] The English name of smart contract SmartContract refers to the code that can be automatically executed according to the pre-designed logic according to the input conditions. It is usually used in the blockchain system to realize the expansion of the blockchain computing model. The smart contract is deployed on the blockchain, and the consensus protocol is used to realize the ordering and consistency of the contract input conditions by the global nodes. The smart contract is executed by the consensus node in a virtual execution environment, and the result is guaranteed by the consensus protocol. Consistency of all nodes. In order to ensure that all nodes can verify the execution results, the smart contract code and input conditions are in plain text, that is, security functions s...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q20/38G06F21/60G06F21/64
CPCG06F21/602G06F21/64G06Q20/38215G06Q20/3825
Inventor 贺伟史楠迪喻博冷亦君范磊严永峰
Owner TIANYI ELECTRONICS COMMERCE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products