Prerequisite Understanding Questions
You should be reasonably confident that you'd be able to solve most of the problems below, given some time and a bit of Googling.
If you're comfortable solving these problems, you should have the necessary background for writing ZK circuits!
Here is a good reference for number theory topics.
Modular arithmetic​
- Without using a calculator, compute the remainder when is divided by .
- Cycles
- What is the third-smallest positive value of for which ?
- What is the fourth-smallest positive value of for which ?
- Chinese Remainder Theorem
- Describe all integers such that and .
- Describe all integers such that , , and .
- Modular inverses
- Describe all integers such that .
- Describe all integers such that .
- Describe all integers such that .
- Describe all integers such that .
Polynomials​
- Solve for : .
- Describe all such that .
- Describe all such that .
- Suppose that is a polynomial with leading coefficient such that . What is the product of the roots of , if has an even degree? What if has an odd degree? If had leading coefficient , how would this change?
- Find the sum of the squares of the roots of the polynomial .
Miscellaneous​
- Suppose you had an efficient algorithm to factor arbitrarily large numbers. How could you use such an algorithm to decrypt messages not meant for you, that are encrypted with an RSA encryption scheme?
- Many online services which require user authentication store hashed passwords, rather than plaintext passwords.
- Explain the rainbow attack: an attack by which an attacker can derive a substantial fraction of plaintext passwords from a leaked table of hashed passwords.
- Explain how to use salting to prevent a rainbow attack.
- What is the difference between a Merkle tree and a hash list? When would you want to use a Merkle tree instead of a hash list?