Receipt storage method and node combining code labeling and transaction types

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

Active Publication Date: 2019-09-20
ADVANCED NEW TECH CO LTD
View PDF9 Cites 10 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 perform

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

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0047]

[0048]

[0049] In the code of the smart contract based on the Solidity language, one or more fields can be marked by exposing the identifier, which means: it is desired to store the receipt content corresponding to this part of the field in the receipt data in plain text, and Store the rest of the receipt content 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 indicate similar meanings.

example 2

[0051]

[0052] In the above code example 2, by adding the exposed identifier plain at the front of the code of the smart contract, after the code of the smart contract is executed, for the exposed field corresponding to the transaction type of the transaction to which the smart contract belongs, the generated receipt data The receipt content corresponding to the above exposed fields is stored in plain text.

[0053] Of course, in other embodiments, the fields that need to be stored in plain text may also be specified. For example, when the From field is marked with an exposed identifier, only the From field can be judged: if the From field is the exposed field corresponding to the transaction type of the transaction to which the smart contract belongs, then after the code of the smart contract is executed, a The receipt content corresponding to the From field in the receipt data is stored in plain text, and subsequent retrieval operations can be performed on the receipt co...

example 3

[0056]

[0057]

[0058] In the above code example 3, the character from corresponding to the From field is added to the event function "eventcurrentPrice(int price)" corresponding to the event currentPrice, and the exposed identifier used by the character from is different from the aforementioned plain, but The character from is modified with quotation marks, and the quotation marks in code example 3 are equivalent to the above-mentioned exposed identifier, and the From field is configured as an event-level field, so that when the From field belongs to the exposed field corresponding to the transaction type, when the event corresponds to In the generated Logs field, the From field will be stored in plain text. In addition to the above event currentPrice, if the code of the smart contract contains another event, the above character from will not affect the other event, and the receipt content corresponding to the other event will be stored in ciphertext unless there is a ...

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 and node in combination with a code annotation and a transaction type, the method comprising: a first block chain node receiving an encrypted transaction corresponding to a smart contract, the code of the smart contract comprising a field marked by an exposed identifier; the first block chain node decrypts the transaction in a trusted execution environment and executes the obtained code of the smart contract to obtain receipt data; the first block chain node determines a corresponding exposed field according to the transaction type of the transaction; and the first block chain node stores the receipt data, so that an exposed field marked by the exposed identifier in the receipt data is stored in a plaintext form, and the rest receipt fields are stored in a ciphertext form.

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 and transaction 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 in versatili...

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/08G06Q20/38
CPCG06Q20/3829H04L63/0428H04L67/1097
Inventor 刘琦闫莺魏长征
Owner ADVANCED NEW 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