From 21dbdaf9cfa82b160aab46db8e990d44cee82aaa Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 16 Nov 2020 23:09:57 +0100 Subject: [PATCH] ask for credentials, or run diceware to make a Cesium secret.dunikey, SSB secret and IPFS node ID --- zen/tools/init_IPFS_with_cesium_loginKEY.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/zen/tools/init_IPFS_with_cesium_loginKEY.sh b/zen/tools/init_IPFS_with_cesium_loginKEY.sh index b04be17..fdd4990 100755 --- a/zen/tools/init_IPFS_with_cesium_loginKEY.sh +++ b/zen/tools/init_IPFS_with_cesium_loginKEY.sh @@ -60,12 +60,19 @@ ZENID=\"$salt\" ZENPWD=\"$pepper\" IS : " g1pub=$(cat ~/.zen/secret.dunikey | grep "pub" | cut -d ' ' -f 2) -echo "G1PUB=\"$g1pub\"" >> ~/.zen/secret.astroport.key - g1priv=$(cat ~/.zen/secret.dunikey | grep "sec" | cut -d ' ' -f 2) +# make ScutlleButt secret key ssbpub=$(echo $g1pub | base58 -d | base64) ssbpriv=$(echo $g1priv | base58 -d | base64 | tr -d "\n" ) +cat > ~/.zen/secret <