On-chain and off-chain data security storage and query method and device

By distinguishing between hot and cold data in the blockchain network and combining AES decryption and IPFS storage, the problems of large storage space requirements and low efficiency in blockchain data security processing are solved, achieving efficient and secure data storage and retrieval.

CN116881932BActive Publication Date: 2026-07-24BEIJING UNIV OF POSTS & TELECOMM
2 Cites 0 Cited by

Patent Information

Application Number
CN202310553291.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2026-07-24
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

Existing blockchain-based data security processing methods require a full search of the data stored in the blockchain before data can be retrieved, which increases storage space requirements and affects the efficiency of data query and retrieval.

Method used

By using a ciphertext index table and a hot data index table in the blockchain network to distinguish between hot and cold data, and using AES keys to decrypt and process target ciphertext data, only the keyword ciphertext is stored on the chain. The ciphertext search is completed using blockchain smart contracts, and the main body of the ciphertext data is stored off-chain after being encrypted with AES. Cold data is stored in conjunction with the IPFS distributed storage system, realizing secure data storage and querying through on-chain and off-chain collaboration.

Benefits of technology

It effectively reduces the storage space requirements of blockchain, improves the security and reliability of data security processing, reduces data query and retrieval time, and improves storage and query efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application provides an on-chain and off-chain data security storage and query method and device, the method comprising: receiving a unique identification ciphertext of target ciphertext data queried by a service node in a blockchain network according to a target keyword ciphertext in a ciphertext index table or a hot data index table, and decrypting to obtain the corresponding unique identification; if the unique identification ciphertext is queried in the hot data index table, the target ciphertext data is called from a database server according to the unique identification; the target ciphertext data is decrypted to obtain target plaintext data, and the target plaintext data is sent to the corresponding user node. The application can effectively reduce the storage space requirement of the blockchain in a collaborative manner of on-chain and off-chain, and effectively improve the security and reliability of data security processing; and by distinguishing the hot and cold areas of the index table on the chain and the mass data saved off-chain, the time required for data query and calling can be effectively reduced, and the efficiency of data storage, query and calling can be improved.
Need to check novelty before this filing date? Find Prior Art