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

Data set storage method based on Java smart contract

A data collection and smart contract technology, applied in data processing applications, structured data retrieval, database management systems, etc., can solve the problems of storing data, unable to guarantee the atomicity of written data, etc., to improve execution efficiency and solve storage atomic problems. Sexual Problems, Ease of Use

Active Publication Date: 2019-09-27
HANGZHOU QULIAN TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditional alliance blockchain smart contract execution engines include evm and jvm. Taking jvm as an example, jvm cannot use the collection type that is directly mapped to the blockchain ledger to store data, and needs to be read or written into the ledger in the form of key-value pairs , and the atomicity of all written data cannot be guaranteed. After inserting some data, the contract execution fails and the contract data needs to be rolled back. This part of the pressure will fall on the blockchain nodes. How to make Java smart contracts conveniently use custom It is a new challenge to ensure the atomicity of the ledger data modification of a transaction execution while operating the ledger by collection, and to ensure the stability and efficiency of the blockchain smart contract execution engine

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
  • Data set storage method based on Java smart contract
  • Data set storage method based on Java smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] 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.

[0020] Such as figure 1 and 2 As shown, a data collection storage method based on Java smart contracts, the method specifically includes the following steps:

[0021] Step 1: Using the Java smart contract to store data is inseparable from the use of collections. In the Java smart contract, the collection member variables of the contract must be initialized, and then the constructors of different collections are called; when the list collection is initialized, there will be created For an ordered coll...

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 data set storage method based on a Java smart contract. Based on a Java contract set storage mode, the set data in the contract can be accurately mapped to the hash key value pairs on the blockchain account book; with the set same as a common Java set in use and function, it is guaranteed that all account book data in a current contract do not need to be loaded in a full-amount mode, lazy loading is carried out when the account book data need to be used, the memory space occupied when the contract is executed is saved, the loaded data are cached, and the repeated query time is saved. According to the invention, not only is the mapping relation of the Java set in the account book ensured, but also the problem that the storage space is large after the contract data volume is increased is solved, and the data reliability of the Java contract is improved.

Description

technical field [0001] The present invention relates to the design field of decentralized block chain smart contract data storage, in particular to a data set storage method based on 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] Traditional alliance blockchain smart contract execution engines include evm and jvm. Taking jvm as an ex...

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/38G06Q40/04G06F16/25G06F16/27
CPCG06Q20/389G06Q40/04G06F16/252G06F16/27
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