diff --git a/zen/ssb_INIT.sh b/zen/ssb_INIT.sh index 0612247..7432afa 100755 --- a/zen/ssb_INIT.sh +++ b/zen/ssb_INIT.sh @@ -30,11 +30,8 @@ echo ' # [ASTROPORT](https://astroport.com) ######################################################################## ' -# TODO: Make choice during install -# Do you already have an SSB account? -# Do you already have a G1 account? -# Do you want a passphrase? +[[ which ssb-cli ]] && export alias sbotc='ssb' ######################################################################## # ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_info ######################################################################## diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 1874cea..c945e98 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -76,14 +76,14 @@ python3 $MY_PATH/key_create_dunikey.py "$salt" "$pepper" mv $MY_PATH/.secret.dunikey ~/.ssb/secret.dunikey # CREATE SSB secret -pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2) -priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2) -ssbpub=$(echo $pub | base58 -d | base64) -ssbpriv=$(echo $priv | base58 -d | base64) +g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2) +g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2) +ssbpub=$(echo $g1pub | base58 -d | base64) +ssbpriv=$(echo $g1priv | base58 -d | base64) cat > ~/.ssb/secret <