Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Encryption method and device and decryption method and device for block chain account book data

An encryption method and chain ledger technology are applied in the fields of encryption method and device, decryption method and device of blockchain ledger data, which can solve the problems of heavy key management work, such as heavy smart contracts, so as to prevent the possibility of being tampered with and improve security. Sexuality and smooth user experience

Active Publication Date: 2020-07-31
杭州烽顺科技信息服务有限公司
View PDF18 Cites 1 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 and decryption method and device for block chain account book data
  • Encryption method and device and decryption method and device for block chain account book data
  • Encryption method and device and decryption method and device for block chain account book 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 and a decryption method and device for block chain account book data. The encryption method comprises the steps of identifying whether a sensitive field is contained in account book data or not; generating a ciphertext Hash abstract according to the plaintext field value of a sensitive field; packaging the Hash abstract and the unique identifier of a specified private area through an intelligent contract to generate an encrypted code string; generating an encrypted key value pair by taking the encrypted coded string as a key and the plaintext field value as a value, and storing the encrypted key value pair in the specified private area; and replacing the plaintext field value with the encrypted code string to encrypt the sensitive field. The decryption method comprises the following steps: identifying whether account book data contains a sensitive field or not; identifying whether the field value of a sensitive field is an encrypted code string or not; retrieving a plaintext field value in a specified private area through the intelligent contract; and replacing the encrypted code string with the plaintext field value. The invention further discloses corresponding devices. According to the invention, the dependence on key encryption is eliminated, so that the user experience is smoother; and the possibility that the sensitive data is tampered with is eradicated, and the security of the block chain sensitive data is improved.

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
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products