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

Active Publication Date: 2020-05-12
ZHONGAN INFORMATION TECH SERVICES CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practical applications, transactions issued by enterprises may contain important business secrets at any time, so if the privacy of transactions cannot be properly protected, the practicability of blockchain will be greatly reduced

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
  • A method and blockchain for implementing smart contract data encryption
  • A method and blockchain for implementing smart contract data encryption
  • A method and blockchain for implementing smart contract data encryption

Examples

Experimental program
Comparison scheme
Effect test

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...

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

Disclosed is a method for conducting an encrypted transaction based on a smart contract. The method comprises: executing a transaction based on a smart contract, wherein the states of the smart contract before and after the execution of the transaction are respectively a first state and a second state; each relevant node verifying a change, from the first state to the second state, in the state of the smart contract, and returning a signature if verification is passed; and other nodes verifying the signature of each relevant node, and returning verification pass information if verification is passed. In the embodiments of the present invention, all nodes participating in consensus are divided into relevant nodes relevant to a smart contract and other non-relevant nodes irrelevant to the smart contract; and whether a change in the state of the smart contract conforms to a corresponding transaction is verified only within the range of each relevant node, and the other non-relevant nodes indirectly verify, by means of checking the signature of each relevant node, whether the change in the state of the smart contract conforms to a corresponding transaction, thereby not only reaching a consensus on a change in the state of the smart contract within the range of all the nodes, but also protecting private data.

Description

technical field [0001] The invention relates to a data encryption method and a block chain, in particular to a smart contract data encryption method and a block chain. Background technique [0002] In a broad sense, blockchain refers to a brand new distribution that uses block chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, and uses cryptography to ensure the security of data transmission and access. infrastructure and computing paradigms. Blockchain technology collectively maintains a reliable database in a decentralized and trustless manner to solve the trust and security issues of transactions. [0003] Blockchain technology is not a single technology, but the result of the integration of multiple technologies. These technologies are combined in a new structure to form a new way of data recording, storage and expression, mainly involving the following four technology: [0004] 1. Distributed ledger...

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): H04L9/32H04L9/08G06F21/62
CPCG06F21/6263G06F2221/2107H04L9/0822H04L9/3247
Inventor 马环宇岑园园赵敬李雪峰吴小川王晖
Owner ZHONGAN INFORMATION TECH SERVICES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products