Skip to content

Commit

Permalink
make README complete
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Feb 19, 2024
1 parent 9144cf6 commit a34d059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ The more leading zeros you want, the longer it takes to find the hash.
Here's an example how to calculate the nonce and send it over with the data:

```elm
import HashCash

let
data = "example data"
difficulty = 3
nonce = findNonce difficulty data
nonce = HashCash.findNonce difficulty data
in { nonce = nonce
, data = data
}
Expand Down

0 comments on commit a34d059

Please sign in to comment.