zshuffle

Crates.iozshuffle
lib.rszshuffle
version0.1.2
sourcesrc
created_at2024-02-26 09:02:11.544115
updated_at2024-06-03 11:26:56.603662
descriptionEncrypt and shuffle cards, resulting in a randomly ordered deck
homepagehttps://zypher.network
repositoryhttps://github.com/zypher-game/uzkge
max_upload_size
id1153222
size1,184,498
Neo Sun (sunhuachuang)

documentation

README

zshuffle

Encrypt and shuffle cards, resulting in a randomly ordered deck

Contents

  • 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

Running the example

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

License

This project is licensed under GPLv3.

Commit count: 11

cargo fmt