A data collection storage method based on java smart contract

A data collection and smart contract technology, applied in data processing applications, database management systems, structured data retrieval, 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: 2021-07-30
HANGZHOU QULIAN TECH CO LTD
View PDF5 Cites 0 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
  • A data collection storage method based on java smart contract
  • A data collection 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 contract, 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 colle...

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 the set storage method of the Java contract, the set data in the contract can be accurately mapped to the hash key-value pair on the block chain account book, and when using It is similar to ordinary Java collections in function, and it is guaranteed that it is not necessary to fully load all the ledger data in the current contract. Lazy loading is performed when needed to save the memory space occupied by the contract execution, and the loaded data is cached. , saving time for repeated queries. The invention not only ensures the mapping relationship of the Java collection in the ledger, but also solves the problem of large storage space occupied by the increased amount of contract data, and improves the data reliability of the Java contract.

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 Patents(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products