Add script to find SSB user's G1 pubkey

This commit is contained in:
Boris Paing 2020-03-20 23:39:52 +01:00
parent d051566054
commit 6741563501
1 changed files with 15 additions and 0 deletions

15
find_ssb_user_G1_pubkey.sh Executable file
View File

@ -0,0 +1,15 @@
#!/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 ""