MOATS IS A TIMELAPSE SESSION KEY

This commit is contained in:
fred 2023-01-11 20:18:09 +01:00
parent 42ffc6796d
commit 3efe685c21
3 changed files with 15 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -99,7 +99,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
fi
################################################################################
TWMODEL="/ipfs/bafybeifffgdhlrnhbvsadyv77aojhtzwfd6n4irbsf2ufnizngl2bbixxy"
TWMODEL="/ipfs/bafybeifdifxlikk4bwjdkvh4inm4bzck4do5hzw5gctylzubwmjejmqt3a"
# ipfs cat $TWMODEL > templates/twdefault.html
##################################################### # NEW PLAYER ###############
################################################################################
@ -247,6 +247,7 @@ WID="http://ipfs.$(myHostName):5001"
$MY_PATH/natools.py encrypt -p $G1PUB -i $HOME/.zen/game/players/${PLAYER}/secret.dunikey -o $HOME/.zen/tmp/${MOATS}/secret.dunikey.$G1PUB.enc
ENCODING=$(cat ~/.zen/tmp/${MOATS}/secret.dunikey.$G1PUB.enc | base16)
sed -i "s~_SECRET_~$ENCODING~g" ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html
echo "$ENCODING"
###########
echo "# CRYPTO DECODING TESTING..."
tiddlywiki --load ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html --output ~/.zen/tmp/${MOATS} --render '.' 'MadeInZion.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'

View File

@ -362,7 +362,7 @@ myAstroTube() {
}
IPFSNODEID="$(myIpfsPeerId)"
MOATS="$(myDate)"
[[ ! $MOATS ]] && MOATS="$(myDate)"
isLAN="$(isLan)"
myASTROPORT="http://astroport.$(myDomainName):1234"
myAPI="http://ipfs.$(myDomainName):5001"