# Fairness Verification

## Solving the Trust Issue with Online Gambling

The underlying concept of provable fairness is that players have the ability to prove and verify that their results are fair and unmanipulated. This is achieved through the use of a [commitment scheme](https://en.wikipedia.org/wiki/Commitment_scheme) , along with cryptographic hashing.

The commitment scheme is used to ensure that the player has an influence on all results generated. Cryptographic hashing is used to ensure that the casino also remains honest to this commitment scheme. Both concepts combined creates a trust-less environment when gambling online.

This is simplified in the following representation:

```javascript
fair result = operators input (hashed) + players input
```

## 3rd Party Verification

{% embed url="<https://codepen.io/slmgames/pen/YzavRWO?editors=0011>" %}

{% embed url="<https://codepen.io/slmgames/pen/PoaNWWp>" %}

{% embed url="<https://www.devglan.com/online-tools/hmac-sha256-online>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.slm.games/provably-fair/fairness-verification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
