From a34d0590888feb13cd59c760175d83555a5a3787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 19 Feb 2024 07:45:07 +0000 Subject: [PATCH] make README complete --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33fcb70..e87b5e2 100644 --- a/README.md +++ b/README.md @@ -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 }