Crate zshuffle_wasm
Source - Keypair
- MaskedCard
- e2.0, e2.1, e1.0, e1.1
- MaskedCardWithProof
- PokerCard
- suite from 1..4
value from 1..13
if suite is 0, it will be joker, value is 53, 54
- RevealedCardWithProof
- RevealedCardWithSnarkProof
- ShuffledCardsWithProof
- aggregate_keys
- aggregate all pk to joint pk
- card_to_index
- decode_point
- decode masked to card use all reveals
- generate_key
- generate keypair
- index_to_card
- init_masked_cards
- mask the card, return the masked card and masked proof
- init_prover_key
- Initialize the prover key
- init_reveal_key
- Initialize the reveal key
- mask_card
- mask the card, return the masked card and masked proof
- public_compress
- comporess (public_x, public_y) to public
- public_uncompress
- uncompress public key to x, y
- refresh_joint_key
- refresh joint public key when it changed.
- reveal_card
- compute masked to revealed card and the revealed proof
- reveal_card_with_snark
- compute masked to revealed card with a snark proof
- shuffle_cards
- shuffle the cards and shuffled proof
- unmask_card
- unmask the card use others’ reveals
- verify_masked_card
- verify masked card with the proof
- verify_revealed_card
- verify reveal point
- verify_shuffled_cards
- verify the shuffled cards