Skip to content

Conversation

@bitcoinbrisbane
Copy link
Contributor

Add cryptographic primitives for trustless poker:

  • Card commitments: SHA256(card || salt) for tamper-proof dealing
  • VRF shuffle proofs: Verifiable random function for provably fair shuffles
  • Player-encrypted hole cards: ECDH-based encryption so only players can see their cards
  • Merkle proofs: Efficient verification of card inclusion in deck
  • Threshold VRF support: Preparation for multi-validator distributed randomness

This eliminates the need to trust the server for:

  1. Fair shuffling (VRF proves randomness is deterministic from block hash)
  2. Card integrity (commitments prove cards weren't changed after shuffle)
  3. Card privacy (encrypted hole cards can only be decrypted by the player)

Add cryptographic primitives for trustless poker:

- Card commitments: SHA256(card || salt) for tamper-proof dealing
- VRF shuffle proofs: Verifiable random function for provably fair shuffles
- Player-encrypted hole cards: ECDH-based encryption so only players can see their cards
- Merkle proofs: Efficient verification of card inclusion in deck
- Threshold VRF support: Preparation for multi-validator distributed randomness

This eliminates the need to trust the server for:
1. Fair shuffling (VRF proves randomness is deterministic from block hash)
2. Card integrity (commitments prove cards weren't changed after shuffle)
3. Card privacy (encrypted hole cards can only be decrypted by the player)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants