This commit is contained in:
fred 2021-09-18 20:46:37 +02:00
parent c7dda18d0d
commit 9944323978
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ if [[ ! $(ipfs key list | grep "${MEDIAKEY}") ]]; then
## IPNS KEY CREATION
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}
KEY=$(ipfs key gen "${MEDIAKEY}")
KEYFILE=$(ls -t ~/.ipfs/keystore/ | head -n 1)
# KEYFILE=$(ls -t ~/.ipfs/keystore/ | head -n 1) # get name of last created key (could be fooled during stargate exchange)
KEYFILE=$(~/.zen/astrXbian/zen/tools/give_me_keystore_filename.py "${MEDIAKEY}") # better method applied
fi
## IS IT NEW IPNS KEY?