Transaction group, transaction group constructing method, storage medium, device and system
A construction method and transaction group technology, applied in the blockchain field, can solve problems such as unfairness, inability to achieve atomicity, and inability to send at the same time, so as to achieve the effect of ensuring atomicity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] A transaction group, the transaction group includes multiple transactions, the transaction includes transaction content, Hash value and signature, and the transactions are connected to each other through a Hash linked list, and the head of the transaction group is saved in each transaction Hash value of the transaction.
[0038] Through such a structure, any transaction is deleted or modified from the transaction group, and it is easy to judge that the transaction group is wrong. This guarantee is very important. Users can safely sign their own transactions without fear of other parties modifying any transaction.
Embodiment 2
[0040] Such as figure 2 As shown, a transaction group in this embodiment is further improved on the basis of Embodiment 1, and the Hash linked list is the Hash value of one of the adjacent transactions. Each transaction in the transaction group is constructed in the order from the tail transaction to the head transaction. By adding the Hash value of the previous transaction to the content of the current transaction, the two adjacent transactions are associated through the Hash value. Finally, the head transaction is constructed, and the Hash value of the head transaction is placed in the content of each transaction. When any transaction in the transaction group is changed, an error will occur in the transaction group. Any transaction in the transaction group Neither can succeed.
Embodiment 3
[0042] A transaction group in this embodiment is further improved on the basis of Embodiment 1 or 2, the Hash value of the transaction includes the transaction content, the Hash value of the next transaction and the total number of transactions. When constructing this transaction, add the Hash value of the next transaction. When the content of the previous transaction changes, this transaction cannot be established, and a transaction error occurs. It is guaranteed that each transaction within the transaction group cannot be changed. Each transaction succeeds or fails at the same time, ensuring the atomicity of the transaction group. The content of the transaction can include smart contracts or smart assets. When multiple parties involve multiple smart contracts or smart assets, for interdependent transactions, it can ensure the atomicity of all transactions during execution, reduce execution risks, and avoid unfair transactions. .
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