#gambling #provably-fair #baccarat

bin+lib fair-baccarat

Deterministically plays games of baccarat using a server seed, client seed and nonce

5 releases

0.2.0 Mar 13, 2020
0.1.3 Mar 12, 2020
0.1.2 Mar 12, 2020
0.1.1 Mar 12, 2020
0.1.0 Mar 12, 2020

#7 in #gambling

MIT license

27KB
616 lines

fair-baccarat

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

Build Status

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

Dependencies

~3–4.5MB
~66K SLoC