Abstract
Time range query is essential to facilitate a wide range of blockchain applications such as data provenance in the supply chain. Existing blockchain systems adopt the storage-consuming tree-based index structure for better query performance, however, fail to efficiently work for most blockchain nodes with limited resources. In this paper, we propose Anole, a lightweight and verifiable time range query mechanism, to present the feasibility of building up a learned-based index to achieve high performance and low storage costs on blockchain systems. The key idea of Anole is to exploit the temporal characteristics of blockchain data distribution and design a tailored lightweight index to reduce storage costs. Moreover, it uses a digital signature to guarantee the correctness and completeness of query results by considering the learned index’s error bounds, and applies batch verification to further improve verification performance. Experimental results demonstrate that Anole improves the query performance by up to 10\(\times \) and reduces the storage overhead by \(99.4\%\) compared with the state-of-the-art vChain+.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Bi, W., Zhang, H., Jing, Y., He, Z., Zhang, K., Wang, X.: Learning-based optimization for online approximate query processing. In: Bhattacharya, A., et al. (eds.) Database Systems for Advanced Applications. (DASFAA 2022). LNCS, vol. 13245, pp. 96–103 (2022). https://doi.org/10.1007/978-3-031-00123-9_7
Bissias, G., Levine, B.: Bobtail: improved blockchain security with low-variance mining. In: Proceedings of the 2020 Network and Distributed System Security (NDSS) Symposium, pp. 1–16 (2020)
Chen, C., Chen, X., Fang, Z.: Addition chains of vectors (problem 5125). Am. Math. Monthly 70(1), 806–808 (1964)
Dai, X., et al.: LVQ: a lightweight verifiable query approach for transaction history in Bitcoin. In: Proceedings of the 40th International Conference on Distributed Computing Systems (ICDCS), pp. 1020–1030 (2020)
Ding, J., et al.: ALEX: an updatable adaptive learned index. In: Proceedings of the 2020 International Conference on Management of Data (SIGMOD), pp. 969–984 (2020)
Ferragina, P., Vinciguerra, G.: The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds. In: Proceedings of the 2020 International Conference on Very Large Data Bases (VLDB), pp. 1162–1175 (2020)
Galakatos, A., Markovitch, M., Binnig, C., Fonseca, R., Kraska, T.: FITing-Tree: a data-aware index structure. In: Proceedings of the 2019 International Conference on Management of Data (SIGMOD), pp. 1189–1206 (2019)
Han, R., et al.: Vassago: efficient and authenticated provenance query on multiple blockchains. In: Proceedings of the 40th International Symposium on Reliable Distributed Systems (SRDS), pp. 132–142 (2021)
Hewa, T., Braeken, A., Liyanage, M., Ylianttila, M.: Fog computing and blockchain-based security service architecture for 5G industrial IoT-enabled cloud manufacturing. IEEE Trans. Industr. Inform. 18(10), 7174–7185 (2022)
Hou, C., et al.: SquirRL: automating attack analysis on blockchain incentive mechanisms with deep reinforcement learning. In: Proceedings of the 2021 Network and Distributed System Security (NDSS) Symposium, pp. 1–18 (2021)
Jin, H., Xiao, J.: Towards trustworthy blockchain systems in the era of ‘internet of value’: development, challenges, and future trends. Sci. China Inf. Sci. 65(153101), 1–11 (2022)
Liu, L., Li, X., Au, M.H., Fan, Z., Meng, X.: Metadata privacy preservation for blockchain-based healthcare systems. In: Bhattacharya, A., et al. (eds.) Database Systems for Advanced Applications (DASFAA 2022). LNCS, vol. 13245, pp. 404–412. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-00123-9_33
Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2008). https://bitcoin.org/bitcoin.pdf
Peng, Z., Xu, C., Wang, H., Huang, J., Xu, J., Chu, X.: P\(^2\)b-trace: privacy-preserving blockchain-based contact tracing to combat pandemics. In: Proceedings of the 2021 International Conference on Management of Data (SIGMOD), pp. 2389–2391 (2021)
Ruan, P.C., Chen, G., Dinh, T.T.A., Lin, Q., Ooi, B.C., Zhang, M.H.: Fine-grained, secure and efficient data provenance on blockchain systems. In: Proceedings of the 2019 International Conference on Very Large Data Bases (VLDB), pp. 975–988 (2019)
Shao, Q., Pang, S., Zhang, Z., Jing, C.: Authenticated range query using SGX for blockchain light clients. In: Nah, Y., Cui, B., Lee, S.-W., Yu, J.X., Moon, Y.-S., Whang, S.E. (eds.) DASFAA 2020. LNCS, vol. 12114, pp. 306–321. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-59419-0_19
Vaidya, K., Chatterjee, S., Knorr, E., Mitzenmacher, M., Idreos, S., Kraska, T.: SNARF: a learning-enhanced range filter. In: Proceedings of the 2022 International Conference on Very Large Data Bases (VLDB), pp. 1632–1644 (2022)
Wang, H., Xu, C., Zhang, C., Xu, J.L., Peng, Z., Pei, J.: vChain+: optimizing verifiable blockchain Boolean range queries (technical report). In: Proceedings of the 2021 International Conference on Management of Data (SIGMOD), pp. 1–14 (2021)
Wu, N., Xie, Y.: A survey of machine learning for computer architecture and systems. ACM Comput. Surv. 55(3), 1–39 (2022)
Xu, C., Zhang, C., Xu, J.L.: vChain: enabling verifiable Boolean range queries over blockchain databases. In: Proceedings of the 2019 International Conference on Management of Data (SIGMOD), pp. 141–158 (2019)
Yagoubi, D., Akbarinia, R., Masseglia, F., Palpanas, T.: Massively distributed time series indexing and querying. IEEE Trans. Knowl. Data Eng. 32(1), 108–120 (2018)
Yue, Z., Zhang, J., Zhang, H., Yang, Q.: Time-based trajectory data partitioning for efficient range query. In: Liu, C., Zou, L., Li, J. (eds.) DASFAA 2018. LNCS, vol. 10829, pp. 24–35. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-91455-8_3
Zhang, C., Xu, C., Xu, J., Tang, Y., Choi, B.: GEM\(^2\)-tree: a gas-efficient structure for authenticated range queries in blockchain. In: Proceedings of the 2019 IEEE 35th International Conference on Data Engineering (ICDE), pp. 842–853 (2019)
Zhang, H., Andersen, D., Pavlo, A., Kaminsky, M., Ma, L., Shen, R.: Reducing the storage overhead of main-memory OLTP databases with hybrid indexes. In: Proceedings of the 2016 International Conference on Management of Data (SIGMOD), pp. 1567–1581 (2016)
Acknowledgement
This work was supported by National Key Research and Development Program of China under Grant No. 2021YFB2700700, Key Research and Development Program of Hubei Province No. 2021BEA164, National Natural Science Foundation of China (Grant No. 62072197), Key-Area Research and Development Program of Guangdong Province No. 2020B0101090005, Knowledge Innovation Program of Wuhan-Shuguang.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Chang, J., Li, B., Xiao, J., Lin, L., Jin, H. (2023). Anole: A Lightweight and Verifiable Learned-Based Index for Time Range Query on Blockchain Systems. In: Wang, X., et al. Database Systems for Advanced Applications. DASFAA 2023. Lecture Notes in Computer Science, vol 13943. Springer, Cham. https://doi.org/10.1007/978-3-031-30637-2_34
Download citation
DOI: https://doi.org/10.1007/978-3-031-30637-2_34
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-30636-5
Online ISBN: 978-3-031-30637-2
eBook Packages: Computer ScienceComputer Science (R0)