How does revealing all other cards prove a hidden card is red without exposing its number?
To prove a randomly selected card from a 52-card deck is red without revealing its specific rank or suit, the prover shows the verifier the other 51 cards. If exactly 26 of those remaining cards are black (spades and clubs), the hidden card must be red. This reveals only the color property, satisfying the zero-knowledge requirement.
Conditions
- The deck contains exactly 26 red and 26 black cards.
- The target card is drawn uniformly at random.
- The prover reveals the identities of the remaining 51 cards.
Reasoning, step by step
- Start with a standard 52-card deck containing 26 red and 26 black cards.
- Draw one card at random and keep it hidden.
- Reveal the remaining 51 cards to the verifier.
- Count the number of black cards among the revealed cards.
- Deduce that if exactly 26 black cards are revealed, the single hidden card must be red.
Example
The speaker demonstrates proving a card is red without revealing its number by showing all 26 black cards from the rest of the deck. Since the deck contains precisely 26 black cards total, the absence of any black card among the revealed set logically necessitates that the single hidden card belongs to the red subset.
Common misconceptions
- Assuming the verifier learns the card's identity: The verifier confirms the color property while gaining zero information about the card's identity.
- Thinking the protocol is probabilistic: Unlike the pen game, this protocol achieves certainty in a single interaction.
Watch the explanation
2:56 – 3:42Watch this moment ↗
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.