Solving Confirmation Time in Sharded Blockchain with PFQN
Abstract
:1. Introduction
1.1. Research Background
1.2. Related Works
1.3. Motivation and Challenge
- We decouple the input of the sharded blockchain through the product-form queue network (PFQN) and solve the transactions at different stages to obtain the average expected value of the transaction confirmation time applicable to the sharded blockchain;
- We additionally consider the transaction confirmation process on the main chain, and add a new confirmation queue F after applying the PFQN model, making the model more in line with the actual transaction confirmation situation in the blockchain;
- We utilize the PFQN model to assess the impact of quantum-resistant technologies on sharded blockchain transaction times, enhancing security against quantum threats.
2. Materials and Methods
2.1. Why PFQN?
2.2. Blockchain Setting
2.3. Model Assumption
2.4. Model and Derivation
2.4.1. PFQN Model
2.4.2. Derivation of Transaction Confirmation Delay
3. Results
4. Discussion
4.1. PFQN and Sharded Blockchain Simulation
4.2. Security Analysis
4.2.1. Prior Research on Quantum-Safe Blockchain
4.2.2. Attack Models and Assumptions
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Nomenclature
Parameter | Description |
M | Set of queues |
λ | Customer input rate per shard |
d | Total number of destination fields in a TX |
D[d] | The probability distribution for ‘d’ |
b | Maximum number of TXs allowed in a block |
c | Regular customer |
K stages cross-shard signal | |
s | Block components |
The arrival rate of customer type e to queue J | |
The arrival rate of positive signal to queue J | |
The arrival rate of cross-shard positive signal to queue J | |
U | Maximum stage achievable for signal |
The service completion rate for a receipt in network queue J′ leading to a stage k signal for network queue J | |
Service rate for customer type e in a standard queue J | |
The utilization factor incurred by customer type e on a typical queue J |
Appendix A
References
- Zheng, P.; Xu, Q.; Zheng, Z.; Zhou, Z.; Yan, Y.; Zhang, H. Meepo: Sharded Consortium Blockchain. In Proceedings of the 2021 IEEE 37th International Conference on Data Engineering (ICDE), Chania, Greece, 19–22 April 2021; pp. 1847–1852. [Google Scholar] [CrossRef]
- Luu, L.; Narayanan, V.; Zheng, C.; Baweja, K.; Gilbert, S.; Saxena, P. A Secure Sharding Protocol For Open Blockchains. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS ′16), Vienna, Austria, 24–28 October 2016; ACM: New York, NY, USA, 2016; pp. 17–30. [Google Scholar] [CrossRef]
- Kokoris-Kogias, E.; Jovanovic, P.; Gasser, L.; Gailly, N.; Syta, E.; Ford, B. OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding. In Proceedings of the 2018 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 20–24 May 2018; pp. 583–598. [Google Scholar]
- Zamani, M.; Movahedi, M.; Raykova, M. RapidChain: Scaling Blockchain via Full Sharding. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (CCS ′18), Toronto, ON, Canada, 15–19 October 2018; ACM: New York, NY, USA, 2018; pp. 931–948. [Google Scholar] [CrossRef]
- Wang, J.; Wang, H. Monoxide: Scale out blockchains with asynchronous consensus zones. In Proceedings of the 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI 19), Boston, MA, USA, 26–28 February 2019; pp. 95–112. [Google Scholar]
- Okanami, N.; Nakamura, R.; Nishide, T. Load balancing for sharded blockchains. In Financial Cryptography and Data Security; Springer International Publishing: Cham, Switzerland, 2020; pp. 512–524. [Google Scholar] [CrossRef]
- Zhang, Y.; Pan, S.; Yu, J. TxAllo: Dynamic Transaction Allocation in Sharded Blockchain Systems. arXiv 2022, arXiv:2212.11584. [Google Scholar] [CrossRef]
- Li, Q.L.; Ma, J.Y.; Chang, Y.X. Blockchain queue theory. In Computational Data and Social Networks: 7th International Conference, CSoNet 2018, Shanghai, China, 18–20 December 2018, Proceedings 7; Springer International Publishing: Cham, Switzerland, 2018; pp. 25–40. [Google Scholar]
- Ricci, S.; Ferreira, E.; Menasche, D.S.; Ziviani, A.; Souza, J.E.; Vieira, A.B. Learning blockchain delays: A queueing theory approach. ACM SIGMETRICS Perform. Eval. Rev. 2019, 46, 122–125. [Google Scholar] [CrossRef]
- Soltani, P.; Ashtiani, F. Technical Report: Analytical Modeling and Throughput Computation of Blockchain Sharding. arXiv 2022, arXiv:2210.04599. [Google Scholar]
- Kawase, Y.; Kasahara, S. Transaction-Confirmation Time for Bitcoin: A Queueing Analytical Approach to Blockchain Mechanism. In Queueing Theory and Network Applications; QTNA 2017, Lecture Notes in Computer Science; Yue, W., Li, Q.L., Jin, S., Ma, Z., Eds.; Springer: Cham, Switzerland, 2017; Volume 10591. [Google Scholar] [CrossRef]
- Kasahara, S.; Kawahara, J. Effect of Bitcoin fee on transaction-confirmation process. arXiv 2016, arXiv:1604.00103. [Google Scholar] [CrossRef]
- Huang, H.; Peng, X.; Zhan, J.; Zhang, S.; Lin, Y.; Zheng, Z.; Guo, S. BrokerChain: A cross-shard blockchain protocol for account/balance-based state sharding. In Proceedings of the IEEE INFOCOM, London, UK, 2–5 May 2022. [Google Scholar]
- Bano, S.; Sonnino, A.; Al-Bassam, M.; Azouvi, S.; McCorry, P.; Meiklejohn, S.; Danezis, G. SoK: Consensus in the age of blockchains. In Proceedings of the 1st ACM Conference on Advances in Financial Technologies, Zurich, Switzerland, 21–23 October 2019; ACM: New York, NY, USA, 2019; pp. 183–198. [Google Scholar]
- Liu, Y.; Liu, J.; Salles, M.A.V.; Zhang, Z.; Li, T.; Hu, B.; Henglein, F.; Lu, R. Building blocks of sharding blockchain systems: Concepts, approaches, and open problems. Comput. Sci. Rev. 2022, 46, 100513. [Google Scholar] [CrossRef]
- Segregated Witness (Consensus Layer). 2022. Available online: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki (accessed on 30 August 2023).
- QuarkChain Development Team. Address, Shard Key, Chain Id, Shard Id. In QuarkChain Pyquarkchain Documentation; GitHub: San Francisco, CA, USA, 2024; Available online: https://github.com/QuarkChain/pyquarkchain/wiki/Address%2C-Shard-Key%2C-Chain-Id%2C-Shard-Id (accessed on 23 January 2024).
- Kawase, Y.; Kasahara, S. A batch-service queueing system with general input and its application to analysis of mining process for bitcoin blockchain. In Proceedings of the IEEE International Conference on Internet of Things (iThings), IEEE Green Computing and Communications (GreenCom), IEEE Cyber, Physical and Social Computing (CPSCom), IEEE Smart Data (SmartData), Halifax, NS, Canada, 30 July–3 August 2018; pp. 1440–1447. [Google Scholar]
- Shi, L.; Wang, T.; Li, J.; Zhang, S.; Guo, S. Pooling is not Favorable: Decentralize Mining Power of PoW Blockchain Using Age-of-Work. IEEE Trans. Cloud Comput. 2023, 11, 2756–2769. [Google Scholar] [CrossRef]
- Narayanan, A.; Bonneau, J.; Felten, E. Bitcoin and Cryptocurrency Technologies: A Comprehensive Introduction; Princeton University Press: Princeton, NJ, USA, 2016. [Google Scholar]
- Elrond, A. Highly Scalable Public Blockchain via Adaptive State Sharding and Secure Proof of Stake. Whitepaper. 2019. Available online: https://www.chainwhy.com/upload/default/20190705/75d146eec7c85680f34461a0fe8a621b.pdf (accessed on 30 January 2024).
- Delgado-Segura, S.; Pérez-Solà, C.; Navarro-Arribas, G.; Herrera-Joancomartí, J. Analysis of the Bitcoin UTXO Set. In Financial Cryptography and Data Security; FC 2018, Lecture Notes in Computer Science; Zohar, A., Eyal, I., Teague, V., Clark, J., Bracciali, A., Pintore, F., Sala, M., Eds.; Springer: Berlin/Heidelberg, Germany, 2019; Volume 10958. [Google Scholar] [CrossRef]
- Huang, H.; Ye, G.; Chen, Q.; Yin, Z.; Luo, X.; Lin, J.; Li, T.; Yang, Q.; Zheng, Z. BlockEmulator: An Emulator Enabling to Test Blockchain Sharding Protocols. arXiv 2023, arXiv:2311.03612. [Google Scholar]
- Ikeda, K. qBitcoin: A Peer-to-Peer Quantum Cash System. In Intelligent Computing; Advances in Intelligent Systems and Computing; Arai, K., Kapoor, S., Bhatia, R., Eds.; Springer: Cham, Switzerland, 2019; Volume 858. [Google Scholar]
- Wang, W.; Yu, Y.; Du, L. Quantum blockchain based on asymmetric quantum encryption and a stake vote consensus algorithm. Sci. Rep. 2022, 12, 8606. [Google Scholar] [CrossRef] [PubMed]
- Thanalakshmi, P.; Rishikhesh, A.; Marion Marceline, J.; Joshi, G.P.; Cho, W. A Quantum-Resistant Blockchain System: A Comparative Analysis. Mathematics 2023, 11, 3947. [Google Scholar] [CrossRef]
- Quantum Blockchain. Quantum Cryptography vs Post-Quantum Cryptography. FedTech Magazine. 4 March 2020. Available online: https://fedtechmagazine.com/article/2020/03/what-difference-between-quantum-cryptography-and-post-quantum-cryptography-perfcon (accessed on 23 January 2024).
- Ikeda, K. Security and Privacy of Blockchain and Quantum Computation. In Advances in Computers; Raj, P., Deka, G.C., Eds.; Elsevier: Amsterdam, The Netherlands, 2018; Volume 111, pp. 199–228. ISSN 0065-2458. ISBN 9780128138526. [Google Scholar]
- Grover, L.K. A fast quantum mechanical algorithm for database search. In Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, STOC’96, Philadelphia PA, USA, 22–24 May 1996; pp. 212–219. [Google Scholar]
- Shor, P.W. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Rev. 1999, 41, 303–332. [Google Scholar] [CrossRef]
- Post-Quantum Cryptography Standardization. (n.d.). Security (Evaluation Criteria). Available online: https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization/evaluation-criteria/security-(evaluation-criteria) (accessed on 19 March 2024).
- Kumar, M. Post-quantum cryptography Algorithm’s standardization and performance analysis. Array 2022, 15, 100242. [Google Scholar] [CrossRef]
- Avarikioti, Z.; Desjardins, A.; Kokoris-Kogias, L.; Wattenhofer, R. Divide & Scale: Formalization and Roadmap to Robust Sharding. In Structural Information and Communication Complexity: 30th International Colloquium, SIROCCO 2023, Proceedings; Springer: Alcalá de Henares, Spain, 2023; pp. 199–245. [Google Scholar] [CrossRef]
Reference | Methodology | Focus Area | Key Findings | Contributions to the Field |
---|---|---|---|---|
[8] | GI/M/1 queue with batch-service | Transaction confirmation in Single-chain systems | Developed a queueing theory model for blockchain systems, identifying average transaction numbers and confirmation times | Introduced an analytical approach for blockchain queueing systems |
[9] | M/G/1 for delay characterization, machine learning for transaction classification | Transaction confirmation in Single-chain systems | Proposed a machine learning framework for transaction classification and queueing theory for delays | Enhanced understanding of blockchain delays and transaction confirmation dynamics |
[10] | PFQN | Sharded blockchain efficiency | Established a model for sharded blockchain and derived maximum throughput | Introduced a new model for analyzing sharded blockchain performance |
[11,12] | M/G/1 queue with batch service | Transaction confirmation time in Bitcoin | Analyzed transaction confirmation time in Bitcoin using queue theory | Applied queue theory to understand Bitcoin’s transaction dynamics |
Attack Type | Affected Blockchain Component | Attack Purpose | Means of Attack |
---|---|---|---|
Block Replacement Attack | Blockchain Historical Records | To replace the existing blockchain rewrite historical records. | Using Grover’s algorithm to calculate nonces |
Signature Forgery Attack | Transaction and Message Signatures | To tamper with or forge transactions | Using Shor’s algorithm to break public key encryption systems |
NIST Level | Encryption Standard |
---|---|
1 | AES 128 |
2 | SHA3-256 |
3 | AES192 |
4 | SHA3-384 |
5 | AES256 |
Algorithm Category | Cryptographic Algorithm | Private Key Length (bytes) | Public Key Length (bytes) | NIST Level | Approximate Probability of Compromise |
---|---|---|---|---|---|
Post-quantum encryption algorithm | CYSTAL-Dilithium3 | 1952 | 4000 | 3 | |
FALCON | 1793 | 2305 | 5 | ||
Classic | RSA | 3072 | 3072 | 1 | |
ECDSA | 256 | 512 | 1 |
Signatures/s | Verifications/s | Max Safe Transactions | Expected Encryption Time per Transaction | |
---|---|---|---|---|
CYSTAL-Dilithium3 | 6506.33 | 17,561.33 | 0.000154 | |
FALCON | 1446.52 | 9782.67 | 0.000691 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wu, J.; Du, H.; Chen, J.; Ren, W. Solving Confirmation Time in Sharded Blockchain with PFQN. Electronics 2024, 13, 1220. https://doi.org/10.3390/electronics13071220
Wu J, Du H, Chen J, Ren W. Solving Confirmation Time in Sharded Blockchain with PFQN. Electronics. 2024; 13(7):1220. https://doi.org/10.3390/electronics13071220
Chicago/Turabian StyleWu, Junting, Haotian Du, Jin Chen, and Wei Ren. 2024. "Solving Confirmation Time in Sharded Blockchain with PFQN" Electronics 13, no. 7: 1220. https://doi.org/10.3390/electronics13071220