A method and blockchain for implementing smart contract data encryption
A smart contract and data encryption technology, applied in data encryption method and blockchain field, can solve the problems of blockchain utility discount, lack of proper protection of privacy, etc., to achieve the effect of protecting private data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] figure 2 The scheme of Example 1 of the present invention is shown.
[0055] Such as figure 2 As shown, the present embodiment implements the following steps on a block chain according to the above-mentioned method:
[0056] Step 110: The transaction initiator node on the blockchain executes the transaction locally on the smart contract. The state of the smart contract before executing the transaction is S1, and the state of the smart contract after executing the transaction is S2. Among them, the transaction is an encrypted private transaction Enc(Tx). A smart contract is a smart contract whose content is encrypted.
[0057] Before executing a transaction: smart contracts such as Figure 5 Shown, in this embodiment, it is through the function Enc key () Encrypted smart contract, whose hash value is smart contract state S1;
[0058] Execute the transaction: the transaction initiator node will first Figure 5 The shown smart contract is decrypted, and the follow...
Embodiment 2
[0071] image 3 The process of Embodiment 2 of the present invention is schematically shown from the user's point of view.
[0072] Such as image 3 As shown, this embodiment is basically the same as Embodiment 1. After collecting all signatures, it broadcasts to the entire network, that is, the change of the state of the smart contract from S1 to S2 [S1→S2] and the signatures of each relevant node are sent to all node. The brief steps are as follows:
[0073] User A sends the change of the state of the smart contract from S1 to S2 [S1→S2] and the encrypted private transaction Enc(Tx) to each relevant node V0~ on the blockchain related to the smart contract through the transaction initiator node V2.
[0074] Each relevant node respectively verifies whether the state of the smart contract changes from S1 to S2 after the transaction is executed, and if so, the relevant node returns to the transaction initiator node a signature representing the verification by the relevant no...
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