Skip to content

Commit

Permalink
Update POPETS-ARTIFACTS-README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Feb 11, 2024
1 parent 5b83495 commit c5a5af6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions POPETS-ARTIFACTS-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ cd hacking/
Setup and start the local network with:

```shell
./scripts/start_node.sh
make start
```

<details>
Expand Down Expand Up @@ -266,7 +266,7 @@ Launch the sandwich attack.The script creates a victim transaction swaping 10 to


```shell
docker compose exec localsecret-2 ./scripts/run_mev_demo_local.sh
make sandwich-attack
```

<details>
Expand All @@ -289,13 +289,17 @@ The above command simulates an adversary executing the following steps:
their balance of `token_b`.
</details>

<details>
<summary>Animated gif of demo</summary>
![](hacking/render1707634384302.gif)
</details>


#### Experiment 2: Transfer amount privacy attack
Getting transfer amount. This script generates a victim transaction sending 10 of a SNIP-20 token to another account. It figures out the transfer amount prints it.

```shell
docker compose exec localsecret-2 ./scripts/test_snip20.sh
make receiver-privacy-attack
```

<details>
Expand All @@ -318,7 +322,7 @@ The above command simulates an adversary executing the following steps:
Getting the account balance. The script figures out and prints the victim's balance of 12343.

```shell
docker compose exec localsecret-2 ./scripts/test_balance.sh
make balance-privacy-attack
```

<details>
Expand Down

0 comments on commit c5a5af6

Please sign in to comment.