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

Receipt storage method and node in combination with code annotations and user and event typescombining code labeling with user and event types

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 PDF4 Cites 9 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 and node in combination with code annotations and user and event typescombining code labeling with user and event types
  • Receipt storage method and node in combination with code annotations and user and event typescombining code labeling with user and event types
  • Receipt storage method and node in combination with code annotations and user and event typescombining code labeling with user and event types

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0047]

[0048] In the code of the smart contract based on the Solidity language, one or more objects can be marked by exposing the identifier, so that the receipt content corresponding to this part of the object in the receipt data is allowed to be stored in plain text (need to further combine the user 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 objects can also be marked by exposing identifiers, so as to realize the plain text storage of relevant receipt content.

[0049] 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 expected to be stored in plain text, plain can be added before ...

example 2

[0051]

[0052] 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 fields in the generated receipt data are allowed to be stored in plain text. Specifically, when the transaction initiator belongs to the preset user type, for the log generated by the special event function in the receipt data, all receipt contents corresponding to the log are allowed to be 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 by an exposed identifier, after the code of the smart contract is executed, when the transaction initiator belongs to the preset user type, the From field is allowed to correspond to the log generated by the special event function in the receipt data. The receipt content of the account is stored in plain text, then subsequent ret...

example 3

[0055]

[0056]

[0057] 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 , when the transaction initiator belongs to the default user type, for the logs generated by the special event function in the receipt data, the receipt content related to the state variable "price" is allowed to be stored in plain text (provided that the transaction initiator belongs to the default user type), then subsequent retrieval operations can be performed on the receipt content related to the state variable "price".

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

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 code annotations and users and event types, the method may comprise: a first blockchain 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 smart contract, wherein the smart 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 stores the receipt data; when the transaction initiator belongs to a preset user type, at least one part of the receipt content in the log corresponding to the special event function is stored in a plaintext form, the rest content of the receipt data is stored in a ciphertext form, and the at least one part of the receipt content is matched with the object marked by the exposure 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 annotation with user 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 in ver...

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): G06F16/27G06F21/62H04L29/08
CPCG06F21/6272G06F16/27H04L67/10
Inventor 刘琦闫莺魏长征
Owner ADVANCED NEW 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