cut ssbsec
This commit is contained in:
parent
b652a4cc95
commit
d4334574ce
|
@ -20,7 +20,7 @@ DUNIKEYFILE="$1"
|
||||||
pub=$(cat ${DUNIKEYFILE} | grep "pub" | cut -d ' ' -f 2)
|
pub=$(cat ${DUNIKEYFILE} | grep "pub" | cut -d ' ' -f 2)
|
||||||
priv=$(cat ${DUNIKEYFILE} | grep "sec" | cut -d ' ' -f 2)
|
priv=$(cat ${DUNIKEYFILE} | grep "sec" | cut -d ' ' -f 2)
|
||||||
ssbpub=$(echo $pub | base58 -d | base64)
|
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
|
cat > ~/.ssb/secret.ssb <<EOF
|
||||||
# This secret generated by duniter2secret.sh
|
# This secret generated by duniter2secret.sh
|
||||||
|
|
|
@ -100,7 +100,7 @@ echo "G1:$g1pub" >> ~/.zen/secret.ZEN.txt
|
||||||
|
|
||||||
g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
||||||
ssbpub=$(echo $g1pub | base58 -d | base64)
|
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
|
cat > ~/.ssb/secret <<EOF
|
||||||
# This secret is related to your G1Wallet - https://cesium.app
|
# This secret is related to your G1Wallet - https://cesium.app
|
||||||
|
|
Loading…
Reference in New Issue