Encrypt and shuffle cards, resulting in a randomly ordered deck
- wasm SDK for JavaScript
- Generate player accounts (BabyJubjub keypairs) & aggregate their public keys to form a joint key.
- Initialize the deck according to the number of cards
- Mask & verify the deck with joint key
- Shuffle & verify the deck with joint key
- Reveal & unmask cards
This is a simple example implementing the mental poker protocol. It shows how to encrypt and shuffle cards, just run:
cargo test --release --package zshuffle --lib -- tests::test_poker
This project is licensed under GPLv3.