An encryption method applied to blockchain trusted data space
By using data stamps and spacers to encrypt the original data in the trusted data space of blockchain, the problem of difficult data security during blockchain directory leakage is solved, and distributed storage and retrieval of data is realized, improving data security and privacy protection.
Patent Information
- Application Number
- CN202510202203.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-02-24
AI Technical Summary
It is difficult to ensure data security when the blockchain directory is leaked, and the central node is complex, making it difficult to effectively use the blockchain to encrypt data.
By using data stamps and spacers in the trusted data space of the blockchain, a interval insertion table is formed and a key is generated, and recorded in the key directory of the blockchain, the distributed storage and retrieval of data is realized.
It effectively reduces the load of blockchain central processors, improves data security, and ensures the integrity and privacy protection of data in trusted data space.
Smart Images

Figure CN119691815B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of decentralized computing technology, and in particular to an encryption method applied to a blockchain trusted data space. Background Art
[0002] With the deepening of digitalization, problems such as data leakage and privacy infringement are becoming increasingly serious. As a decentralized and tamper-proof technology, blockchain provides the possibility of ensuring data security and traceability. At the same time, privacy computing technology can perform data analysis while protecting data privacy, providing a new solution for data security. Therefore, combining blockchain with privacy computing technology and applying it to trusted data space has broad application prospects.
[0003] Chinese patent authorization announcement number: CN118761101B, discloses a privacy data processing method, device, equipment, storage medium and program product, the method is applied to the data demand node in the member node of the blockchain, the blockchain includes a central node and multiple member nodes, the method includes: sending data demand information to the central node, so that the central node determines the data providing node in the member node based on the data demand information, and sends the data demand information to the data providing node; in response to the transaction order sent by the data providing node, generating task configuration information based on the transaction order, and determining the participating nodes; allocating data processing tasks to each participating node according to the task configuration information, the data processing tasks include the allocation parameters corresponding to each participating node; managing data asset permissions based on the processing results of the data processing tasks fed back by each participating node, thereby ensuring efficient data management while effectively alleviating data processing pressure to achieve full life cycle management of data assets.
[0004] It can be seen that the above technical solution has the following problems: when the blockchain directory is leaked, it is difficult to ensure the security of the data. At the same time, the central node is too complex and large, making it difficult to effectively utilize the advantages of blockchain to encrypt data. Summary of the invention
[0005] To this end, the present invention provides an encryption method applied to the trusted data space of blockchain, so as to overcome the problems in the prior art that it is difficult to ensure the security of data when the directory of the blockchain is leaked, and at the same time, the central node is too complex and large, making it difficult to effectively utilize the advantages of blockchain to encrypt data.
[0006] To achieve the above purpose, the present invention provides an encryption method applied to the blockchain trusted data space, which is divided into an encryption method and a reading method, wherein:
[0007] On the one hand, the present invention provides a method for encrypting original data using a directory of blockchain technology. For a single copy of original data, the encryption process includes:
[0008] Adsorbing the data stamp at a predetermined position of the original data, and adding a spacer to the data stamp in a preset manner for spacing marking;
[0009] In response to receiving a trigger signal for adding a spacer to the data stamp and an end signal, determining an interval insertion table in which data continuity of the data stamp changes with the addition of the spacer;
[0010] Forming a number of keys corresponding to the data stamp according to the interval insertion table, and recording them in the corresponding key directory of the blockchain;
[0011] In response to the generation of the key, the original data stamp is inserted into the table at the interval and stored in the plurality of blockchain partitions, and a data directory corresponding to the partition is formed.
[0012] Furthermore, when constructing the interval mark, it includes:
[0013] Forming a corresponding privacy stamp according to the identified privacy data;
[0014] In response to the generation of the privacy stamp, a privacy interval marker corresponding to the privacy marker is generated according to the privacy marker.
[0015] Furthermore, when generating the key directory, it includes:
[0016] The privacy interval mark is recorded in the corresponding key directory, and the corresponding private data is stored in the blockchain partition corresponding to the key directory.
[0017] Furthermore, when constructing the interval insertion table, it includes:
[0018] Constructing a connector that is identical to the privacy stamp character in the interval insertion table;
[0019] In response to the formation of the connector, a blank database corresponding to the connector is generated.
[0020] Furthermore, the process of storing the original data in the blockchain includes:
[0021] Generate the same number of directories according to the number of the separators in the data stamp;
[0022] Determining a segmentation method of the original data according to character spacing;
[0023] Using adjacent separators as markers, the corresponding original data is stored in the corresponding blockchain partition.
[0024] On the other hand, the present invention also provides a method for reading original data using a directory of blockchain technology, comprising:
[0025] Read the interval insertion table, obtain several keys corresponding to the interval insertion table,
[0026] And, identify several corresponding blockchain partitions according to the key;
[0027] Inserting each key into the table according to the interval to form a data stamp containing a separator;
[0028] Eliminating a number of spacers in the data stamp according to the spacer insertion table;
[0029] In response to the removal of the separator, the data stored in the corresponding blockchain partition is spliced according to the data stamp of the removed separator;
[0030] Complete the splicing and generate the corresponding original data.
[0031] Further, when identifying the blockchain partition according to the key, if the key corresponds to the privacy stamp, the process of reading the blockchain partition includes:
[0032] Generate a corresponding connector according to the privacy stamp;
[0033] Recognize the data stamp portion corresponding to the connector as having passed verification;
[0034] Generate original data without private data.
[0035] Furthermore, the process of eliminating each separator includes:
[0036] Insert the table to verify the corresponding key length according to the interval;
[0037] Sequentially retrieve the data in several blockchain partitions corresponding to each key;
[0038] When data reading is completed, the separator after the corresponding key is deleted.
[0039] Furthermore, the process of splicing the data stored in the blockchain partition includes:
[0040] Verify the length of each key and the length of the data stamp according to the interval insertion table;
[0041] Check whether the data stamp is missing, where:
[0042] The response data stamp includes a connector, and it is determined that the data stamp corresponding to the connector is not missing;
[0043] The response data stamp includes an error part, and is judged as missing data stamp;
[0044] The response data stamp includes a separator, which is considered as missing data stamp.
[0045] Furthermore, when generating the original data, it includes:
[0046] The keys are deleted and new keys are generated when the original data is stored.
[0047] Compared with the prior art, the beneficial effect of the present invention lies in that the original data is encrypted by setting a data stamp, and the data stamp is re-encrypted by inserting a spacer in the data stamp. At the same time, the original data is marked by setting a privacy stamp, and the privacy data of the original data is hidden by adding a connector to the privacy stamp. While effectively reducing the load of the blockchain central processor, the data is distributedly stored and retrieved, thereby effectively improving the security of the data trusted data space.
[0048] Furthermore, by dividing the original data and storing them separately, storing the data in the corresponding blockchain partitions, and marking the corresponding blockchain partitions with privacy stamps, the security of private data is effectively improved while ensuring data integrity, thereby further improving the security of the data trusted data space.
[0049] Furthermore, by setting connectors, data stamps and original data with blank data can be read, which reduces the risk of data leakage and improves the overall stability of the file, thereby further improving the security of the data trusted data space.
[0050] Furthermore, the original data stored in the blockchain is encrypted by setting several levels of keys, and blank blockchain partitions are set according to the privacy data, thereby effectively improving the security of the data trusted data space while avoiding the leakage of privacy data.
[0051] Furthermore, by changing the key in real time, the key used to complete data reading is deleted and updated, which effectively improves the security of the blockchain while avoiding the risk of privacy leakage caused by multiple readings of the key, thereby further improving the security of the data trusted data space. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 The encryption flow chart of the privacy computing method of the present invention;
[0053] Figure 2 A schematic diagram of a data stamp structure in which a spacing symbol is inserted according to an embodiment of the present invention;
[0054] Figure 3 is a reading flow chart of the privacy computing method of the present invention;
[0055] Figure 4 A schematic diagram of the splicing process of deleting the spacing symbol according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0057] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0058] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0059] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0060] In order to better understand the scheme described in the present invention, the terms involved in this scheme are explained below:
[0061] Blockchain technology: Blockchain is a distributed database that combines a series of data blocks in a chain in chronological order into a specific data structure, and uses cryptography to ensure that the distributed ledger cannot be tampered with or forged. In a trusted data space, blockchain can be used to record the source, flow and use of data to ensure the authenticity and integrity of the data.
[0062] Privacy computing technology: Privacy computing is a technology that analyzes data while protecting data privacy. By adopting technical means such as homomorphic encryption and differential privacy, privacy computing can process and analyze data without leaking the original data, thereby protecting data privacy.
[0063] Combined application: Combining blockchain with privacy computing technology can build a trusted data space. The specific methods are as follows:
[0064] Data encryption and storage: Before uploading data to the trusted data space, privacy computing technology is used to encrypt the data to ensure the security of the data during transmission and storage. At the same time, the encrypted data is stored on the blockchain, and the tamper-proof characteristics of the blockchain are used to ensure the authenticity of the data.
[0065] Data access and authorization: In the trusted data space, a blockchain-based access control mechanism is used to ensure that only authorized users can access the data. At the same time, the access log of the data is recorded through the blockchain to trace the flow and use of the data.
[0066] Data processing and analysis: During the data processing and analysis process, privacy computing technology is used to process and analyze the data to ensure accurate analysis results while protecting data privacy. At the same time, the analysis results are stored on the blockchain for subsequent verification and use.
[0067] See also Figure 1 As shown, it is an encryption flow chart of the privacy computing method of the present invention, which uses the directory of blockchain technology to encrypt the original data, including:
[0068] Step Si1, adsorbing the data stamp at a predetermined position of the original data, and adding a spacer to the data stamp in a preset manner for spacing marking;
[0069] Step Si2, in response to receiving a trigger signal for adding a separator to the data stamp and an end signal, determining an interval insertion table in which data continuity of the data stamp changes with the addition of the separator;
[0070] Step Si3, forming a number of keys corresponding to the data stamp according to the interval insertion table, and recording them in the corresponding key directory of the blockchain;
[0071] Step Si4, in response to the generation of the key, the original data stamp is inserted into the table at intervals and stored in several blockchain partitions, and a data directory corresponding to the partition is formed.
[0072] The original data is encrypted by setting a data stamp, and the data stamp is re-encrypted by inserting a spacer in the data stamp. At the same time, the original data is marked by setting a privacy stamp, and the privacy data of the original data is hidden by adding connectors to the privacy stamp. This effectively reduces the load on the blockchain central processor and distributes data storage and retrieval, thereby effectively improving the security of the data trusted data space.
[0073] In one embodiment, data encryption and storage for IoT devices includes the following steps:
[0074] Step 1: The raw data (such as temperature, humidity, pressure, etc.) collected by the IoT device is encapsulated into a data packet. The data stamp is adsorbed to the predetermined position of the raw data (such as the header of the data packet) and is marked in a preset manner (adding a separator "#" every 10 bytes).
[0075] Sample data stamp: Temp#12.5#Humidity#60%#Pressure#1013hPa
[0076] Step 2: When the system receives a trigger signal for adding a spacer (such as completion of data stamp generation) and an end signal (data acquisition completion), the system analyzes the data stamp and determines the interval insertion table where data continuity changes with the addition of the spacer.
[0077] Interval insertion table: [0, 5, 12, 20] (indicates the position where the spacer is inserted)
[0078] Step 3: Based on the interval insertion table, the system generates several keys for the data stamp (for example, one key for each interval character) and records these keys in the corresponding key directory of the blockchain.
[0079] Generate a key:
[0080] Key1: 0xabc123
[0081] Key2: 0xdef456
[0082] Key3: 0xghi789
[0083] Key Directory (Blockchain Records):
[0084] copy
[0085] {
[0086] "DataStampID": "IoT_Device_001",
[0087] "Keys": ["0xabc123", "0xdef456", "0xghi789"]
[0088] }
[0089] Step 4: In response to the generation of the key, the system inserts the original data into a table at intervals and stores it in several blockchain partitions, and forms a data directory corresponding to the partition.
[0090] Blockchain partition storage:
[0091] Partition 1: Temp#12.5 (corresponding key: 0xabc123)
[0092] Partition 2: Humidity#60% (corresponding key: 0xdef456)
[0093] Partition 3: Pressure#1013hPa (corresponding key: 0xghi789)
[0094] Data Directory (Blockchain Records):
[0095] copy
[0096] {
[0097] "DataStampID": "IoT_Device_001",
[0098] "Partitions": [
[0099] {"PartitionID": 1, "Data": "Temp#12.5", "Key": "0xabc123"},
[0100] {"PartitionID": 2, "Data": "Humidity#60%", "Key": "0xdef456"},
[0101] {"PartitionID": 3, "Data": "Pressure#1013hPa", "Key": "0xghi789"} ]
[0103] }
[0104] In one embodiment, the medical data privacy protection includes the following steps:
[0105] Step 1: The patient's original medical record data is encapsulated into a data stamp, attached to a predetermined position of the original data (such as the header of a data packet), and marked in a preset manner (a separator "|" is added every other paragraph of text).
[0106] Example data stamp: PatientID:12345|Diagnosis:Flu|Treatment:Rest|Medication:Paracetamol
[0107] Step 2: When the system receives a trigger signal for adding a spacer (e.g., data stamp generation is complete) and an end signal (medical record data entry is complete), the system analyzes the data stamp and determines the interval insertion table where data continuity changes with the addition of the spacer.
[0108] Interval insertion table: [0, 15, 30, 45] (indicates the position where the spacer is inserted)
[0109] Step 3: According to the interval insertion table, the system generates several keys for the data stamp and records these keys in the corresponding key directory of the blockchain.
[0110] Generate a key:
[0111] Key1: 0x1a2b3c
[0112] Key2: 0x4d5e6f
[0113] Key3: 0x7g8h9i
[0114] Key Directory (Blockchain Records):
[0115] copy
[0116] {
[0117] "DataStampID": "Medical_Record_001",
[0118] "Keys": ["0x1a2b3c", "0x4d5e6f", "0x7g8h9i"]
[0119] }
[0120] Step 4: In response to the generation of the key, the system inserts the original data stamp into a table at intervals and stores it in several blockchain partitions, and forms a data directory corresponding to the partition.
[0121] Blockchain partition storage:
[0122] Partition 1: PatientID:12345 (corresponding key: 0x1a2b3c)
[0123] Partition 2: Diagnosis: Flu (corresponding key: 0x4d5e6f)
[0124] Partition 3: Treatment:Rest (corresponding key: 0x7g8h9i)
[0125] Data Directory (Blockchain Records):
[0126] copy
[0127] {
[0128] "DataStampID": "Medical_Record_001",
[0129] "Partitions": [
[0130] {"PartitionID": 1, "Data": "PatientID:12345", "Key": "0x1a2b3c"},
[0131] {"PartitionID": 2, "Data": "Diagnosis:Flu", "Key": "0x4d5e6f"},
[0132] {"PartitionID": 3, "Data": "Treatment:Rest", "Key": "0x7g8h9i"} ]
[0134] }
[0135] In one embodiment, the steps for encrypting and saving financial transaction data are as follows:
[0136] Step 1: The original data of the financial transaction (such as transaction amount, transaction time, information of both parties to the transaction, etc.) is encapsulated into a data stamp, attached to a predetermined position of the original data (such as the header of the data packet), and marked in a preset manner (adding a separator "," every other paragraph of text).
[0137] Sample data stamp: TransactionID:12345,Amount:1000,Currency:USD,Time:2025-01-21
[0138] Step 2: When the system receives the trigger signal for adding the spacer (e.g., data stamp generation is complete) and the end signal (transaction data entry is complete), the system analyzes the data stamp and determines the interval insertion table where the data continuity changes with the addition of the spacer.
[0139] Interval insertion table: [0, 18, 30, 42] (indicates the position where the interval character is inserted)
[0140] Step 3: According to the interval insertion table, the system generates several keys for the data stamp and records these keys in the corresponding key directory of the blockchain.
[0141] Generate a key:
[0142] Key1: 0x5a6b7c
[0143] Key2: 0x8d9e0f
[0144] Key3: 0x1g2h3i
[0145] Key Directory (Blockchain Records):
[0146] copy
[0147] {
[0148] "DataStampID": "Transaction_001",
[0149] "Keys": ["0x5a6b7c", "0x8d9e0f", "0x1g2h3i"]
[0150] }
[0151] Step 4: In response to the generation of the key, the system inserts the original data stamp into a table at intervals and stores it in several blockchain partitions, and forms a data directory corresponding to the partition.
[0152] Blockchain partition storage:
[0153] Partition 1: TransactionID: 12345 (corresponding key: 0x5a6b7c)
[0154] Partition 2: Amount: 1000 (corresponding key: 0x8d9e0f)
[0155] Partition 3: Currency: USD (corresponding key: 0x1g2h3i)
[0156] Data Directory (Blockchain Records):
[0157] copy
[0158] {
[0159] "DataStampID": "Transaction_001",
[0160] "Partitions": [
[0161] {"PartitionID": 1, "Data": "TransactionID:12345", "Key": "0x5a6b7c"},
[0162] {"PartitionID": 2, "Data": "Amount:1000", "Key": "0x8d9e0f"},
[0163] {"PartitionID
[0164] The above are only examples and no database contains the above content.
[0165] Specifically, when constructing interval markers, include:
[0166] Forming a corresponding privacy stamp according to the identified privacy data;
[0167] In response to the generation of the privacy stamp, a privacy interval marker corresponding to the privacy marker is generated according to the privacy marker.
[0168] In one embodiment, for the privacy protection of medical data, the hospital needs to protect the patient's private data, such as medical records, diagnosis results, etc., while allowing authorized doctors to access some data:
[0169] Operation process:
[0170] Privacy stamp generation: Identify the patient's private data (such as sensitive information in the medical record) and encapsulate it into a privacy stamp. For example, encapsulate the patient's medical record data as:
[0171] [Privacy Stamp] Patient ID: 12345, Diagnosis: Flu, Medication: Paracetamol
[0172] Privacy interval marker: Generate a privacy interval marker based on the privacy marker and process the data in the privacy stamp in segments. For example, insert a privacy interval marker “||” between sensitive fields:
[0173] [Privacy Stamp] PatientID:12345||Diagnosis:Flu||Medication:Paracetamol
[0174] Storage and access control: Store data with privacy interval markers on the blockchain and combine it with smart contracts to achieve fine-grained access control.
[0175] In one embodiment, for privacy protection in FinTech, financial institutions need to protect the transaction privacy of customers while allowing compliance departments to conduct necessary audits.
[0176] Operation process:
[0177] Privacy stamp generation: Identify the customer's private data (such as transaction amount, transaction time, etc.) and encapsulate it into a privacy stamp. For example:
[0178] [Privacy Stamp]TransactionID:12345,Amount:1000,Currency:USD
[0179] Privacy separator: Insert privacy separators in the privacy stamp to separate sensitive fields. For example:
[0180] [Privacy Stamp]TransactionID:12345||Amount:1000||Currency:USD
[0181] Storage and Auditing: Storing data with privacy interval markers on the blockchain, while using zero-knowledge proof technology to allow compliance departments to verify the legitimacy of transactions without leaking privacy.
[0182] In one embodiment, in order to protect the data privacy of IoT devices, the user data collected by IoT devices (such as location information, usage habits, etc.) needs to be kept private, while allowing device manufacturers to perform data analysis.
[0183] Operation process:
[0184] Privacy stamp generation: Identify the private data collected by the device and encapsulate it into a privacy stamp. For example:
[0185] [Privacy stamp]UserID:001,Location:12.3456,78.9012,Usage:10h
[0186] Privacy interval marker: Insert a privacy interval marker in the privacy stamp to separate different fields. For example:
[0187] [Privacy Stamp]UserID:001||Location:12.3456,78.9012||Usage:10h
[0188] Storage and Analysis: Data with privacy interval markers is stored on the blockchain, and homomorphic encryption technology is used to allow manufacturers to analyze data without decryption.
[0189] See also Figure 2 As shown, it is a schematic diagram of a data stamp structure in which a spacer symbol is inserted according to an embodiment of the present invention. When generating a key directory, it includes:
[0190] The privacy interval mark is recorded in the corresponding key directory, and the corresponding private data is stored in the blockchain partition corresponding to the key directory.
[0191] By dividing the original data and storing them separately, storing the data in the corresponding blockchain partitions, and marking the corresponding blockchain partitions with privacy stamps, the security of private data is effectively improved while ensuring data completion, thereby further improving the security of the data trusted data space.
[0192] Specifically, when constructing the interval insertion table, include:
[0193] Construct the same connector as the privacy stamp character in the interval insertion table;
[0194] In response to the formation of the connector, a blank database corresponding to the connector is generated.
[0195] Specifically, the process of storing raw data in the blockchain includes:
[0196] Generate the same number of directories as the number of separators in the data stamp;
[0197] Determine the segmentation method of the original data according to the character spacing of each separator in the data stamp;
[0198] Using adjacent separators as markers, the corresponding original data is stored in the corresponding blockchain partition.
[0199] By setting connectors, data stamps and original data with blank data can be read, which reduces the risk of data leakage and improves the overall stability of the file, thereby further improving the security of the data trusted data space.
[0200] See also Figure 3 As shown, it is a reading flow chart of the privacy computing method of the present invention, which is based on an encryption method applied to the trusted data space of the blockchain, and uses the directory of the blockchain technology to read the original data, including:
[0201] Step So1, read the interval insertion table, obtain several keys corresponding to the interval insertion table,
[0202] And, identify several corresponding blockchain partitions according to the key;
[0203] Step So2, inserting each key into a table at intervals to form a data stamp containing a separator;
[0204] Step So3, eliminating several spacers in the data stamp according to the spacer insertion table;
[0205] Step So4, in response to the removal of the separator, the data stored in the corresponding blockchain partition is spliced according to the data stamp of the removed separator;
[0206] Step So5, complete the splicing and generate the corresponding original data.
[0207] The original data stored in the blockchain is encrypted by setting up several levels of keys, and blank blockchain partitions are set according to the privacy data, thereby avoiding the leakage of privacy data while effectively improving the security of the data trusted data space.
[0208] Specifically, when identifying a blockchain partition based on a key, if the key corresponds to a privacy stamp, the process of reading the blockchain partition includes:
[0209] Generate corresponding connector according to the privacy stamp;
[0210] Recognize the data stamp portion corresponding to the connector as having passed verification;
[0211] Generate original data without private data.
[0212] Specifically, the process of eliminating each separator includes:
[0213] Insert the table at intervals to verify the corresponding key length;
[0214] Sequentially retrieve the data in several blockchain partitions corresponding to each key;
[0215] When data reading is completed, the separator after the corresponding key is deleted.
[0216] See also Figure 4 As shown, it is a schematic diagram of splicing in which the interval symbol is deleted in an embodiment of the present invention. The process of splicing the data stored in the blockchain partition includes:
[0217] Verify the length of each key and the length of the data stamp according to the interval insertion table;
[0218] Check whether the data stamp is missing, where:
[0219] The response data stamp includes a connector, and it is determined that the data stamp corresponding to the connector is not missing;
[0220] The response data stamp includes an error part, and is judged as missing data stamp;
[0221] The response data stamp includes a separator, which is considered as missing data stamp.
[0222] Specifically, when generating raw data, it includes:
[0223] Delete the keys and generate new keys when storing the original data.
[0224] By changing the key in real time, the key used to complete data reading is deleted and updated, which effectively improves the security of the blockchain and avoids the risk of privacy leakage caused by multiple readings of the key, thereby further improving the security of the data trusted data space.
[0225] By using blockchain and privacy computing technology to build a trusted data space, we can achieve data authenticity, integrity and privacy protection, improve the efficiency of data processing and analysis, and provide new solutions for data security. At the same time, this technology can be widely used in finance, medical care, social media and other fields to promote the development of the digital economy.
[0226] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0227] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An encryption method applied to a blockchain trusted data space, using a directory of blockchain technology to encrypt original data, characterized in that: For a single copy of original data, the encryption process includes: Adsorbing the data stamp at a predetermined position of the original data, and adding a spacer to the data stamp in a preset manner for spacing marking; In response to receiving a trigger signal for adding a spacer to the data stamp and an end signal, determining an interval insertion table in which data continuity of the data stamp changes with the addition of the spacer; Forming a number of keys corresponding to the data stamp according to the interval insertion table, and recording them in the corresponding key directory of the blockchain; In response to the generation of the key, inserting the original data into a table at the intervals and storing it in a number of blockchain partitions, and forming a data directory corresponding to the partition; When constructing the interval marker, it includes: Forming a corresponding privacy stamp according to the identified privacy data; In response to the generation of the privacy stamp, a privacy interval mark corresponding to the privacy mark is generated according to the privacy mark; When generating the key directory, it includes: The privacy interval mark is recorded in the corresponding key directory, and the corresponding private data is stored in the blockchain partition corresponding to the key directory.
2. The encryption method applied to the blockchain trusted data space according to claim 1 is characterized in that: When constructing the interval insertion table, it includes: Constructing a connector that is identical to the privacy stamp character in the interval insertion table; In response to the formation of the connector, a blank database corresponding to the connector is generated.
3. The encryption method applied to the blockchain trusted data space according to claim 2 is characterized in that: The process of storing the original data in the blockchain includes: Generate the same number of directories according to the number of the separators in the data stamp; Determining a segmentation method of the original data according to the character spacing of each separator in the data stamp; Using adjacent separators as markers, the corresponding original data is stored in the corresponding blockchain partition.
4. A reading method applied to a blockchain trusted data space, which uses the directory generated by any one of claims 1 to 3 to read the original data, characterized in that: include: Read the interval insertion table, obtain several keys corresponding to the interval insertion table, And, identify several corresponding blockchain partitions according to the key; Inserting each key into the table according to the interval to form a data stamp containing a separator; Eliminating a number of spacers in the data stamp according to the spacer insertion table; In response to the removal of the separator, the data stored in the corresponding blockchain partition is spliced according to the data stamp of the removed separator; Complete the splicing and generate the corresponding original data.
5. The reading method applied to the blockchain trusted data space according to claim 4 is characterized in that: When identifying the blockchain partition according to the key, if the key corresponds to the privacy stamp, the process of reading the blockchain partition includes: Generate a corresponding connector according to the privacy stamp; Recognize the data stamp portion corresponding to the connector as having passed verification; Generate original data without private data.
6. The reading method applied to the blockchain trusted data space according to claim 5 is characterized in that: The process of eliminating each separator includes: Insert the table to verify the corresponding key length according to the interval; Sequentially retrieve the data in several blockchain partitions corresponding to each key; When data reading is completed, the separator after the corresponding key is deleted.
7. The reading method applied to the blockchain trusted data space according to claim 5 or 6 is characterized in that: The process of splicing the data stored in the blockchain partition includes: Verify the length of each key and the length of the data stamp according to the interval insertion table; Check whether the data stamp is missing, where: The response data stamp includes a connector, and it is determined that the data stamp corresponding to the connector is not missing; The response data stamp includes an error part, and is judged as missing data stamp; The response data stamp includes a separator, which is considered as missing data stamp.
8. The reading method applied to the blockchain trusted data space according to claim 7 is characterized in that: When generating the original data, it includes: The keys are deleted and new keys are generated when the original data is stored.
Citation Information
Patent Citations
Privacy data processing method, device, equipment, storage medium and program product
CN118761101B
Real-time data security protection method and system based on block chain
CN109101830A
Distributed computing data processing method and device based on block chain
CN116610749A