From b5e78178eba58d10a8b7bf97ff851ebf97c8d838 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 8 May 2023 14:45:01 +0200 Subject: [PATCH] The Art of key derivation --- README.md | 16 ++++++++++++++++ tools/VOEUX.print.sh | 11 +++++++---- www/Reveal/index.html | 25 +++++++++++++------------ 3 files changed, 36 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 3c9b6c21..c35284c5 100644 --- a/README.md +++ b/README.md @@ -309,6 +309,22 @@ redirect to pure "tag=" result json * decode with PASS and make operation (same functions as SALT API are available) +## The Art of key derivation + +In order to make (a little) clear how we use cryptography, + +We choose to use "NaCl" (secret1 / secret) 2 key generation. + +Thus + +* If PLAYER key is (SECRET1/SECRET2) and G1PUB and EMAIL + * wishes keys are (SECRET2 / G1WishName) + * sub-wishes are (EMAIL / G1WishName G1PUB) + * wish-billets are (EMAIL_dice_words / G1WishName G1PUB) + +This way PLAYER never loose its data. +It is writen into IPFS... So recreate the key anywhere makes you get your data from friends you shared it with + ### LOW RESSOURCE STATION CAN ACTIVATE LOW MODE (disable ipfs daemon) ``` ~/.zen/Astroport.ONE/tools/cron_VRFY.sh LOW diff --git a/tools/VOEUX.print.sh b/tools/VOEUX.print.sh index d53bf5bb..a03e5136 100755 --- a/tools/VOEUX.print.sh +++ b/tools/VOEUX.print.sh @@ -7,14 +7,13 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized . "$MY_PATH/my.sh" -PLAYER_=$1 +PLAYER_=$1 # ${PLAYER}(_dice_words) for sub-subkey PLAYER=$(echo "${PLAYER_}" | cut -d '_' -f 1 | cut -d ' ' -f 1) ## EMAIL_dice_words kinds VoeuName=$2 MOATS=$3 G1PUB=$4 -UPASS=$(date '+%Y%m') # YYYYMM [[ ${PLAYER} == "" ]] && PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) [[ ${PLAYER} == "" ]] && echo "PLAYER manquant" && exit 1 @@ -22,6 +21,10 @@ UPASS=$(date '+%Y%m') # YYYYMM [[ ${G1PUB} == "" ]] && G1PUB=$(cat ~/.zen/game/players/${PLAYER}/.g1pub 2>/dev/null) [[ ${G1PUB} == "" ]] && echo "G1PUB manquant" && exit 1 +PASS=$(echo "${RANDOM}${RANDOM}${RANDOM}${RANDOM}" | tail -c-7) +UPASS=$(date '+%Y%m') # YYYYMM +PPASS=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null) + ############################################################ G1Voeu.sh use ############################################################ PRINT G1Milgram (once a month) if [[ ${G1PUB} != "" && ${VoeuName} != "" && ${MOATS} != "" ]]; then @@ -29,7 +32,7 @@ UPASS=$(date '+%Y%m') # YYYYMM mkdir -p ~/.zen/tmp/${MOATS} ################################################################# ## MAKING SPECIAL amrzqr => G1Milgram TICKET = G1Missive - ## LE QRCODE CORRESPOND A LA CLEF DERIVE "${PLAYER} :: G1${VoeuName} ${G1PUB}" avec PASS=YYYYMM + ## LE QRCODE CORRESPOND A LA CLEF DERIVE "${PLAYER_} :: G1${VoeuName} ${G1PUB}" avec PASS=YYYYMM # LINK TO G1BILLET with MAKE_G1BILLET.sh :: ${PLAYER}_dice_words :: G1${VoeuName} ${G1PUB}" # PLAYER G1Voeu G1BILLET+ (derivated key) @@ -52,7 +55,7 @@ UPASS=$(date '+%Y%m') # YYYYMM ## EXTRA @PASS G1BILLET IPFS KEY [[ ${extra1} != "" && ${extra2} != "" ]] \ && echo "G1BILLET+ EXTRA" \ - && ${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/${MOATS}/${VoeuName}.BILL.ipfskey "${extra1}" "${extra2}" + && ${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/${MOATS}/${VoeuName}.EXTRA.ipfskey "${extra1}" "${extra2}" USALT=$(echo "${PLAYER_}" | jq -Rr @uri) UPEPPER=$(echo "${SECRET2}" | jq -Rr @uri) diff --git a/www/Reveal/index.html b/www/Reveal/index.html index af81f3a7..2b16cf31 100644 --- a/www/Reveal/index.html +++ b/www/Reveal/index.html @@ -4,9 +4,9 @@ - Friend of Friend Planet + Astroport - + @@ -30,22 +30,22 @@
- + -

Libre Planet

+

Un Monde Libre
Comment?

MadeInZion Foundation present
Astroport.ONE - & La♥BOX Network PKI engine -
collectively funded through La STI
+ & La♥BOX Network PKI/DAO engine +
collectively funded and run by La STI

-

Reveal

+

La Monnaie Libre

- Reveal the commons. -
Enhance the World with good ideas. + +
Un Découvrez la souveraineté monétaire...

@@ -53,9 +53,10 @@
-

GChange Ŋ1

-

A mobile application
to find and fund the commons

-

Press Space to know how.

+

Astroport

+un système plus juste, plus inclusif et plus durable +

Cheminez vers l'abondance
découvrez la voie en commun

+

Pressez Espace pour découvrir comment.


Down arrow