This is one of the most beautiful concepts in cryptography! Let me explain with a real-world analogy:
THE WHERE'S WALDO EXAMPLE:
You claim: I know where Waldo is in this picture.
I don't believe you, but I don't want you to show me where (spoiler!)
Zero-knowledge proof:
1. You take a huge black piece of paper
2. Cut a tiny Waldo-shaped hole in it
3. Position the paper so Waldo shows through the hole
4. I can see Waldo is there, but I learn NOTHING about where he is!
What happened: You proved you know where Waldo is, I'm convinced the proof is genuine, I learned nothing about Waldo's location.
That's a zero-knowledge proof!
In cryptography: Prover says I know the secret key. Verifier says Prove it without showing me. Result: Verifier is convinced, learns nothing.
This is how zk-SNARKs work: Prover creates a proof (like the Waldo paper), Verifier checks the proof (sees Waldo through hole), Verifier learns nothing about the secret.
Want to see how this applies to cryptocurrencies?