Supercharge Your Innovation With Domain-Expert AI Agents!

A method for cross-contract calling of java-based smart contracts

A smart contract, contract technology, applied in the field of blockchain, can solve the problem of lack of cross-contract calling method

Active Publication Date: 2021-08-03
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 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
  • A method for cross-contract calling of java-based smart contracts
  • A method for cross-contract calling of java-based smart contracts
  • A method for cross-contract calling of java-based smart contracts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0031] Step 1: Write a contract using the interface:

[0032] Define the corresponding contract methods in the contract according to business requirements. When it is necessary to reuse the tool method logic of other contracts, it can be satisfied by obtaining the interface of the library instance; when it is necessary to access contract services ...

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 for cross-contract calling of a JAVA-based smart contract. The method loads the contract class corresponding to the specified contract address ContractAddress by implementing a custom class loader, and based on the corresponding call interface based on the account book data instance on the chain Convert an object corresponding to a contract instance or a library instance. The variables in this object reflect the latest state of the contract. Users use the method of this object to use the function service of the specified contract. During the persistence stage of contract execution, all changes on the contract instance will be reflected in the ledger, that is, Modify the state of the corresponding contract account, and all changes on the library instance will be discarded, that is, the state of the corresponding contract account will not be changed. Since there are no other restrictions on the use of related interfaces, users can make multiple cross-contract calls.

Description

technical field [0001] The invention relates to blockchain technology, in particular to a method for calling a cross-contract of a JAVA-based 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, information cannot be forged and tampered with, and transaction confirmation on the blockchain is shared by all nodes on the blockchain Completed, the consensus algorithm guarantees its consistency. A public ledger is maintained on the blockchain. The public ledger is visible to any node on the storage block, thus ensuring that it cannot be forged and tampered with. [0003] A smart contract is an assembly language programmed on the blockchain. The term was proposed by Nick Szabo, an interdisciplinary legal scholar. His definition of a smart contract is "a smart contract is a set of commitments defined in digital form, including contract Participants ...

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): 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