From d4334574ce1c737c8a6076c2b2260f8b6faefc69 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 30 Apr 2020 05:18:43 +0200 Subject: [PATCH] cut ssbsec --- zen/tools/dunitey2secret.sh | 2 +- zen/tools/make_G1SSB_secret.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/tools/dunitey2secret.sh b/zen/tools/dunitey2secret.sh index 81651b5..754c805 100755 --- a/zen/tools/dunitey2secret.sh +++ b/zen/tools/dunitey2secret.sh @@ -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 <> ~/.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 <