From 6a409ad5c1281d8ae7af9538d4be57f476ee9ed2 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Sep 2023 02:14:10 +0200 Subject: [PATCH] SHOW FEEDNS --- tools/VISA.new.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index 17a5045f..7e920f73 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -191,7 +191,7 @@ DISCO="/?salt=${USALT}&pepper=${UPEPPER}" # Create Player "IPNS Key" (key import) ${MY_PATH}/keygen -t ipfs -o ~/.zen/game/players/${PLAYER}/secret.player "$SALT" "$PEPPER" - ipfs key import ${PLAYER} -f pem-pkcs8-cleartext ~/.zen/game/players/${PLAYER}/secret.player + TWNS=$(ipfs key import ${PLAYER} -f pem-pkcs8-cleartext ~/.zen/game/players/${PLAYER}/secret.player) ASTRONAUTENS=$(ipfs key import $G1PUB -f pem-pkcs8-cleartext ~/.zen/game/players/${PLAYER}/secret.player) mkdir -p ~/.zen/game/players/${PLAYER}/ipfs/G1SSB # Prepare astrXbian sub-datastructure @@ -327,9 +327,8 @@ DISCO="/?salt=${USALT}&pepper=${UPEPPER}" # Create"${PLAYER}_feed" Key ! DERIVATED ! "$SALT" "$G1PUB" ${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/${MOATS}/feed.ipfskey "$SALT" "$G1PUB" - ipfs key import "${PLAYER}_feed" -f pem-pkcs8-cleartext ~/.zen/tmp/${MOATS}/feed.ipfskey - FEEDNS=$(ipfs key list -l | grep -w "${PLAYER}_feed" | cut -d ' ' -f 1 ) - + FEEDNS=$(ipfs key import "${PLAYER}_feed" -f pem-pkcs8-cleartext ~/.zen/tmp/${MOATS}/feed.ipfskey) + echo ">>> RSS FEED : ${myIPFS}/ipns/${FEEDNS}/" ## MAKE LightBeam Plugin Tiddler ${PLAYER}_feed # $:/plugins/astroport/lightbeams/saver/ipns/lightbeam-key echo '[{"title":"$:/plugins/astroport/lightbeams/saver/ipns/lightbeam-name","text":"'${PLAYER}_feed'","tags":""}]' > ~/.zen/tmp/${MOATS}/lightbeam-name.json