Galabet fox guide holding an open technical manual and pointing toward the documentation

Docs

Documentation

Reference and guides for @galabet/fair, the GFS 1.0 library. Every example on these pages was run against the library before it was published.

The library does one job. It turns a server seed, a client seed and a nonce into a game result that anyone can recalculate later. These pages explain how to call it, what each function returns, how records are built and checked, and how to reproduce the results in another language.

Examples use one public seed so that you can compare your output with ours line by line. The seed is for documentation only. A live server seed stays on your server until you rotate it.

Start here

Core concepts

Games

Records

Building a backend

Recipes

Security

Porting

HTTP API

Reference

Versions

Three numbers appear on this site and they measure different things. GFS 1.0 is the specification, the calculation rules these pages document. It is the only GFS version. A 1.1 that adds a public randomness beacon is planned and not written. 0.1.0 is the version of the @galabet/fair package. Fair 1.0, 2.0 and 3.0 are editions of the Galabet product, covering the foundation, the ten game pages and Galabet Flight. An edition number says nothing about the calculation rules. Every edition uses GFS 1.0.

Try It Without Installing Anything

The Dice page runs the same calculation in your browser and shows each step. The verifier checks a completed record locally, without uploading it.