Elliptic Curve Cryptography in Bitcoin: Mathematical Foundations, Implementation Risks, and Post-Quantum Outlook
DOI:
https://doi.org/10.55544/ijrah.6.4.38Keywords:
Bitcoin, elliptic curve cryptography, secp256k1, ECDSA and Schnorr signatures, nonce reuse, post-quantum cryptographyAbstract
Bitcoin transaction authorization depends on elliptic-curve arithmetic, but the practical security of that system cannot be judged from the Elliptic Curve Discrete Logarithm Problem alone. This study combines a mathematical account of secp256k1 with reproducible Python experiments on the actual Bitcoin curve. The theoretical part develops prime-field arithmetic, the group law, scalar multiplication, and the algebraic basis of ECDSA. It also places ECDSA beside BIP340 Schnorr signatures, which use the same curve in Taproot transactions and therefore inherit the same discrete-logarithm and quantum-security assumptions. The experimental part measures scalar multiplication at 32, 64, 128, 192, and 256 bits, with 30 trials at each size. In the reported environment, a 256-bit multiplication took an average of 1.302 milliseconds. A separate naive-search experiment illustrates the rapid expansion of the inverse search space; it is presented as an educational comparison, not as a substitute for analysis of Pollard-rho or other generic attacks. Twenty ECDSA signatures were generated and verified, and all altered-message tests were rejected. A controlled nonce-reuse test then recovered the original nonce and private key, showing how an implementation error can bypass otherwise strong mathematics. The results support the continued classical security of correctly implemented secp256k1 while highlighting two distinct planning problems: safe signing today and a carefully tested transition toward post-quantum signatures, including ML-DSA, in the longer term.
Downloads
References
Nakamoto S. Bitcoin: A peer-to-peer electronic cash system. 2008. Available from: https://bitcoin.org/bitcoin.pdf
Silverman JH. The arithmetic of elliptic curves. 2nd ed. New York: Springer; 2009.
Gallian JA. Contemporary abstract algebra. 10th ed. Boca Raton: CRC Press; 2021.
Miller VS. Use of elliptic curves in cryptography. In: Williams HC, editor. Advances in Cryptology - CRYPTO ’85. LNCS 218. Berlin: Springer; 1986. p. 417-426.
Koblitz N. Elliptic curve cryptosystems. Mathematics of Computation. 1987;48(177):203-209. doi:10.1090/S0025-5718-1987-0866109-5.
Hankerson D, Menezes A, Vanstone S. Guide to elliptic curve cryptography. New York: Springer; 2004.
Johnson D, Menezes A, Vanstone S. The elliptic curve digital signature algorithm (ECDSA). International Journal of Information Security. 2001;1:36-63. doi:10.1007/s102070100002.
Certicom Research. SEC 2: Recommended elliptic curve domain parameters. Version 2.0. Standards for Efficient Cryptography Group; 2010. Available from: https://www.secg.org/sec2-v2.pdf
Bos JW, Halderman JA, Heninger N, Moore J, Naehrig M, Wustrow E. Elliptic curve cryptography in practice. IACR Cryptology ePrint Archive. 2013;2013/734. Available from: https://eprint.iacr.org/2013/734
Shor PW. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing. 1997;26(5):1484-1509. doi:10.1137/S0097539795293172.
National Institute of Standards and Technology. FIPS 204: Module-lattice-based digital signature standard. Gaithersburg: U.S. Department of Commerce; 2024. doi:10.6028/NIST.FIPS.204.
Cherkaoui Semmouni M, Nitaj A, Belkasmi M. Bitcoin security with post quantum cryptography. In: Networked Systems (NETYS 2019). Cham: Springer; 2019. p. 281-288.
Balasubramanian K. Security of the secp256k1 elliptic curve used in the Bitcoin blockchain. Indian Journal of Cryptography and Network Security. 2024;4(1):1-5.
Washington LC. Elliptic curves: Number theory and cryptography. 2nd ed. Boca Raton: Chapman & Hall/CRC; 2008.
Blake IF, Seroussi G, Smart NP. Elliptic curves in cryptography. Cambridge: Cambridge University Press; 1999.
Cohen H, Frey G, editors. Handbook of elliptic and hyperelliptic curve cryptography. Boca Raton: Chapman & Hall/CRC; 2006.
Standards for Efficient Cryptography Group. SEC 1: Elliptic Curve Cryptography. Version 2.0. Certicom Research; 2009. Available from: https://www.secg.org/sec1-v2.pdf
National Institute of Standards and Technology. FIPS 186-5: Digital Signature Standard (DSS). Gaithersburg: U.S. Department of Commerce; 2023. doi:10.6028/NIST.FIPS.186-5.
National Institute of Standards and Technology. SP 800-186: Recommendations for discrete logarithm-based cryptography: Elliptic curve domain parameters. Gaithersburg: U.S. Department of Commerce; 2023. doi:10.6028/NIST.SP.800-186.
Proos J, Zalka C. Shor’s discrete logarithm quantum algorithm for elliptic curves. arXiv:quant-ph/0301141. 2003. Available from: https://arxiv.org/abs/quant-ph/0301141
Roetteler M, Naehrig M, Svore KM, Lauter K. Quantum resource estimates for computing elliptic curve discrete logarithms. In: Advances in Cryptology - ASIACRYPT 2017. LNCS 10625. Cham: Springer; 2017. p. 241-270.
Aggarwal D, Brennen GK, Lee T, Santha M, Tomamichel M. Quantum attacks on Bitcoin, and how to protect against them. Ledger. 2018;3:68-90.
Bernstein DJ, Buchmann J, Dahmen E, editors. Post-quantum cryptography. Berlin: Springer; 2009.
Ducas L, Kiltz E, Lepoint T, Lyubashevsky V, Schwabe P, Seiler G, et al. CRYSTALS-Dilithium: A lattice-based digital signature scheme. IACR Transactions on Cryptographic Hardware and Embedded Systems. 2018;(1):238-268. doi:10.13154/tches.v2018.i1.238-268.
Peikert C. A decade of lattice cryptography. Foundations and Trends in Theoretical Computer Science. 2016;10(4):283-424.
Regev O. On lattices, learning with errors, random linear codes, and cryptography. Journal of the ACM. 2009;56(6):Article 34.
Antonopoulos AM. Mastering Bitcoin: Programming the open blockchain. 2nd ed. Sebastopol: O’Reilly Media; 2017.
Narayanan A, Bonneau J, Felten E, Miller A, Goldfeder S. Bitcoin and cryptocurrency technologies. Princeton: Princeton University Press; 2016.
Bonneau J, Miller A, Clark J, Narayanan A, Kroll JA, Felten EW. SoK: Research perspectives and challenges for Bitcoin and cryptocurrencies. In: IEEE Symposium on Security and Privacy. IEEE; 2015. p. 104-121.
Garay JA, Kiayias A, Leonardos N. The Bitcoin backbone protocol: Analysis and applications. In: Advances in Cryptology - EUROCRYPT 2015. LNCS 9057. Berlin: Springer; 2015. p. 281-310.
Diffie W, Hellman ME. New directions in cryptography. IEEE Transactions on Information Theory. 1976;22(6):644-654.
Menezes AJ, van Oorschot PC, Vanstone SA. Handbook of applied cryptography. Boca Raton: CRC Press; 1996.
Pornin T. Deterministic usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA). RFC 6979. Internet Engineering Task Force; 2013. Available from: https://www.rfc-editor.org/rfc/rfc6979
Rivest RL, Shamir A, Adleman L. A method for obtaining digital signatures and public-key cryptosystems. Communications of the ACM. 1978;21(2):120-126.
Wuille P, Nick J, Ruffing T. BIP 340: Schnorr signatures for secp256k1. Bitcoin Improvement Proposals; 2020. Available from: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
Wuille P, Nick J, Towns A. BIP 341: Taproot: SegWit version 1 spending rules. Bitcoin Improvement Proposals; 2020. Available from: https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Minhajuddin Rustami, Mohammad Khan Haidary

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.















