In order to improve the consistency of on-chain-off-chain interaction of private data supported by blockchain and reduce the redundancy of data storage performance, this paper applies an efficient data interaction method of prefix hashing with improved red-black tree index to store public indexes and improve the efficiency of retrieval and interaction of blockchain data. Under the idea of generalization, anonymous region (AR) is used to hide the real location of participating nodes and protect the privacy of realized nodes. To reduce the computational overhead of the selection process, a cooperative sensing location privacy preserving optimization mechanism, LPPOM, is proposed. The scheme in this paper has a slow growth of data size on the chain with higher storage efficiency, larger throughput, and shorter query time (0.1899ms). The time cost consumed when the number of privacy chains is 15, 30, and 60 only increases by 0.2309-0.4855ms compared to the single chain system, indicating that the scheme scales well. When the file size is within 200 and the number of encrypted attributes is less than 4, its total encryption time meets the user’s privacy data encryption needs (between 66.1765-236.7081ms). The IPFS read/write module is able to satisfy the people’s daily use needs under the public network conditions, and its read/write speed is between 0.1568 and 0.2639MB/ms (file <100M).