Check patentability & draft patents in minutes with Patsnap Eureka AI!

Receipt storage method combining code labeling, transaction and event type, and node

A receipt and transaction technology, applied in the blockchain field, can solve problems such as little consideration of privacy performance, high complexity, and poor versatility

Active Publication Date: 2019-09-24
ADVANCED NEW TECH CO LTD
View PDF8 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the two biggest challenges in the technology of enterprise-level blockchain platforms are privacy and performance, and it is often difficult to solve these two challenges at the same time
Most solutions trade for privacy by losing performance, or pursue performance without much consideration for privacy
Common encryption technologies to solve privacy problems, such as Homomorphic encryption and zero-knowledge proof, have high complexity, poor versatility, and may cause serious performance loss

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
  • Receipt storage method combining code labeling, transaction and event type, and node
  • Receipt storage method combining code labeling, transaction and event type, and node
  • Receipt storage method combining code labeling, transaction and event type, and node

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0049]

[0050] In the code of the smart contract written based on the Solidity language, one or more fields can be marked by exposing the identifier, so that the receipt content corresponding to this part of the field in the receipt data is allowed to be stored in plain text (need to further combine the transaction type and dimension of the event function to determine whether it is actually stored in plaintext), and the rest of the receipt content should be stored in ciphertext. Similarly, in the code of smart contracts written based on Serpent, LLL language, etc., one or more fields can also be marked by exposing identifiers to realize the plain text storage of relevant receipt content.

[0051] The exposure identifier may be a receipt field dedicated to indicate that plaintext storage is allowed, for example, the keyword plain may be used to represent the exposure identifier. Then, for the receipt content that is desired to be stored in plain text, plain can be added bef...

example 2

[0053]

[0054] In the above code example 2, the exposed identifier plain is added at the front of the code of the smart contract. From the dimension of programming language, the exposed identifier plain indicates: After the code of the smart contract is executed, the generated receipt data All fields in are allowed to be stored in plain text, then subsequent retrieval operations can be performed on the receipt content in these fields, for example, for the From field, it can be used to count the transaction volume initiated by an account, etc. By further combining dimensions such as transaction type and event function, there may be different storage schemes for receipt data, see below.

[0055] In an embodiment, the smart contract corresponding to the transaction received by the first blockchain node may be a smart contract written in a high-level language, or may be a smart contract in bytecode form. Among them, when the smart contract is a smart contract written in a high...

example 3

[0098] plain Contract Example{

[0099] int price;

[0100] int price1;

[0101] event currentPrice1(int price);

[0102] event currentPrice2(int price1);

[0103] …

[0104] In the above code example 3, similar to code example 2, the exposed identifier "plain" is placed at the forefront of the code of the smart contract, so that all fields in the receipt data are marked as contract-level fields; at the same time, in the smart contract Contains the event currentPrice1 and event currentPrice2: Assuming that the From field is the exposed field corresponding to the transaction type, and the event currentPrice1 corresponds to the special event function defined in the special event function list, and the event currentPrice2 corresponds to the normal event function, then in the event currentPrice1 and event currentPrice2 In the logs Log1 and Log2 generated respectively, the From field contained in the log Log1 is stored in plain text, and the From field contained in the log Log2 ...

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

One or more embodiments of the present specification provide a receipt storage method combining code labeling, transaction and event type, and a node. The method may include: a first blockchain node receiving an encrypted transaction corresponding to a smart contract, the code of the smart contract including a field marked by an exposed identifier; the first block chain node decrypting the transaction in the trusted execution environment to obtain an intelligent contract, wherein the intelligent contract comprises a special event function; the first block chain node executes the smart contract in the trusted execution environment to obtain receipt data, and the receipt data comprises a log corresponding to the special event function; the first block chain node determining a corresponding exposed field according to the transaction type of the transaction; the first blockchain node storing receipt data such that at least a portion of the receipt content in the log corresponding to the special event function is stored in a plaintext form, and storing the remaining content of the receipt data in a ciphertext form, at least a portion of the receipt content including an exposed field marked by the exposed identifier.

Description

technical field [0001] One or more embodiments of this specification relate to the field of blockchain technology, and in particular to a receipt storage method and node that combine code labeling with transaction and event types. Background technique [0002] Blockchain technology is built on top of transmission networks such as peer-to-peer networks. Network nodes in the transmission network use chained data structures to verify and store data, and use distributed node consensus algorithms to generate and update data. [0003] At present, the two biggest challenges in the technology of enterprise-level blockchain platforms are privacy and performance, and it is often difficult to solve these two challenges at the same time. Most solutions trade for privacy by losing performance, or pursue performance with little regard for privacy. Common encryption technologies to solve privacy problems, such as Homomorphic encryption and zero-knowledge proof, are highly complex, poor i...

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): H04L29/06H04L29/08H04L9/06H04L9/08H04L9/32G06Q40/04
CPCG06Q40/04H04L9/06H04L9/0869H04L9/3247H04L63/0428H04L67/104
Inventor 刘琦闫莺魏长征
Owner ADVANCED NEW 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