lamassu-server/bin/lamassu-coinatmradar
Neal Conner 10aa803320 Update lamassu-coinatmradar
Output 32-character operator ID
2019-04-17 15:23:20 +03:00

13 lines
490 B
Bash

#!/usr/bin/env bash
SEED="$(cat ~/seeds/seed.txt)"
echo
echo "Here is the 'External ID' of your paired machine(s), for use under the 'ATM / Teller details' of your CoinATMRadar listing:"
echo
su - postgres -c "psql \"lamassu\" -Atc \"select regexp_replace(device_id, '$', ' '),regexp_replace(name, '^', ' ') from devices\""
echo
echo "If speaking with CoinATMRadar directly, it may be helpful to let them know your 'Operator ID':"
echo
/usr/bin/hkdf operator-id "$SEED" | cut -c -32
echo