ssb-g1-tip/find_ssb_user_G1_pubkey.sh

15 lines
218 B
Bash
Executable File

#!/bin/bash
ssbPubkey=$1
if [[ ${ssbPubkey:0:1} == "@" ]]
then
ssbPubkey=${ssbPubkey:1}
fi
ssbPubkey=$(echo $ssbPubkey | cut -d '.' -f 1)
g1pub=$(echo "$ssbPubkey" | base64 -d | base58)
echo ""
echo $g1pub
echo ""