A method for encrypting sensitive data on blockchain

Through RSA user system certification and customized traceability mechanism, data diversification and privacy issues are solved, unified storage and traceability of blockchain data are realized, the cost of use of enterprises and institutions is reduced, and the use of blockchain technology is simplified. application.

CN114282238BActive Publication Date: 2024-10-01ENTROPY CHAIN TECH (FUJIAN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111576156.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-10-01
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

Due to data diversification, complex data structures and inconsistent data privacy levels, it is difficult for enterprises and institutions to add business data, user data and interaction data to the blockchain, leading to hesitation in the application of blockchain technology and concerns about data transparency.

Method used

Use RSA user system authentication, design DB_table_key and primary_key to identify system entry information, use JSON{key:value} to implement custom traceability key-value pairs, design HASH control privacy protection mechanism and notify_url notification on-chain events, allowing users to customize data storage methods and privacy level, and unify the data uploading process.

Benefits of technology

It has achieved the unification, standardization and compatibility of data, completed customized blockchain data storage and traceability functions, reduced usage costs, simplified the introduction of blockchain technology into the business system, and provided assistance in data management. information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114282238B_ABST
    Figure CN114282238B_ABST
Patent Text Reader

Abstract

The invention belongs to the field of blockchain, and specifically is a sensitive data blockchain encryption algorithm, which comprises the following steps: RSA user system authentication; designing DB_table_key to identify system entry information; designing primary_key to identify system entry information; designing JSON{key:value} to implement custom traceability key-value pairs; designing HASH to control privacy protection mechanism; designing VALUE to implement original text storage of chained data; designing notify_url to control notification of each chained event; and realizing the unification and standardization of the entire traditional data chain, compatibility with most data structures, and completion of the functions of customized and diversified blockchain data evidence storage and traceability systems, which solves the problem that many user enterprises, institutions, etc. want to add their own business data, user data, interactive data, and privacy data to the blockchain for decentralization, but because of the diversity of data, complex data structure, multiple business processes, and inconsistent data privacy, many users have no way to apply blockchain technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain, and in particular to a sensitive data encryption method on blockchain. Background Art

[0002] Blockchain is a shared database. The data or information stored in it has the characteristics of being unforgeable, traceable, traceable, open and transparent, and collectively maintained.

[0003] With the development of science and technology and society, encryption algorithms have been continuously improved. Existing encryption algorithms can effectively encrypt ordinary data and prevent information leakage.

[0004] Currently, many user companies, institutions, etc. want to add their business data, user data, interaction data, and privacy data to the blockchain for decentralization. However, due to the diversity of data, complex data structure, multiple business processes, and inconsistent data privacy, many users are unable to apply blockchain technology, and are hesitant about uploading data to the chain and worried about data transparency. Therefore, a sensitive data encryption method for blockchain is proposed to address the above problems. Summary of the invention

[0005] In order to make up for the shortcomings of the existing technology, many user companies, institutions, etc. currently want to add their business data, user data, interaction data, and privacy data to the blockchain for decentralization. However, due to the diversity of data, complex data structure, multiple business processes, and inconsistent data privacy, many users have no way to apply blockchain technology. The present invention proposes a sensitive data blockchain encryption method.

[0006] The technical solution adopted by the present invention to solve the technical problem is: a sensitive data blockchain encryption method described in the present invention, the method comprises the following steps:

[0007] S1: RSA user system authentication;

[0008] S2: Design DB_table_key to identify system entry information;

[0009] S3: Design primary_key to identify system entry information;

[0010] S4: Design JSON{key:value} to implement custom traceability key-value pairs;

[0011] S5: Design a HASH control privacy protection mechanism;

[0012] S6: Design VALUE to realize the original storage of on-chain data;

[0013] S7: Design notify_url to control notification of each on-chain event

[0014] It allows users to input the internal data storage method, which is convenient for matching with internal data, including the internally stored database table name and internal ID. It also allows users to input the ID for traceability, which can easily associate multiple on-chain data together (for the same on-chain data, up to two traceability IDs are allowed to be input, tracing from two dimensions), and allows users to decide whether to hash the data before uploading it to the chain.

[0015] Preferably, the S1 is specifically the following steps:

[0016] A1: Signature method: When the user backend calls the interface of the subchain platform, it is necessary to concatenate the called interface name and all parameters and sign it with the examiner certificate;

[0017] A2: Signature method: Use the private key secretKey to encrypt the concatenation of the called interface name and the calling parameters using RSA encryption method, and then you can get the value of the signature item signature in the request parameter Header part of the relevant interface definition;

[0018] A3: Signature algorithm, sort the parameters in the request body from small to large by parameter name, concatenate according to key1=value1&key2=value2, concatenate with empty string if the parameter is empty, and finally concatenate the concatenated value with method=method name of the corresponding interface. The obtained value is signed with the private key of the auditor's certificate, signature algorithm algorithm=SHA256withECDSA, and the signature is a string obtained by base64, with character set utf-8.

[0019] Preferably, S2 is specifically db_table_key, which is used to identify the source from a certain system and classify the different access system data entries of the platform, so as to facilitate the later connection with different systems, different institutions and other multi-dimensional data sources.

[0020] Preferably, the S3 is specifically Primary_key, which is an identifier used to identify business subsystems from different platforms, and is used to classify the internal subsystem data entries of the platform, so as to achieve data decoupling, data classification, and data archiving identification of different platforms and different internal subsystems.

[0021] Preferably, the S4 is specifically a traceability module that matches different dimensions of the on-chain data through JSON{key:value} key-value pairs, and implements the user's traceability requirements for different business logics through custom key-value pairs. The user only needs to add the traceability identifier of the source data to the key-value pair to bind the traceability information, and the corresponding traceability process can be retrieved through this information later.

[0022] Preferably, S5 is specifically for the user's data privacy level. The user can customize whether to encrypt the data for chain upload according to different privacy levels. If the user chooses HASH chain upload, the platform's data chain upload will encrypt the original data to generate a unique HASH for data chain upload, otherwise the data will be uploaded to the chain in its original form.

[0023] Preferably, the S6 specifically uses JSON format for data storage for different business chain data and different format data, so as to ensure the uniformity of data format, facilitate the extraction and display of business data, and be compatible with source data of most platforms, systems, and businesses.

[0024] Preferably, S7 is specifically when the blockchain network is busy, resulting in transaction congestion, a submission to the chain may need to wait for multiple blocks before being processed by the sorting node. Therefore, it may not be packaged into the block when the query is first made. At this time, the query result is waiting for the chain. After being successfully packaged and accepted by the peer, the result becomes the chain.

[0025] The present invention is beneficial in that:

[0026] Through steps S1-7, the present invention realizes the unification and standardization of the entire traditional data chain, compatibility with most data structures, and completion of the customized and diversified blockchain data storage and traceability system. It solves the problem that many user companies, institutions, etc. want to add their own business data, user data, interaction data, and privacy data to the blockchain for decentralization, but because of the diversity of data, complex data structure, multiple business processes, and inconsistent data privacy, many users have no way to apply blockchain technology. It covers the standards for storage and traceability of most business data, so that ordinary companies, institutions, and individuals can easily apply blockchain technology, greatly reducing the cost of use and the cost of introducing the technology into the business system. At the same time, it also provides additional auxiliary information, which can facilitate users to manage data. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 It is a schematic diagram of the overall process of the method of the present invention;

[0029] Figure 2 It is a schematic diagram of the specific step S1 of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] Embodiment 1

[0032] See also Figure 1-2 As shown, a sensitive data blockchain encryption method includes the following steps:

[0033] S1: RSA user system authentication;

[0034] S2: Design DB_table_key to identify system entry information;

[0035] S3: Design primary_key to identify system entry information;

[0036] S4: Design JSON{key:value} to implement custom traceability key-value pairs;

[0037] S5: Design a HASH control privacy protection mechanism;

[0038] S6: Design VALUE to realize the original storage of on-chain data;

[0039] S7: Design notify_url to control the notification of each on-chain event.

[0040] The S1 specifically comprises the following steps:

[0041] A1: Signature method: When the user backend calls the interface of the subchain platform, it is necessary to concatenate the called interface name and all parameters and sign it with the examiner certificate;

[0042] A2: Signature method: Use the private key secretKey to encrypt the concatenation of the called interface name and the calling parameters using RSA encryption method, and then you can get the value of the signature item signature in the request parameter Header part of the relevant interface definition. Signature is the digital signature of the input parameter.

[0043] A3: Signature algorithm, sort the parameters in the request body by parameter name from small to large, and concatenate them according to key1=value1&key2=value2. If the parameter is empty, concatenate it with an empty string, for example: key1=&key2=value2; finally concatenate the concatenated value with method=the method name of the corresponding interface, for example: key1=&key2=value2&method=upToChain; the obtained value is signed with the private key of the auditor's certificate, the signature algorithm algorithm=SHA256withECDSA, and the signature is a string obtained by base64, with the character set utf-8.

[0044] Test private key: MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgxMulr5Csyj3UgN0v6v7gfIE6d4y9C / erOwwYpgcLniCgCgYIKoZIzj0DAQehRANCAAR6UM9sKrLU0dsHuFluLOSwNzvWskCgBVWQHcq6MWeiM9g32g7u / OFcjm / rWbmopm8q5aRWMllIp3zHM3q / YAsj;

[0045] Test public key: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEelDPbCqy1NHbB7hZbizksDc71rJAoAVVkB3KujFnojPYN9oO7vzhXI5v61m5qKZvKuWkVjJZSKd8xzN6v2ALIw==

[0046] Signature data: desc=desc&innerDBTable=table1&innerPrimaryKey=1&needHash=false&value=149848948&method=upToChain

[0047] Signature result (based on the characteristics of the algorithm, the result of each signature operation will be different, but this does not affect the signature verification): MEUCIHicGU5HeodOP9+L1Oah1x6WnfD5F37WeMBeapUbw5ddAiEA / DCIqgvFWZSyS3pMm32BQMeeSyJj+IGb+KTsVLF+EG0=

[0048] The purpose of this signature is to verify the identity of the interface caller and prevent unexpected sources from calling the interface.

[0049] The S2 is specifically db_table_key, which is used to identify the source from a certain system and classify the different access system data entries of the platform, so as to facilitate the subsequent connection with different systems, different institutions and other multi-dimensional data sources.

[0050] The S3 is specifically Primary_key, which is used to identify the business subsystems from different platforms, and is used to classify the internal subsystem data entries of the platform to achieve data decoupling, data classification, and data archiving identification of different platforms and different internal subsystems.

[0051] The S4 is specifically a traceability module that matches different dimensions of on-chain data through JSON {key:value} key-value pairs, and implements the user's traceability requirements for different business logics through custom key-value pairs. The user only needs to add the traceability identifier of the source data to the key-value pair to bind the traceability information, and the corresponding traceability process can be retrieved through this information later.

[0052] The S5 is specifically for the user's data privacy level. The user can customize whether to encrypt the data on the chain according to different privacy levels. If the user chooses HASH on the chain, the platform's data on the chain will encrypt the original data to generate a unique HASH for data on the chain, otherwise the data will be on the chain in its original form.

[0053] The S6 specifically uses JSON format for data storage for different business chain data and different formats, ensuring the uniformity of data format and facilitating the extraction and display of business data. It is compatible with source data of most platforms, systems, and businesses.

[0054] Specifically, when the blockchain network is busy, resulting in transaction congestion, a submission to the chain may need to wait for multiple blocks before being processed by the sorting node. Therefore, it may not be packaged into the block when the query is first made. At this time, the query result is waiting for the chain. After being successfully packaged and accepted by the peer, the result becomes on the chain.

[0055] Working principle: RSA user system authentication; design DB_table_key to identify system entry information; design primary_key to identify system entry information; design JSON{key:value} to implement custom traceability key-value pairs; design HASH to control privacy protection mechanism; design VALUE to implement original text storage of on-chain data; design notify_url to control notification of each on-chain event.

[0056] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0057] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A sensitive data encryption method on blockchain, characterized by: The method comprises the following steps: S1: RSA user system authentication; S2: Design DB_table_key to identify system entry information; The S2 is specifically DB_table_key, which is used to identify the source from a certain system and classify the different access system data entries of the platform; S3: Design primary_key to identify system entry information; The S3 is specifically primary_key, which is used to identify the business subsystems from different platforms, and is used to classify the internal subsystem data entry of the platform, so as to achieve data decoupling, data classification, and data archiving identification of different platforms and different internal subsystems; S4: Design JSON{key:value} to implement custom traceability key-value pairs; S4 is specifically a traceability module that matches different dimensions of on-chain data through JSON {key:value} key-value pairs, and implements the user's traceability requirements for different business logics through custom key-value pairs; S5: Design a HASH control privacy protection mechanism; S5 is specifically for the user's data privacy level. The user can customize whether to encrypt the data on the chain according to different privacy levels. If the user chooses HASH on the chain, the platform's data on the chain will encrypt the original data to generate a unique HASH for data on the chain, otherwise the data will be on the chain in its original form; S6: Design VALUE to realize the original storage of on-chain data; S6 specifically uses JSON format for data storage for different business chain data and different formats of data; S7: Design notify_url to control the notification of each on-chain event; Specifically, when the blockchain network is busy, resulting in transaction congestion, a submission to the chain may need to wait for multiple blocks before being processed by the sorting node. Therefore, it may not be packaged into the block when the query is first made. At this time, the query result is waiting for the chain. After being successfully packaged and accepted by the peer, the result becomes on the chain.

2. A sensitive data blockchain encryption method according to claim 1, characterized in that: The S1 specifically comprises the following steps: A1: Signature method: When the user backend calls the interface of the subchain platform, it is necessary to concatenate the called interface name and all parameters and sign it with the examiner certificate; A2: Signature method: Use the private key secretKey to encrypt the concatenation of the called interface name and the calling parameters using RSA encryption method, and then you can get the value of the signature item signature in the request parameter Header part of the relevant interface definition; A3: Signature algorithm, sort the parameters in the request body from small to large by parameter name, concatenate according to key1=value1&key2=value2, concatenate with empty string if the parameter is empty, and finally concatenate the concatenated value with method=method name of the corresponding interface. The obtained value is signed with the private key of the auditor's certificate, signature algorithm algorithm=SHA256withECDSA, and the signature is a string obtained by base64, with character set utf-8.

Citation Information

Patent Citations

  • Data processing method and device based on block chain

    CN109086325A

  • Method and apparatus for querying account privacy information in blockchain

    WO2021179743A1

  • Resource demand information processing

    WO2021213328A1