Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Intelligent contract compression method of Ethereum block chain

A technology of smart contracts and compression methods, applied in the blockchain field, can solve insecure and low-level problems, and achieve the effects of improving execution efficiency, improving compression efficiency, and reducing size

Active Publication Date: 2019-09-10
NANJING UNIV OF SCI & TECH
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although the official provides pseudo-opcodes for contract interaction, such as call, delegatecall and callcode, these methods are very unsafe and low-level, so they are not recommended

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 compression method of Ethereum block chain
  • Intelligent contract compression method of Ethereum block chain
  • Intelligent contract compression method of Ethereum block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] A smart contract compression method of the Ethereum block chain, the specific steps are:

[0017] Step 1. According to the definition of the existing delegatecall pseudo-opcode: pass in parameters to the delegatecall opcode respectively: gas (gas required for function execution), _impl (address for calling the smart contract), ptr (memory pointer, which points to the beginning of the data place), calldatasize (the size of the incoming data), 0 (the return value of calling the smart contract), 0 (the size of the return value), and add a new opcode to the Ethereum virtual machine, which is only used locally . The pseudo-opcode can find out whether this operation is the same as the operation of the previously executed smart contract, and if so, replace the operation in the new smart contract with the operation pointing to the executed smart contract. In this way the size of the smart contract is reduced.

[0018] Step 2. For any given Ethereum block B h , B h contains ...

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 compression method for an Ethereum block chain, and belongs to the technical field of block chains. The method disclosed by the invention comprises thefollowing specific steps of according to the definition of an existing delta ecall pseudo-operation code, adding a new pseudo-operation code into an Ethereum virtual machine, wherein the pseudo-operation code is only used locally, the new pseudo-operation code can find whether the new smart contract is the same as certain operations of the previously executed smart contract; and if yes, using theoperation pointing to the executed smart contract for replacing the operation in the new smart contract, and reusing the intelligent contract. According to the invention, the space occupied by the contract is saved, and the compression time is also saved.

Description

technical field [0001] The invention belongs to block chain technology, in particular to an intelligent contract compression method of Ethereum block chain. Background technique [0002] Ethereum is a decentralized general-purpose computer based on the blockchain. Programs that run on the Ethereum platform are often referred to as smart contracts. Reusability of smart contracts was one of the original visions of the Ethereum smart contract system. The goal of the smart contract is modularization, that is, to run the smart contract as a module of a larger smart contract, and to repeat this process until the user's operation purpose is achieved. [0003] Although the official provides pseudo-opcodes for contract interaction, such as call, delegatecall, and callcode, these methods are very unsafe and low-level, so they are not recommended. Contents of the invention [0004] The purpose of the present invention is to propose a smart contract compression method of the Ethere...

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): G06F16/22G06F16/27G06Q40/04
CPCG06F16/22G06F16/27G06Q40/04
Inventor 王仕豪李千目邱天蔡俊辉
Owner NANJING UNIV OF SCI & TECH
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
Eureka Blog
Learn More
PatSnap group products