Skip to content

Commit 11429f7

Browse files
committed
R4D mixer script example
1 parent 5c3233c commit 11429f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ride4dapps/mixer/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# R4D Mixer
2-
This is an example of crypto coins mixer
2+
This is an example of the crypto coins mixer
33

44
1. A user can send money with an arbitrary Blake2b256 hash
55
2. After that, anyone with address matching that hash and knowing how much bytes of address used can take the money back
@@ -9,3 +9,6 @@ Try now: https://cb73ac4e-d39f-4a9f-a196-3c46b445f8fe.pub.cloud.scaleway.com/ (R
99
# Example
1010
1. Taken destination address is `3Musn2zFuw3G71yg6G7PDRAq7CjWxK7Z4pk` and complexity is 3, caller takes first 3 and last 3 bytes of it: `3Mu + 4pk`, hashes it with Blake2b256 and invokes `deposit(hash)` with attached Waves payment
1111
2. Then owner of `3Musn2zFuw3G71yg6G7PDRAq7CjWxK7Z4pk` invokes `withdraw(3)`, script compares his address with stored hash and withdraws all money associated with it
12+
3. You can tune complexity from 1 to 9
13+
1. With low complexity everyone can generate address that matches the resulting hash, but then no one can prove that you took the money
14+
2. So with complexity = 9 address should match exactly, and it's safe but there is no [plausible deniability](https://en.wikipedia.org/wiki/Plausible_deniability)

0 commit comments

Comments
 (0)