Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⛓️ Enhance and make stronger TW chaining #13

Open
papiche opened this issue Nov 2, 2023 · 0 comments
Open

⛓️ Enhance and make stronger TW chaining #13

papiche opened this issue Nov 2, 2023 · 0 comments

Comments

@papiche
Copy link
Owner

papiche commented Nov 2, 2023

TW states history is stored on IPFS Station in ~/.zen/game/players/${PLAYER}/ipfs/moa/
the last IPFS CID is recorded in Astroport tiddler during PLAYER.refresh runtime.
CURCHAIN=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].chain | rev | cut -f 1 -d '/' | rev) # Remove "/ipfs/" part

In order to make TW remember its whole history,
we should create "CID" with the whole, and insert that value instead.
This will affect CURCHAIN extraction...

To remember TW landing stations. Make the chain format like UPlanet style

echo "${MOATS}:${IPFSNODEID}:${UMAPROOT}" > ~/.zen/tmp/${MOATS}/${UMAP}/${G1PUB}/_chain

Doing this evolution will allow TW to contain all it's state, being easy to clean in case of key hijacking

@papiche papiche changed the title EXERCICE : Enhance and make stronger TW chaining ⛓️ Enhance and make stronger TW chaining Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant