Math 314: The Mathematics of Blockchains and Cryptocurrencies

Are you curious about Bitcoin and cryptocurrencies? Would you like to understand how they work, and build one yourself? In Math 314, you’ll discover the mathematics that makes Bitcoin work, and use it to build your own blockchain and cryptocurrency in Python. You don’t need a background in advanced math: we’ll develop the ideas as we go, from modular arithmetic to elliptic curves. You also don’t need to know anything about Bitcoin or blockchains before taking the course.

See photos from the final lab and student testimonials from the Winter 2026 offering.

What background do I need?

For math background, mostly just high school algebra and a little bit of one-variable calculus (eg. taking simple derivatives and integrals). However, we recommend as an advisory prerequisite having taken at least one previous college Math course, preferably in discrete mathematics, linear algebra, or abstract algebra—for example, EECS 203, Math 124, Math 214, Math 217, EECS 245, Math 275, or Math 312. You should also be comfortable with the fundamentals of programming, preferably in Python, since that’s what we’ll use for the assignments. Courses such as COMPFOR 131 or PHYSICS 104 provide suitable preparation, as does EECS 183 together with some prior Python experience.

What topics are covered?

Here is a rough list of topics that we will cover:

  • Integers, gcd, prime numbers and unique factorization
  • Modular arithmetic, Euler’s theorem and the RSA algorithm
  • Basic definitions and properties of groups
  • Finite fields
  • Cyclic groups, Gauss’ theorem and primitive roots, Diffie-Hellman key exchange, the discrete log problem
  • Affine and projective space, curves, intersecting curves, Bezout’s theorem
  • Elliptic curves over R and C, the group law, elliptic curves over finite fields, Hasse bound
  • Elliptic-curve digital signatures, including ECDSA and Schnorr signatures
  • Hashing, properties and constructions of hash functions
  • Structure of a blockchain, internal structure of a block, Merkle trees
  • Transactions
  • Mining and proof of work, proof of inclusion
  • Probabilistic analysis of proof of work
  • Introduction to Zero-Knowledge Proofs (ZKPs)
  • Miscellaneous topics (depending on time constraints and instructor and student interest)

What is the structure of the course?

Math 314 is a 3-credit class with two weekly lectures (50 mins each) and one weekly IBL Lab (2 hours). In Inquiry Based Learning (IBL), students learn through guided exploration with the help of experienced instructors. In this course, during the IBL lab hours, you will work collaboratively with other students on the math and programming assignments, with the instructor and other course personnel available to help.

How is my course grade determined?

There will be roughly 9 math assignments and 9 programming assignments. In addition, there will be one midterm and a final exam. In Winter 2027, the course grade will be determined by the following components:

  • Math Assignments (20%)
  • Programming Assignments (30%)
  • Midterm (20%)
  • Final Exam (20%)
  • Attendance and Class Participation (10%)

How often does this course run?

Math 314 ran for the first time in Winter 2026. Currently, we plan to offer it every Winter term.

lsa logoum logo
UM Privacy Statement
Accessibility at UM
Scroll to Top