cachix / elm-hashcash / HashCash

This module provides functions for generating and validating HashCash values.

Functions

findNonce : Basics.Int -> String -> Nonce

Given the difficulty level and data it searches for a nonce that makes the hash meet the criteria.

Example:

```
findNonce 3 "example data"
```

This will search for a nonce that, when combined with the data, produces a hash that starts with 4 leading zeros.