ipfs --timeout=10s get --output="$tempdir" /ipns/$MEDIAKEYIPNS
[[ ! $?==0]]&&echo"CANNOT GET MEDIAKEY"&&exit1
## GO INTO $G1PUB EXCHANGE SPACE
[[ ! -d ./$G1PUB]]&& mkdir $G1PUB
## DO I OWN THE KEY, OR SHOUD I REQUEST IT
mediakeyid=$(cat ./*/.id)
if[[ ! $(ipfs key list -l | grep $mediakeyid)]];then
## SEND A MESSAGE ASKING FOR THE KEY (I am a bootstrap or http gateway)
for sharedowners in $(ls -d */ | cut -d '/' -f 1);do
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" send -d "$sharedowners" -t "MEDIAKEY ask for sharing contract" -m "I was wishing to increment $mediakeyid views, but not in your contracts yet. Please send me your ./ipfs/keystore/$MEDIAKEYIPNS to activate."