Object-level receipt storage method and node based on code annotationsCode annotation-based object-level receipt storage method and node

A receipt and node 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-20
ADVANCED NEW TECH CO LTD
View PDF5 Cites 6 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
  • Object-level receipt storage method and node based on code annotationsCode annotation-based object-level receipt storage method and node
  • Object-level receipt storage method and node based on code annotationsCode annotation-based object-level receipt storage method and node
  • Object-level receipt storage method and node based on code annotationsCode annotation-based object-level receipt storage method and node

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0045]

[0046] In the code of the smart contract based on the Solidity language, one or more objects can be identified by exposing the identifier, so that the receipt content corresponding to this part of the object in the receipt data can be stored in plain text, while the rest of the receipt content can be stored in encrypted form. stored in text form. Similarly, in the code of smart contracts written based on Serpent, LLL language, etc., one or more objects can also be marked by exposing identifiers, so as to realize the plain text storage of relevant receipt content.

[0047] The exposure identifier may be a receipt field dedicated to indicate that plaintext storage is required, for example, the keyword plain may be used to represent the exposure identifier. Then, for the receipt content that is expected to be stored in plain text, plain can be added before the corresponding object (or it can be associated with the corresponding object in other ways).

example 2

[0049]

[0050] In the above code example 2, by adding the exposure identifier plain at the front of the code of the smart contract, after the code of the smart contract is executed, all the fields in the generated receipt data are stored in plain text.

[0051] 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 by an exposed identifier, the receipt content corresponding to the From field in the generated receipt data can be stored in plain text after the code of the smart contract is executed. Retrieval operations are performed on the receipt content, for example, the transaction volume initiated by a certain account can be counted.

[0052] It should be pointed out that: in the above code example 2 and its related embodiments, the object (all fields or From field) marked by the exposed identifier "plain" is a contract-level object, so that the first blockchain node stores When...

example 3

[0054]

[0055] In the above code example 3, by adding the exposure identifier "plain" before the type int of the state variable "price" (or, the exposure identifier plain can be placed after the type int), so that after the code of the smart contract is executed , in each field of the generated receipt data (usually including Topic field, Output field, etc.), the receipt content related to the state variable "price" is stored in plain text, then the follow-up can be used for the state variable "price" Retrieve the contents of the receipt. Since the state variable "price" belongs to the contract-level object in Code Example 3, when the code of the smart contract contains multiple events, the contract-level object can be applied to all events in the smart contract, then when multiple events generate their own For the corresponding Logs field, each Logs field (such as the Topic field in the Logs field) will store the receipt content related to the state variable "price" in pl...

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 code annotation-based object-level receipt storage method and node, the method comprising:es a first block chain node receiving receives an encrypted transaction corresponding to a smart contract, the code of the smart contract comprising comprises an object marked by an exposed identifier; the first block chain node decrypts the transaction in a trusted execution environment to obtain a code of the smart contract; the first block chain node executes the code of the smart contract in the trusted execution environment to obtain receipt data; and the first block chain node stores the receipt data, so that the receipt content corresponding to the object marked by the exposed identifier is stored in a plaintext form, and the rest receipt contents are stored in a ciphertext form.

Description

technical field [0001] One or more embodiments of this specification relate to the technical field of blockchain, and in particular to an object-level receipt storage method and node based on code annotation. 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 versatility, and may...

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): G06F21/57G06Q20/38
CPCG06F21/57G06Q20/3827G06Q20/3829
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