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

An event push method for a blockchain java smart contract

A smart contract and blockchain technology, applied in the blockchain field, can solve problems such as lack of smart contract push methods, and achieve the effect of convenient query

Active Publication Date: 2022-04-01
HANGZHOU QULIAN TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of smart contract execution, there has been a lack of an event push mode to notify the client of the intermediate process of contract execution, especially the lack of a smart contract push method based on the current mainstream programming language

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
  • An event push method for a blockchain java smart contract
  • An event push method for a blockchain java smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.

[0020] like Figure 1-2 As shown, a block chain JAVA smart contract event push method is characterized in that,

[0021] The virtual machine execution engine of the event described above is the JAVA virtual machine, which accepts the contract file in the form of JAR and deploys it on the blockchain platform, loads the contract file through a custom class loader and initializes the contract instance, And call the smart contract through the interface;

[0022] The JAVA smart contract inherits from the BaseContract virtual class, the event push method is defined in the parent class of the JAVA smart contract...

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 event push method of a blockchain JAVA smart contract. The method implements a notification form in which log events generated by a JAVA smart contract on a blockchain can be actively pushed to the client. Generate a unique contract address and instantiate a contract object, which is used to process all method calls sent to the contract address. After the virtual machine execution engine verifies that the request parameters are legal, it starts processing the corresponding request and returns the result to the client At the same time, during the call of the contract method, if a user-defined contract event is triggered, the event content will be sent to the blockchain node, and the log event generated during the contract execution will be pushed to the client after the data is placed. Since this product is based on the event push of the JAVA contract, users can customize the data and filter conditions of the event, which is convenient for the user to expand the event.

Description

technical field [0001] The present invention relates to block chain technology, in particular to an event push method of a block chain JAVA smart contract. Background technique [0002] Blockchain technology, blockchain is a new type of decentralized protocol that can safely store digital currency transactions or other data, and information cannot be forged and tampered with; smart contracts are a type of A piece of code, the deployment and execution of this code can be presented in the form of transactions in the blockchain network, and its deployment and execution results can be consensused by the entire network along with the transaction; currently, the languages ​​supported by smart contracts include Solidity, JAVA Wait, smart contracts are also widely used in various business applications based on blockchain. [0003] The traditional alliance blockchain smart contract execution engine includes EVM and JVM, and the supported languages ​​are Solidity and JAVA respectivel...

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 Patents(China)
IPC IPC(8): H04L67/55
CPCH04L67/55H04L9/50
Inventor 邱炜伟李伟陶烨琪尹可挺梁秀波
Owner HANGZHOU QULIAN TECH CO LTD
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