cut ssbsec

This commit is contained in:
qo-op 2020-04-30 05:18:43 +02:00
parent b652a4cc95
commit d4334574ce
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ DUNIKEYFILE="$1"
pub=$(cat ${DUNIKEYFILE} | grep "pub" | cut -d ' ' -f 2)
priv=$(cat ${DUNIKEYFILE} | grep "sec" | cut -d ' ' -f 2)
ssbpub=$(echo $pub | base58 -d | base64)
ssbpriv=$(echo $priv | base58 -d | base64)
ssbpriv=$(echo $priv | base58 -d | base64 | tr -d "\n")
cat > ~/.ssb/secret.ssb <<EOF
# This secret generated by duniter2secret.sh

View File

@ -100,7 +100,7 @@ echo "G1:$g1pub" >> ~/.zen/secret.ZEN.txt
g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
ssbpub=$(echo $g1pub | base58 -d | base64)
ssbpriv=$(echo $g1priv | base58 -d | base64)
ssbpriv=$(echo $g1priv | base58 -d | base64 | tr -d "\n" )
cat > ~/.ssb/secret <<EOF
# This secret is related to your G1Wallet - https://cesium.app