15 lines
218 B
Bash
15 lines
218 B
Bash
|
#!/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 ""
|