How simple it is to make anything "blockchain" with ipfs

These few lines maintain any IPNS/IPFS relation in a “blockchain” way.
Meaning every change of a sub directory state recorded

#!/bin/bash
########################################################################
MY_PATH="`dirname \"$0\"`"              # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`"  # absolutized and normalized
ME="${0##*/}"
########################################################################
export IPFSNODEID=$(ipfs id -f='<id>\n')

########################################################################
echo "PUBLISHING ~/.zen/ipfs SELF http://127.0.0.1:8181/ipns/$IPFSNODEID"
MIPFS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
OLDCHAIN=$(cat ~/.zen/ipfs/.${IPFSNODEID}/.chain)
if [[ "$OLDCHAIN" != "$MIPFS" ]] # MODIFY CHAIN only if something was changed
then
	echo "$(date -u +%s%N | cut -b1-13)" > ~/.zen/ipfs/.${IPFSNODEID}/.timestamp
	echo $MIPFS > ~/.zen/ipfs/.${IPFSNODEID}/.chain
fi
NODEIPNS=$(ipfs name publish --quieter /ipfs/$MIPFS)
########################################################################

This code is a snippet from the astrXbian BETA TestNet.

Used in conjunction with open source Elastic Search Gchange+Pod it makes a self bootstrapping friend of friend network a P2P IPFS sharing and federated ES Nodes as side partners.

This TestNet is using “natools” crypto tools to share IPNS keys through secured 5 stars level confidence channels. Level 1 is giving wallets to all files and offer to program any contracts (simple exemple: pay for PIN, earn for READ), this makes an accountable shared media vault.

Most documents are still in french as first service is only legal in France due to the private copy copyright exception. If you can read write and use BASH CLI, you can program the Astroport.

Most documents are still in french as first service is only legal in France due to the private copy copyright exception. If you can read write and use BASH CLI, you can program the Astroport.
How I succeed using IPFS to power a virtual datacenter from in the home of my friends?

Welcome onboard p2p pioneers.
This digital vessel can fly in the Interplanetary Space

Astroport is a MadeInZion production
with Much LOVE to John Horton Conway and Juan Benet.

Astroport Network structure is acting like

La structure réseau Astroport se comporte comme cet organisme, le “Blob”

:man_shrugging: