Encryption method and device, decryption method and device of blockchain ledger data

An encryption method and chain ledger technology, applied in the fields of encryption method and device for blockchain ledger data, decryption method and device, can solve the problems of heavy key management smart contracts, etc., to eliminate the possibility of tampering and improve user experience Smooth, safety-enhancing effects

Active Publication Date: 2022-05-13
杭州烽顺科技信息服务有限公司
View PDF18 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The storage security of the private key can use the blockchain isolation storage technology, such as channel isolation, privacy area, etc., but not only the increased key management work is a heavy task for the smart contract

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
  • Encryption method and device, decryption method and device of blockchain ledger data
  • Encryption method and device, decryption method and device of blockchain ledger data
  • Encryption method and device, decryption method and device of blockchain ledger data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] In Example 1, the smart contract acquires the unique identifier of the privacy zone specified by the system, if the value is: zoneId = 63370738175000000. Pack the Hash summary and the unique identifier zoneId of the specified privacy zone into a json object:

[0074] ["0DCD85B96E3A9F644CB3F086738FFCEB4C3E872E","63370738175000000"].

[0075] The json object generated in Example 1 is encrypted and encoded by the Base64 algorithm, and the encrypted encoded string after encoding is:

[0076] WyIwRENEODVCOTZFM0E5RjY0NENCM0YwODY3MzhGRkNFQjRDM0U4NzJFIiwiMTU4Njk0NTgwNCJd.

[0077] The encrypted code string is unique within the scope of application and can be used as the key of the blockchain K-V storage mode.

[0078] Step 104, using the encrypted code string as the key and the plaintext field as the value to generate an encrypted key-value pair, and store it in a designated privacy area.

[0079] Different blockchain platforms may have different mechanisms for implementing ...

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

The invention discloses an encryption method and device, a decryption method and a device for blockchain account book data. The encryption method includes: identifying whether sensitive fields are contained in the account book data; generating a ciphertext Hash summary according to the plain text field values ​​of the sensitive fields; The contract packs the Hash summary and the unique identifier of the specified privacy area to generate an encrypted code string; the encrypted code string is used as the key, and the plaintext field value is used to generate an encrypted key-value pair, which is stored in the designated privacy area; the encrypted code string is used instead of the plain text field value to be sensitive Field encryption; the decryption method includes: identifying whether the ledger data contains sensitive fields; identifying whether the field value of the sensitive field is an encrypted code string; retrieving the plaintext field value in the designated privacy area through the smart contract; replacing the encrypted code string with the plaintext field value; and A corresponding device is disclosed. The present invention gets rid of the dependence on key encryption, makes user experience smoother; eliminates the possibility of sensitive data being tampered with, and improves the security of blockchain sensitive data.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to an encryption method and device for block chain account book data, and a decryption method and device. Background technique [0002] At present, the alliance parties of the alliance blockchain can realize fair bookkeeping and data sharing on their respective nodes, and the data security mechanism of the blockchain can ensure that members other than alliance members cannot obtain data on the alliance chain. However, in practical applications, there are often some sensitive fields in the data of the alliance blockchain. These sensitive fields need to be kept secret from one or more alliance members, and other data other than sensitive fields can be shared. For example, for a certain procurement service, sensitive information such as purchase price and purchaser can be opened to the client and the platform that undertakes the service, but may need to be kept secret for ...

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): G06F21/60G06F21/62G06F21/64G06F40/279H04L9/06
CPCG06F21/602G06F21/6245G06F21/64H04L9/0643
Inventor 吴烽
Owner 杭州烽顺科技信息服务有限公司
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