menu-whirlpool-wst.sh
1 #!/bin/bash 2 3 # shellcheck source=./Scripts/defaults.sh 4 . "$HOME"/RoninDojo/Scripts/defaults.sh 5 6 # shellcheck source=./Scripts/functions.sh 7 . "$HOME"/RoninDojo/Scripts/functions.sh 8 9 if [ ! -d "${wst_path}" ]; then 10 _print_message "Installing Whirlpool Stat Tool..." 11 _sleep 12 13 _install_wst 14 fi 15 16 _sleep 17 cd "${wst_path}/whirlpool_stats" || exit 18 19 _print_message "Whirlpool Stat Tool INSTRUCTIONS:" 20 _print_message "Download in the working directory a snaphot for the 0.01BTC pools:" "download 001" 21 _print_message "Load and compute the statistcs for the snaphot:" "load 001" 22 _print_message "Display the metrics computed for a transaction stored in the active snapshot:" "score <ENTER TXID OF DESIRED 0.01 BTC transaction>" 23 _print_message "Sample output..." \ 24 "Backward-looking metrics for the outputs of this mix:" \ 25 " anonset = 92" \ 26 " spread = 89%" \ 27 "" \ 28 "Forward-looking metrics for the outputs of Tx0s having this transaction as their first mix:" \ 29 " anonset = 127" \ 30 " spread = 76%" 31 _print_message "Type: 'quit' at anytime to exit the Whirlpool Statitics Tool." 32 33 _pause continue 34 35 pipenv run python wst.py -w=/tmp 36 37 _pause return 38 bash -c "${ronin_samourai_toolkit_menu}"