From 7e042c6e603e46410cf566769be31aeb0907d0f7 Mon Sep 17 00:00:00 2001 From: qo-op Date: Fri, 19 Mar 2021 04:19:18 +0100 Subject: [PATCH] Create / send stargates keys every minute or more (once only) --- ISOconfig.sh | 16 ---------------- cron_MINUTE.sh | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/ISOconfig.sh b/ISOconfig.sh index ce448f0..0dd876a 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -165,22 +165,6 @@ cp -Rf ~/.zen/astrXbian/.install/.kodi ~/ echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py" -## CREATE STARTGATE LEVEL KEYS -# _ open _ -# ___| |_ __ _ _ __ __ _ __ _| |_ ___ -#/ __| __/ _` | '__/ _` |/ _` | __/ _ \ -#\__ \ || (_| | | | (_| | (_| | || __/ -#|___/\__\__,_|_| \__, |\__,_|\__\___| -# |___/ -# IPNS KEYS used to publish with star friends (creates your 5 swarm subnets) -mkdir -p ~/.zen/key/1 ~/.zen/key/2 ~/.zen/key/3 ~/.zen/key/4 ~/.zen/key/5 -stargate_1=$(ipfs key gen star_1) && key_1=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_1 ~/.zen/key/1/ && echo "$stargate_1" > ~/.zen/key/1/stargate -stargate_2=$(ipfs key gen star_2) && key_2=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_2 ~/.zen/key/2/ && echo "$stargate_2" > ~/.zen/key/2/stargate -stargate_3=$(ipfs key gen star_3) && key_3=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_3 ~/.zen/key/3/ && echo "$stargate_3" > ~/.zen/key/3/stargate -stargate_4=$(ipfs key gen star_4) && key_4=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_4 ~/.zen/key/4/ && echo "$stargate_4" > ~/.zen/key/4/stargate -stargate_5=$(ipfs key gen star_5) && key_5=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_5 ~/.zen/key/5/ && echo "$stargate_5" > ~/.zen/key/5/stargate -# SIGNED THEY WILL BE SEND AND RENEWED EVERY WEEK or DAY or MINUTE ... (depends on DEFCON security level) - # CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files) IPNSKEY=$(ipfs key list -l | grep xbian | cut -d ' ' -f 1) [[ ! $IPNSKEY ]] && IPNSKEY=$(ipfs key gen xbian) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 5b1ae24..0c3d9b4 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -192,5 +192,23 @@ echo ' fi ################################################################## +## CREATE STARTGATE LEVEL KEYS +# _ open _ +# ___| |_ __ _ _ __ __ _ __ _| |_ ___ +#/ __| __/ _` | '__/ _` |/ _` | __/ _ \ +#\__ \ || (_| | | | (_| | (_| | || __/ +#|___/\__\__,_|_| \__, |\__,_|\__\___| +# |___/ +# IPNS KEYS used to publish with star friends (creates your 5 swarm subnets) +if [[ ! -f ~/.zen/key/1/stargate ]]; then +[[ ! -d ~/.zen/key/ ]] && mkdir -p ~/.zen/key/1 ~/.zen/key/2 ~/.zen/key/3 ~/.zen/key/4 ~/.zen/key/5 +stargate_1=$(ipfs key gen star_1) && key_1=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_1 ~/.zen/key/1/ && echo "$stargate_1" > ~/.zen/key/1/stargate +stargate_2=$(ipfs key gen star_2) && key_2=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_2 ~/.zen/key/2/ && echo "$stargate_2" > ~/.zen/key/2/stargate +stargate_3=$(ipfs key gen star_3) && key_3=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_3 ~/.zen/key/3/ && echo "$stargate_3" > ~/.zen/key/3/stargate +stargate_4=$(ipfs key gen star_4) && key_4=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_4 ~/.zen/key/4/ && echo "$stargate_4" > ~/.zen/key/4/stargate +stargate_5=$(ipfs key gen star_5) && key_5=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_5 ~/.zen/key/5/ && echo "$stargate_5" > ~/.zen/key/5/stargate +# CYPHERED (SIGNED) THEY ARE SEND to regulate (could depends on DEFCON security level) +# gchange_IPFS_swarm.sh monitor ~/.zen/key/send file to execute "mailing" +fi fi