BLOKZİNCİR TEMELLERİ
Özet
Bu bölüm, blokzincir teknolojisini dağıtık sistemler, kriptografi, veri yapıları, konsensüs mekanizmaları ve akıllı kontratlar olmak üzere beş katmanlı bütüncül bir mühendislik çerçevesinde ele almaktadır. Çalışma, konsensüs probleminin kuramsal temellerinden (FLP imkânsızlık teoremi, Bizans hata modeli, N ≥ 3f+1 eşiği, CAP teoremi) başlayarak; kriptografik özet fonksiyonları, dijital imza şemaları ve Merkle ağaçlarının blok veri yapısındaki rolünü incelemektedir. Proof-of-Work, Proof-of-Stake ve klasik Bizans hata toleranslı (BFT) protokoller, özellikle PBFT’nin biçimsel güvenlik kanıtıyla birlikte, karşılaştırmalı olarak sunulmakta; ölçeklenebilirlik üçlü açmazı, sharding ve Layer-2 çözümleri bu karşılaştırmanın bir uzantısı olarak tartışılmaktadır. Son olarak akıllı kontratların durum makinesi replikasyonu temelinde nasıl çalıştığı, EVM/gas mekanizması, yeniden giriş (reentrancy) riski ve bir Solidity örneği üzerinden somutlaştırılmakta; cüzdanlar ve işlem yaşam döngüsü ile bölüm tamamlanmaktadır. Bölüm, blokzincirin tek bir teknik yenilikten ziyade birbirine bağımlı çok sayıda mühendislik kararının bütünleşik sonucu olduğunu ortaya koymayı amaçlamaktadır.
Anahtar Kelimeler: Blokzincir, Dağıtık Defter Teknolojisi, Konsensüs Protokolleri, Bizans Hata Toleransı, Kriptografik Özet Fonksiyonları, Akıllı Kontratlar
Konu Alanı: Mühendislik -> Mühendislik (diğer) -> Bilgisayar Bilimleri ve Mühendisliği
Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., De Caro, A., Enyeart, D., Ferris, C., Laventman, G., Manevich, Y., Muralidharan, S., Murthy, C., Nguyen, B., Sethi, M., Singh, G., Smith, K., Sorniotti, A., Stathakopoulou, C., Vukolić, M., … Yellick, J. (2018). Hyperledger Fabric: A distributed operating system for permissioned blockchains. Proceedings of the 13th EuroSys Conference, Article 30. https://doi.org/10.1145/3190508.3190538
Brewer, E. A. (2000). Towards robust distributed systems [Keynote abstract]. Proceedings of the 19th ACM Symposium on Principles of Distributed Computing (PODC), 7. https://doi.org/10.1145/343477.343502
Buterin, V. (2014, November 25). Proof of stake: How I learned to love weak subjectivity. Ethereum Foundation Blog. https://blog.ethereum.org/2014/11/25/proof-stake-learned-love-weak-subjectivity
Cachin, C., & Vukolić, M. (2017). Blockchain consensus protocols in the wild. 31st International Symposium on Distributed Computing (DISC 2017) (Leibniz International Proceedings in Informatics, Vol. 91, pp. 1:1–1:16). https://doi.org/10.4230/LIPIcs.DISC.2017.1
Castro, M., & Liskov, B. (1999). Practical Byzantine fault tolerance. Proceedings of the 3rd USENIX Symposium on Operating Systems Design and Implementation (OSDI), 173–186. https://www.usenix.org/conference/osdi-99/practical-byzantine-fault-tolerance
Demers, A., Greene, D., Hauser, C., Irish, W., Larson, J., Shenker, S., Sturgis, H., Swinehart, D., & Terry, D. (1987). Epidemic algorithms for replicated database maintenance. Proceedings of the 6th ACM Symposium on Principles of Distributed Computing (PODC), 1–12. https://doi.org/10.1145/41840.41841
Dwork, C., Lynch, N., & Stockmeyer, L. (1988). Consensus in the presence of partial synchrony. Journal of the ACM, 35(2), 288–323. https://doi.org/10.1145/42282.42283
Eyal, I., & Sirer, E. G. (2014). Majority is not enough: Bitcoin mining is vulnerable. In Financial Cryptography and Data Security (Lecture Notes in Computer Science, Vol. 8437, pp. 436–454). Springer. https://doi.org/10.1007/978-3-662-45472-5_28
Fischer, M. J., Lynch, N. A., & Paterson, M. S. (1985). Impossibility of distributed consensus with one faulty process. Journal of the ACM, 32(2), 374–382. https://doi.org/10.1145/3149.214121
Gilbert, S., & Lynch, N. (2002). Brewer’s conjecture and the feasibility of consistent, available, partition-tolerant web services. ACM SIGACT News, 33(2), 51–59. https://doi.org/10.1145/564585.564601
Gudgeon, L., Moreno-Sanchez, P., Roos, S., McCorry, P., & Gervais, A. (2020). SoK: Layer-two blockchain protocols. In Financial Cryptography and Data Security (Lecture Notes in Computer Science, Vol. 12059, pp. 201–226). Springer. https://doi.org/10.1007/978-3-030-51280-4_12
Lamport, L., Shostak, R., & Pease, M. (1982). The Byzantine generals problem. ACM Transactions on Programming Languages and Systems, 4(3), 382–401. https://doi.org/10.1145/357172.357176
Maymounkov, P., & Mazières, D. (2002). Kademlia: A peer-to-peer information system based on the XOR metric. In Peer-to-Peer Systems (Lecture Notes in Computer Science, Vol. 2429, pp. 53–65). Springer. https://doi.org/10.1007/3-540-45748-8_5
Merkle, R. C. (1979). Secrecy, authentication, and public key systems [Doctoral dissertation, Stanford University]. https://www.ralphmerkle.com/papers/Thesis1979.pdf
Merkle, R. C. (1988). A digital signature based on a conventional encryption function. In Advances in Cryptology — CRYPTO ’87 (Lecture Notes in Computer Science, Vol. 293, pp. 369–378). Springer. https://doi.org/10.1007/3-540-48184-2_32
Nakamoto, S. (2008, October 31). Bitcoin: A peer-to-peer electronic cash system [White paper]. https://bitcoin.org/bitcoin.pdf
Poelstra, A. (2014, May 28). Distributed consensus from proof of stake is impossible [Self-published paper]. https://download.wpsoftware.net/bitcoin/old-pos.pdf
Schneider, F. B. (1990). Implementing fault-tolerant services using the state machine approach: A tutorial. ACM Computing Surveys, 22(4), 299–319. https://doi.org/10.1145/98163.98167
Wood, G. (2014). Ethereum: A secure decentralised generalised transaction ledger (Ethereum Project Yellow Paper). https://ethereum.github.io/yellowpaper/paper.pdf
Zheng, Z., Xie, S., Dai, H.-N., Chen, X., & Wang, H. (2018). Blockchain challenges and opportunities: A survey. International Journal of Web and Grid Services, 14(4), 352–375. https://doi.org/10.1504/IJWGS.2018.095647