Supercharge Your Innovation With Domain-Expert AI Agents!

JAVA-based cross-contract calling method for smart contract

A smart contract and contract technology, applied in the blockchain field, can solve problems such as the lack of cross-contract calling methods

Active Publication Date: 2019-10-01
HANGZHOU QULIAN TECH CO LTD
View PDF11 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the development process of smart contracts, especially JAVA contracts, there has been a lack of an easy-to-use, efficient and safe cross-contract calling method

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
  • JAVA-based cross-contract calling method for smart contract
  • JAVA-based cross-contract calling method for smart contract
  • JAVA-based cross-contract calling method for smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The following describes the present invention in detail based on the accompanying drawings and preferred embodiments. The purpose and effects of the present invention will become more apparent. The following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0030] A cross-contract call method based on JAVA smart contract, such as figure 1 with 2 As shown, the method specifically includes the following steps:

[0031] Step 1: Write a contract that uses the interface:

[0032] Define the corresponding contract method in the contract according to business needs. When it is necessary to reuse the tool method logic of other contracts, it is satisfied by obtaining the interface of the library instance; when it is necessary to access the contract service issued by o...

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 JAVA-based cross-contract calling method for a smart contract. According to the method, a user-defined class loader is used for loading a contract class corresponding to a specified contract address ContractAddress, and an object of a corresponding contract instance or library instance is instantiated on the basis of account book data according to a corresponding callinginterface. The variable in the object reflects the latest state of the contract. The user uses the function service of the appointed contract through the object method. In the persistence stage of contract execution, all changes on contract instances can be embodied in an account book, that is, the state of the corresponding contract account can be modified, and all changes on library instances can be discarded, that is, the state of the corresponding contract account cannot be changed. Due to the fact that use of related interfaces is not limited by other limits, the user can call multiple cross-contracts.

Description

Technical field [0001] The present invention relates to blockchain technology, in particular to a cross-contract calling method based on JAVA smart contracts. Background technique [0002] Blockchain technology. Blockchain is a new type of decentralized protocol that can safely store digital currency transactions or other data. Information cannot be forged and tampered with. The transaction confirmation on the blockchain is shared by all nodes on the blockchain. Completed, its consistency is guaranteed by the consensus algorithm, a public ledger is maintained on the blockchain, and the public ledger is visible to any node on the storage block, thereby ensuring that it cannot be forged and tampered with. [0003] Smart contract is an assembly language programmed on the blockchain. This term was proposed by the cross-field legal scholar Nick Sabo. His definition of smart contract is "a smart contract is a set of commitments defined in digital form, including contract Participants ca...

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/54G06Q40/04
CPCG06F9/548G06Q40/04
Inventor 李伟邱炜伟梁秀波尹可挺汤凯凯
Owner HANGZHOU QULIAN TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More