Cryptography for Blockchain Interview Questions for Blockchain
25 Cryptography for Blockchain questions with answers for blockchain roles — 8 easy, 12 medium, 5 hard.
About Cryptography for Blockchain
Learn the cryptography that secures every transaction: hash functions such as SHA-256 and Keccak-256, public-key cryptography, ECDSA signatures on secp256k1, Merkle trees and proofs, HD wallets and seed phrases, multisig and MPC custody, and an introduction to zero-knowledge proofs used by modern rollups.
How is public-key cryptography used in blockchain?
Show answer
What is a digital signature and what does it guarantee?
Show answer
What is a nonce in blockchain? Explain both common meanings.
Show answer
What is a hash collision and why does it matter for blockchains?
Show answer
A user lost their private key and seed phrase. Can you recover their funds?
Show answer
How do you compute a keccak256 hash in Solidity and in ethers.js?
Show answer
How do you keep up with security and cryptography developments in Web3?
Show answer
What is the difference between SHA-256 and Keccak-256?
Show answer
What is ECDSA and why does Ethereum use the secp256k1 curve?
Show answer
How is an Ethereum address derived from a private key?
Show answer
What is a Merkle tree and what is a Merkle proof?
Show answer
What are seed phrases and HD wallets (BIP-39, BIP-32, BIP-44)?
Show answer
Compare multisig wallets and MPC wallets.
Show answer
Users complain they must pay gas to approve tokens before every trade. How can signatures help?
Show answer
How would you check on-chain whether a user is in a 10,000-address allowlist without storing all addresses?
Show answer
A developer accidentally pushed a private key to a public GitHub repo. What do you do?
Show answer
Show how to sign and verify a message with ethers.js.
Show answer
Write a Python function that computes a Merkle root from a list of transactions.
Show answer
Describe a time you found a security problem in code and how you handled it.
Show answer
What is a Merkle Patricia Trie and why does Ethereum use it?
Show answer
What are zero-knowledge proofs, and how do zk-SNARKs and zk-STARKs differ?
Show answer
What is signature malleability and how is it prevented?
Show answer
Design the custody setup for an exchange's hot and cold wallets.
Show answer
How do you verify a signed message inside a Solidity contract?
Show answer
Frequently asked questions
How important is Cryptography for Blockchain in Blockchain interviews?
Learn the cryptography that secures every transaction: hash functions such as SHA-256 and Keccak-256, public-key cryptography, ECDSA signatures on secp256k1, Merkle trees and proofs, HD wallets and seed phrases, multisig and MPC custody, and an introduction to zero-knowledge proofs used by modern rollups.
How should I use the Cryptography for Blockchain sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.