Skip to content

Commit 0934c43

Browse files
update and support Freedom Cash
1 parent 72bbcda commit 0934c43

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,14 @@ Merkle Trees are data structures which became especially famous in the context o
55
In general you can use Merkle Trees to proof / validate that a specific element is available at a specific index within an array (block, ...) - without the need to load the elements themselves.
66

77
## Usage Example
8-
98
```sh
10-
119
deno run https://deno.land/x/merkletrees/usage-example.ts
12-
1310
```
1411

1512
```ts
16-
1713
import { MerkleTree, Helper } from "https://deno.land/x/merkletrees/mod.ts"
1814

1915
const exampleArray = ["dog", "horse", "cow", "chicken"]
20-
2116
const merkleTree = new MerkleTree(exampleArray)
2217

2318
const investigatedEntry = "dog"
@@ -29,20 +24,15 @@ const isValid = merkleTree.verify(proofElements, investigatedEntryHashed, rootHa
2924
if (isValid) {
3025
console.log(`we can be pretty sure that ${investigatedEntry} is in the array at index: ${exampleArray.indexOf(investigatedEntry)}`)
3126
}
32-
3327
```
3428

3529
For more sophisticated examples please check the [unit tests](https://github.com/distributed-ledger-technology/merkle-trees/blob/main/src/merkle-tree.spec.ts).
3630

3731
## Unit Tests / Executable Specifications
38-
3932
You can also execute the [unit tests](https://github.com/distributed-ledger-technology/merkle-trees/blob/main/src/merkle-tree.spec.ts) via:
4033

41-
4234
```sh
43-
4435
deno test https://deno.land/x/merkletrees/src/merkle-tree.spec.ts
45-
4636
```
4737

4838
## Explaining Merkle Trees in General
@@ -57,3 +47,8 @@ and blocks added after it further confirm the network has accepted it.
5747

5848
Check the [Bitcoin Whitepaper](https://bitcoin.org/bitcoin.pdf) and [this video](https://www.youtube.com/watch?v=Lx9zgZCMqXE) to explore the whole game.
5949

50+
## Donations
51+
Thanks to [Freedom Cash](https://FreedomCash.org), we are already free.
52+
If you want to donate, you might consider donating to the [otherparty.co.uk](https://www.otherparty.co.uk/donate-crypto-the-other-party) to ensure people do not need to donate to victims but rather donate successfully to problem solvers.
53+
54+
![direct-democracy](https://github.com/michael-spengler/sleep/assets/145258627/fe97b7da-62b4-4cf6-9be0-7b03b2f3095a)

0 commit comments

Comments
 (0)