Scenario: dry-main-dice   (tool arguments: --dry-run --dice)
cold-address.py sha256 1197bd5e7b95f1e747ad705f2cf3be2d0aab182d859a7274d4ece35666c3dafa

=== step 'new': exit code 0; trace has 941 lines
    the tool reported: dry run (network check is informative only)
A. Programs started (arguments shown with the folders shortened)
   /usr/local/bin/python3 KIT/cold-address.py --dry-run --dice
   /home/claude/tn/bin/truenorthd -datadir=TMP/tn-cold-XXXX -chain=main -listen=0 -connect=0 -dnsseed=0 -fixedseeds=0 -disablewallet=1 -server=1 -rpcbind=127.0.0.1 -rpcallowip=127.0.0.1 -rpcport=PORT -printtoconsole=0 -dbcache=16
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT getblockcount
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT getblockcount
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT -stdin deriveaddresses
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT -stdin deriveaddresses
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT stop
   -> programs started: 7; with secret material in the arguments: 0; in the environment: 0
B. Files opened for writing or created, by program
   python3        /dev/null
   python3        file in the temporary node folder: /7afrz46t
   python3        file in the temporary node folder: /tn-cold-XXXX/stderr.txt
   python3        file in the tool folder: /out-dry-run/cold-address.txt
   python3        file in the tool folder: /out-dry-run/cold-addresses.txt
   python3        file in the tool folder: /out-dry-run/cold-info.txt
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/.cookie.tmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/.lock
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/banlist.json
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/.lock
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/blk00000.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000001.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000002.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000003.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/LOCK
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/MANIFEST-000001
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/MANIFEST-000002
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/rev00000.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/xor.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000001.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000002.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000003.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/LOCK
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/MANIFEST-000001
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/MANIFEST-000002
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/debug.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/fee_estimates.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/mempool.dat.new
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/peers.23c6
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/peers.d5e8
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/settings.json.tmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/truenorthd.pid
C. Writes that contain secret material, by program and destination
   python3        -> pipe between the tool's own processes    receive descriptor; root xprv; root xprv without the last 6 characters
   python3        -> terminal                                 numbered word as shown
   truenorth-cli  -> TCP on loopback (127.0.0.1)              receive descriptor; root xprv; root xprv without the last 6 characters
   -> destinations other than terminal, pipe and loopback: 0
D. Sockets created, by program
   python3        AF_INET SOCK_STREAM x1
   truenorth-cli  AF_INET SOCK_STREAM x5
   truenorthd     AF_INET SOCK_STREAM x1, AF_NETLINK SOCK_RAW x2
   Addresses bound or connected to, by program
   python3        bind to AF_INET 127.0.0.1:0 x1
   truenorth-cli  connect to AF_INET 127.0.0.1:PORT x5
   truenorthd     bind to AF_INET 127.0.0.1:PORT x1
   truenorthd     bind to AF_NETLINK (kernel interface list) x2
   -> bind/connect to anything but loopback, local sockets and the kernel: 0
   getrandom() calls by Python that returned exactly 32 bytes: 1 (all sizes: 8,24,2496,2496,2496,32)
   the 24 words encode exactly (those 32 bytes from the system) XOR SHA-256(dice rolls): True
   strings cut short by strace (must be 0 for the search to be complete): 0
E. Left in the temporary folder afterwards: nothing

=== step 'verify': exit code 0; trace has 891 lines
    the tool reported: OK: the words on your paper give the saved address
A. Programs started (arguments shown with the folders shortened)
   /usr/local/bin/python3 KIT/cold-address.py verify --dry-run
   /home/claude/tn/bin/truenorthd -datadir=TMP/tn-cold-XXXX -chain=main -listen=0 -connect=0 -dnsseed=0 -fixedseeds=0 -disablewallet=1 -server=1 -rpcbind=127.0.0.1 -rpcallowip=127.0.0.1 -rpcport=PORT -printtoconsole=0 -dbcache=16
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT getblockcount
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT getblockcount
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT -stdin deriveaddresses
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT -stdin deriveaddresses
   /home/claude/tn/bin/truenorth-cli -datadir=TMP/tn-cold-XXXX -chain=main -rpcconnect=127.0.0.1 -rpcport=PORT stop
   -> programs started: 7; with secret material in the arguments: 0; in the environment: 0
B. Files opened for writing or created, by program
   python3        /dev/null
   python3        file in the temporary node folder: /hqpatw0e
   python3        file in the temporary node folder: /tn-cold-XXXX/stderr.txt
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/.cookie.tmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/.lock
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/banlist.json
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/.lock
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/blk00000.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000001.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000002.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/000003.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/LOCK
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/MANIFEST-000001
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/index/MANIFEST-000002
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/rev00000.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/blocks/xor.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000001.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000002.dbtmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/000003.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/LOCK
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/MANIFEST-000001
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/chainstate/MANIFEST-000002
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/debug.log
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/fee_estimates.dat
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/mempool.dat.new
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/peers.4412
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/peers.b5d3
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/settings.json.tmp
   truenorthd     file in the temporary node folder: /tn-cold-XXXX/truenorthd.pid
C. Writes that contain secret material, by program and destination
   python3        -> pipe between the tool's own processes    receive descriptor; root xprv; root xprv without the last 6 characters
   truenorth-cli  -> TCP on loopback (127.0.0.1)              receive descriptor; root xprv; root xprv without the last 6 characters
   -> destinations other than terminal, pipe and loopback: 0
D. Sockets created, by program
   python3        AF_INET SOCK_STREAM x1
   truenorth-cli  AF_INET SOCK_STREAM x5
   truenorthd     AF_INET SOCK_STREAM x1, AF_NETLINK SOCK_RAW x2
   Addresses bound or connected to, by program
   python3        bind to AF_INET 127.0.0.1:0 x1
   truenorth-cli  connect to AF_INET 127.0.0.1:PORT x5
   truenorthd     bind to AF_INET 127.0.0.1:PORT x1
   truenorthd     bind to AF_NETLINK (kernel interface list) x2
   -> bind/connect to anything but loopback, local sockets and the kernel: 0
   getrandom() calls by Python that returned exactly 32 bytes: 0 (all sizes: 8,24,2496,2496,2496)
   strings cut short by strace (must be 0 for the search to be complete): 0
E. Left in the temporary folder afterwards: nothing

Tool folder afterwards: cold-address.py, english.txt, out-dry-run, tn-seed.py
   out-dry-run/cold-address.txt  (66 bytes, mode 600)
   out-dry-run/cold-addresses.txt  (340 bytes, mode 600)
   out-dry-run/cold-info.txt  (444 bytes, mode 600)
Disk search for the phrase, any 3 words in a row, entropy, seed, keys and xprv (raw and hex) in
   KIT, TMP, HOME, /tmp, /var/tmp, /dev/shm, /run, /root: 35706 files read, 0 contain secret material

RESULT OK
