Skip to content

Instantly share code, notes, and snippets.

@brandsimon
Created January 8, 2020 12:11
Show Gist options
  • Save brandsimon/a98b870cd349a360f037eb602ce5252e to your computer and use it in GitHub Desktop.
Save brandsimon/a98b870cd349a360f037eb602ce5252e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Pipe to file, then search for duplicates
# cat keys | sort | uniq -c | sort -n
for i in $(seq 1 100); do
echo "i: ${i}" >&2
trezorctl device wipe >&2
sleep 1
trezorctl device setup --skip-backup --strength 256 >&2
sleep 1
trezorctl btc get-address -n "m/44'/1'/1'/1/2"
trezorctl btc get-address -n "m/49'/1'/2'/3/4"
trezorctl btc get-public-node -n "0" | grep -E 'node.chain_code|node.public_key|xpub'
for j in $(seq 1 20); do
echo "j: ${j}" >&2
trezorctl btc get-address -n "${j}"
done
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment