diff --git a/README.md b/README.md index d034b6c..bb2ebf0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,55 @@ sudo apt-get install -y \ ## 2) Obtain binaries +Download the version you want here: https://cloud.deuxfleurs.fr/d/612993c04e9d40609242/ -## 3) Run them +And extract the zip file: + +```bash +unzip donar*.zip +cd release +``` + +## 3) Callee + +In a first terminal: + +```bash +./tor2 -f torrc_guard_12 +``` + +In a second terminal: + +```bash +./donar -s -a lightning -l 12 -p 'fast_count=3!tick_tock=0!window=2000' -e 5000 -r 5000 +``` + +In a third terminal: + +```bash +./dcall 127.13.3.7 +``` + +Your "address" is contained inside the `onion_services.pub`, you must transmit it out of band to people that want to call you. + +## 4) Caller + +In a first terminal: + +```bash +./tor2 -f torrc_guard_12 +``` + +In a second terminal: + +```bash +./donar -c -o onion_service.pub -a lightning -l 12 -p 'fast_count=3!tick_tock=0!window=2000' -e 5000 -r 5000 +``` + +In a third terminal: + +```bash +./dcall 127.13.3.7 +``` diff --git a/create_binaries.sh b/create_binaries.sh index 861d6c9..8900dda 100755 --- a/create_binaries.sh +++ b/create_binaries.sh @@ -6,4 +6,8 @@ docker run \ -it \ -v `pwd`/release:/tmp/release \ registry.gitlab.inria.fr/qdufour/donar \ - cp /usr/local/bin/{tor2,tor3,dcall,donar,measlat} /tmp/release + cp \ + /usr/local/bin/{tor2,tor3,dcall,donar,measlat} \ + /etc/tor/{torrc_guard_12,torrc_guard_2,torrc_single_hop_12} \ + /tmp/release +zip -r donar.zip release/