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.
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
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.
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.
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.