区块链

一种面向区块链溯源的高效查询方法

展开
  • 1. 郑州大学 软件学院, 河南 郑州 450002;
    2. 郑州大学 信息工程学院, 河南 郑州 450001;
    3. 郑州大学 互联网医疗与健康服务河南省协同创新中心, 河南 郑州 450052;
    4. 中原工学院 前沿信息技术研究院, 河南 郑州 450007

收稿日期: 2021-11-13

  网络出版日期: 2022-08-03

基金资助

河南省高校科技创新人才支持计划基金(No.21HASTIT031);河南省重大公益专项基金(No.201300210300);河南省高等学校青年骨干教师培养计划基金(No.2019GGJS018);河南省重点研发与推广专项基金(No.212102310039,No.212102310554);2019年河南省高等教育教学改革研究与实践重大项目基金(No.2019SJGLX001)资助

An Efficient Query Method for Blockchain Traceability

Expand
  • 1. School of Software, Zhengzhou University, Zhengzhou 450002, Henan, China;
    2. School of Information Engineering, Zhengzhou University, Zhengzhou 450001, Henan, China;
    3. Henan Collaborative Innovation Center of Internet Medical and Health Services, Zhengzhou University, Zhengzhou 450052, Henan, China;
    4. The Frontier Information Technology Research Institute, Zhongyuan University of Technology, Zhengzhou 450007, Henan, China

Received date: 2021-11-13

  Online published: 2022-08-03

摘要

针对现有区块链溯源系统查询效率较低以及引入外部数据库会面临数据篡改的风险问题,提出了一种面向区块链溯源的高效查询方法。首先结合布隆过滤器与Merkle树提出BMerkle树,进而形成一种新的区块结构,以便快速检索交易是否存在,同时查找存在交易的具体内容。然后在区块链外部添加索引构建一种优化的跳表结构hot_skiplist,可实现区块的快速定位;基于区块访问次数动态调整索引层级,进一步提高访问次数频繁区块的查询效率。最后通过实验验证了该方法能在保证区块链数据不可篡改的情况下有效提高溯源查询效率。

本文引用格式

刘炜, 王栋, 佘维, 潘恒, 宋轩, 田钊 . 一种面向区块链溯源的高效查询方法[J]. 应用科学学报, 2022 , 40(4) : 623 -638 . DOI: 10.3969/j.issn.0255-8297.2022.04.007

Abstract

In view of the low query efficiency of existing blockchain traceability systems, and the risk of data tampering coming up with the introduction of external databases, we proposes an efficient query method with blockchain-oriented traceability in this paper. First, by combining Bloom filter and Merkle tree, a BMerkle tree is proposed in order to form a new block structure. Under this block structure, the existence of transactions can be quickly retrieved, and the specific content of existing transactions can be found. Then, an optimized skip list structure hot_skiplist is proposed by adding an index outside the blockchain, realizing rapid block positioning, adjusting the index level dynamically based on the number of block accesses, and improving the query efficiency of frequently accessed blocks. Experiments show that this method can effectively improve the efficiency of traceability query under the condition of not tampering with blockchain data.

参考文献

[1] 孙知信,张鑫,相峰,等.区块链存储可扩展性研究进展[J].软件学报, 2021, 32(1):1-20.Sun Z X, Zhang X, Xiang F, et al.Survey of storage scalability on blockchain[J].Journal of Software, 2021, 32(1):1-20.(in Chinese)
[2] Rodrigues C K D S, Rocha V.Towards blockchain for suitable efficiency and data integrity of IoT ecosystem transactions[J].IEEE Latin America Transactions, 2021, 19(7):1199-1206.DOI:10.1109/TLA.2021.9461849.
[3] 曾诗钦,霍如,黄韬,等.区块链技术研究综述:原理、进展与应用[J].通信学报, 2020, 41(1):134-151.Zeng S Q, Huo R, Hang T, et al.Survey of blockchain:principle, progress and application[J].Journal on Communications, 2020, 41(1):134-151.(in Chinese)
[4] 贾大宇,信俊昌,王之琼,等.存储容量可扩展区块链系统的高效查询模型[J].软件学报, 2019, 30(9):2655-2670.Jia D Y, Xin J C, Wang Z Q, et al.Efficient query model for storage capacity scalable blockchain system[J].Journal of Software, 2019, 30(9):2655-2670.(in Chinese)
[5] 郑浩瀚,申德荣,聂铁铮,等.面向混合索引的区块链系统的可查询性优化[J].计算机科学, 2020, 47(10):301-308.Zheng H H, Shen D R, Nie T Z, et al.Queryability optimization of blockchain system for hybrid index[J].Computer Science, 2020, 47(10):301-308.(in Chinese)
[6] 张学旺,冯家琦,殷梓杰,等.基于区块链的数据溯源可信查询方法[J].应用科学学报, 2021, 39(1):42-54.Zhang X W, Fang J Q, Yin Z J, et al.Trusted query method for data provenance based on blockchain[J].Journal of Applied Sciences, 2021, 39(1):42-54.(in Chinese)
[7] Androulaki E, Barger A, Bortnikov V, et al.Hyperledger Fabric:a distributed operating system for permissioned blockchains[C]//Proceedings of the Thirteenth EuroSys Conference, 2018:1-15.
[8] 王泓机,戴炳荣,李超,等.针对区块链应用的查询优化模型[J].计算机工程与应用, 2019, 55(22):34-39, 171.Wang H J, Dai B R, Li C, et al.Query optimization model for blockchain applications[J].Computer Engineering and Applications, 2019, 55(22):34-39, 171.(in Chinese)
[9] Peng Z, Wu H, Xiao B, et al.VQL:providing query efficiency and data authenticity in blockchain systems[C]//2019 IEEE 35th International Conference on Data Engineering Workshops, 2019:1-6.
[10] Ruan P, Chen G, Dinh T T A, et al.Fine-grained, secure and efficient data provenance on blockchain systems[J].Proceedings of the VLDB Endowment, 2019, 12(9):975-988.
[11] Seol Y, Ahn J, Park S, et al.Query-chain:fast and flexible blockchain-based platform for diverse application services[C]//2019 International Conference on Information and Communication Technology Convergence, 2019:159-162.
[12] 谭朋柳,万里旭冉.一种具有主从区块的区块链架构[J].物联网学报, 2021, 5(2):116-124.Tan P L, Wan L X R.A blockchain architecture with master-slave blockchain[J].Chinese Journal on Internet of Things, 2021, 5(2):116-124.(in Chinese)
[13] Peng Y, Du M, Li F, et al.FalconDB:blockchain-based collaborative database[C]//Proceedings of 2020 ACM SIGMOD International Conference on Management of Data, 2020:637-652.
[14] You Y, Kong L, Xiao Z, et al.Hybrid indexing scheme supporting blockchain transaction tracing[J].Computer Intergrated Manufacturing Systems, 2019, 25(4):978-984.
[15] Xing X, Chen Y, Li T, et al.A blockchain index structure based on subchain query[J].Journal of Cloud Computing, 2021, 10(1):1-11.
[16] Morishima S, Matsutani H.Accelerating blockchain search of full nodes using GPUs[C]//201826th Euromicro International Conference on Parallel, Distributed and Network-Based Processing, 2018:244-248.
[17] Ma Z F, Wang X C, Jain D K, et al.A blockchain-based trusted data management scheme in edge computing[J].IEEE Transactions on Industrial Informatics, 2020, 16(3):2013-2021.
[18] Liu D, Ni J, Huang C, et al.Secure and efficient distributed network provenance for IoT:a blockchain-based approach[J].IEEE Internet of Things Journal, 2020, 7(8):7564-7574.
[19] 王千阁,何蒲,聂铁铮,等.区块链系统的数据存储与查询技术综述[J].计算机科学, 2018, 45(12):12-18.Wang Q G, He P, Nie T Z, et al.Survey of data storage and query techniques in blockchain systems[J].Computer Science, 2018, 45(12):12-18.(in Chinese)
[20] 李芳,李卓然,赵赫.区块链跨链技术进展研究[J].软件学报, 2019, 30(6):1649-1660.Li F, Li Z R, Zhao H.Research on the progress in cross-chain technology of blockchains[J].Journal of Software, 2019, 30(6):1649-1660.(in Chinese)
[21] 蔡晓晴,邓尧,张亮,等.区块链原理及其核心技术[J].计算机学报, 2021, 44(1):84-131.Cai X Q, Deng Y, Zhang L, et al.The principle and core technology of blockchain[J].Chinese Journal of Computers, 2021, 44(1):84-131.(in Chinese)
[22] Derler D, Gellert K, Jager T, et al.Bloom filter encryption and applications to efficient forward-secret 0-RTT key exchange[J].Journal of Cryptology, 2021, 34(2):1-59.
[23] Platz K, Mittal N, Venkatesan S.Concurrent unrolled skiplist[C]//IEEE 39th International Conference on Distributed Computing Systems, 2019:1579-1589.DOI:10.1109/ICDCS.2019.00157.
文章导航

/