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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com