Unlock instant, AI-driven research and patent intelligence for your innovation.

Receipt storage methods and nodes combining code annotation and multi-type dimensions

A multi-type, receipt technology, applied in the blockchain field, can solve the problems of poor versatility, little regard for privacy performance, and high complexity

Active Publication Date: 2021-04-27
ADVANCED NEW TECH CO LTD
View PDF6 Cites 0 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 methods and nodes combining code annotation and multi-type dimensions
  • Receipt storage methods and nodes combining code annotation and multi-type dimensions
  • Receipt storage methods and nodes combining code annotation and multi-type dimensions

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0049]

[0050]In the code based on the intelligent contract written in the Solidity language, one or more fields can be labeled by exposure identifiers such that the receipt content corresponding to this part of the field is allowed to store in a clear text (need to further combine the user type, " The dimension of the transaction type and the event function is determined whether or not the original storage is used), and the rest of the receipt should be stored in ciphertext. Similarly, in the code of the intelligent contract written based on the Serpent, LLL language, one or more fields can also be labeled by exposure identifiers to implement the clear text storage of the relevant receipt content.

[0051]The exposed identifier can be dedicated to indicate the receipt fields that allow plain text storage, such as using keyword plain to characterize the exposed identifier. Then, for the receipt content that is desirable in express form, it can be added to the corresponding field (or othe...

example 2

[0053]

[0054]In the above-described code example 2, an exposed identifier PLAIN is added at the time of the code of the intelligent contract, so that the code of the smart contract is executed, and when the transaction initiator belongs to the preset user type, the receipt data is generated by the special event function. The log allows the receipt content that allows the exposed fields corresponding to the transaction type of the intelligent contract to be stored in a clear text. For example, when the FROM field in the log belongs to the exposure field, the TO field does not belong to the exposure field, the receipt data can be recorded. The FROM field in all logs is stored in a clear text, and the To field is stored in ciphertext, then the retrieval operation can be implemented for the receipt content in the FROM field, such as the amount of transactions initiated by a certain account.

[0055]In an embodiment, the intelligent contract corresponding to the transaction received by the f...

example 3

[0103]

[0104]

[0105]In the above-described code example 3, similarly to the code example 2, the exposed identifier "Plain" is located in front of the code of the intelligent contract, so that all fields in the receipt data are labeled as the contract-level field; at the same time, intelligent contracts Contains events CURRENTPRICE1 and events CURRENTPRICE2: Assuming event currentprice1 corresponds to a special event function defined in the Special Event Function list, the event currentprice2 corresponds to the normal event function, then the transaction initiator belongs to the preset user type and the FROM field is the exposed field. Next, in the log log1, log2 generated by the event currentprice1 and event currentprice2, the FROM field contained in the log log1 is stored in a clear text, and the FROM field contained in the log log2 is stored in ciphertext; Similarly, log log1 belongs to the exposed field. Other fields are also stored in a clear text, and non-exposed fields are store...

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 this specification provide a method and node for storing receipts that combine code annotation and multi-type dimensions, including: a first blockchain node receives an encrypted transaction corresponding to a smart contract, and the code of the smart contract includes By exposing the field indicated by the identifier; the first blockchain node decrypts the transaction in the trusted execution environment to obtain the smart contract, and the smart contract contains special event functions; the first blockchain node executes the smart contract in the trusted execution environment, The obtained receipt data includes the log corresponding to the special event function; the first blockchain node determines the exposed field according to the transaction type; the first blockchain node stores the receipt data, so that when the transaction initiator belongs to the preset user type, the corresponding At least a part of the receipt content in the log of the special event function is stored in plain text, the rest of the receipt data is stored in cipher text, and at least a part of the receipt content matches the exposed field indicated by the exposure identifier.

Description

Technical field[0001]One or more embodiments of the present specification relate to the field of block chains, in particular to a receipt storage method and node that binds the code labeling and a multi-type dimension.Background technique[0002]The block chain technology is constructed above the transmission network (such as point-to-point network). The network node in the transmission network uses a chain data structure to verify and store data and use a distributed node consensus algorithm to generate and update data.[0003]The current largest two challenges in the current enterprise-level block chain platform is privacy and performance, and it is often solved simultaneously with these two challenges. Most solutions are privacy by losses, or have no privacy to pursue performance. Commonly solved privacy issues, such as homomorphic encryption, and zero-know proof, high, universal, and may also bring serious performance loss.[0004]Trusted Execution Environment, TEE is another way to s...

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/38
CPCG06Q20/3829
Inventor 刘琦闫莺魏长征
Owner ADVANCED NEW TECH CO LTD