fair-baccarat

Crates.iofair-baccarat
lib.rsfair-baccarat
version0.2.0
sourcesrc
created_at2020-03-12 06:32:43.551453
updated_at2020-03-13 06:53:56.091089
descriptionDeterministically plays games of baccarat using a server seed, client seed and nonce.
homepage
repositoryhttps://github.com/lucasholder/fair-baccarat.git
max_upload_size
id217779
size47,231
Lucas Holder (lucasholder)

documentation

README

fair-baccarat

CLI tool and library that verifies provably fair bets for baccarat game. Compatible with Stake.com provably fair algorithm.

Build Status crates.io

Install

On Mac or Linux:

curl -sL https://raw.githubusercontent.com/lucasholder/fair-baccarat/master/install.sh | sh

If you have Rust:

cargo install fair-baccarat

Usage

fair-baccarat <client_seed> <server_seed> <nonce>

Example usage:

$ fair-baccarat "client seed" "server seed" 2
Client seed: client seed
Server seed: server seed
Nonce: 2

Player won

Player (9): ♦9 - ♦10
Banker (7): ♥4 - ♦3

As expected, we get the same result as on Stake.com.

Rust API docs

fair_baccarat

Commit count: 30

cargo fmt