Cryptography in Web3 Hashes, ZK, MPC & Homomorphic Encryption
Core primitives that power blockchains, privacy, scalability, and safer key management explained clearly with practical links.
⏱ — min read
🧩 Primitives
🔐 Privacy & Scale
1) Hash Functions (SHA-256, Keccak-256, Merkle Trees)
IntegrityPreimage/collision resistance, avalanche effect, Merkle proofs, and pitfalls like length-extension.
2) Zero-Knowledge Proofs (SNARKs vs STARKs)
ZKCircuits, proving/verification, trusted setup trade-offs, and real Web3 uses (privacy + rollups).
3) Multi-Party Computation (Threshold Signatures & Private Compute)
Key ManagementMPC/TSS wallets vs multisig, secret sharing, nonce hygiene, and institutional custody patterns.
4) Homomorphic Encryption (HE)
Encrypted ComputeCompute on encrypted data (partial → FHE), pairing with ZK for verifiable privacy, and practical limits.
Further Learning
References- Practice: domain-separated hashing, HMAC, EIP-712 typed data
- ZK: arithmetization, Fiat–Shamir, trusted setup ceremonies
- MPC: DKG, threshold ECDSA/EdDSA, device isolation
- HE: BFV/CKKS, bootstrapping, batching & noise budgets
✅ Ready to test yourself? Take the quiz below.
Cryptography in Web3 Quick Check
Answer 5 random questions each round. No repeats this session.
Round • 5 questions
Pool left: …