Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansnigirev authored Sep 24, 2020
1 parent dbe2801 commit e999409
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,19 @@ gp -l

Now you can communicate with the applet.

Jupyter notebook with some examples for applets are in [`jupyter/`](jupyter/) folder.
Check out [tests](./tests/tests) folder to get an idea how to communicate with the card.

# Simulator

Example how to run `BlindOracle` on port `21111` with AID `B00B5111CE01`:
A simple way to run simulator with a particular applet (MemoryCard for example):

```sh
python3 run_sim.py MemoryCard
```

It will spawn the simulator on port `21111` and restart it on every disconnect.

To run `BlindOracle` on port `21111` with AID `B00B5111CE01` directly with `simulator.jar`:

```sh
java -jar "simulator.jar" -p 21111 -a "B00B5111CE01" -c "toys.BlindOracleApplet" -u "file://$PWD/build/classes/BlindOracle/"
Expand Down

0 comments on commit e999409

Please sign in to comment.