Add script to find SSB user's G1 pubkey
This commit is contained in:
parent
d051566054
commit
6741563501
|
@ -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 ""
|
Loading…
Reference in New Issue