Create / send stargates keys every minute or more (once only)
This commit is contained in:
parent
d5dbf20d94
commit
7e042c6e60
16
ISOconfig.sh
16
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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue