2020-05-04 16:53:31 +02:00
|
|
|
# INSIDE ZEN REACTOR
|
2020-04-29 17:05:25 +02:00
|
|
|
|
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
```
|
|
|
|
~/.zen # Astroport Metaverse Files
|
|
|
|
~/.zen/astroport # CODE
|
|
|
|
~/.zen/secret.astroport.key # MULTI UNIVERSE KEY
|
|
|
|
|
|
|
|
~/.zen/cache/g1_TX_inputs/ # G1 Wallet INPUT Tx cache
|
|
|
|
~/.zen/cache/ssb_contact # Data from ./ssb_SURVEY_contact.sh
|
|
|
|
|
|
|
|
~/.zen/tag/ # CONTAINS "ZenTAG counters"
|
|
|
|
|
|
|
|
la ~/.zen/tag/9c6354a1db832e51ea0acd9342822dc49ba42c7035e830a2d59fcf4f86a13821/
|
|
|
|
_chain _g1.node.creator _ipns _passenger.ipfs.crypt _QRCODE.write.png _tag.zen
|
|
|
|
_chain.n _ipfs.node.creator _passenger.contract.sh _passenger.park _tag.BB.sha _tag.zensource
|
|
|
|
_chain.nanodate _ipfs.publishkey.BB.aes _passenger.filename _passenger.read _tag.issuer
|
|
|
|
_chain.prev _ipfs.publishkey.crypt _passenger.ipfs.BB.aes _QRCODE.read.png _tag.uid
|
|
|
|
|
|
|
|
|
|
|
|
~/.zen/miam/ # youtube-dl Stomac
|
|
|
|
|
|
|
|
|
|
|
|
# IPFS Shared Data Frameworks
|
|
|
|
~/.zen/ipfs
|
|
|
|
~/.zen/ipfs_swarm
|
|
|
|
|
|
|
|
# Each "G1SSBIPFS" Node publish ID and DATA indexes
|
2020-12-05 00:10:19 +01:00
|
|
|
~/.zen/ipfs_swarm/.12D3KooW***/
|
|
|
|
# Other Swarm Node access with "ipfs ls /ipns/Qm***/.12D3KooW***"
|
2020-05-04 16:53:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2020-12-05 00:10:19 +01:00
|
|
|
> ~/.zen/ipfs_swarm/.12D3KooW*** sub directory is used for exchanging messages between peers
|
2020-05-04 16:53:31 +02:00
|
|
|
|
|
|
|
> cron_MINUTE.sh monitor all LOCAL channels populated/monitored through to ~/.zen/ipfs_swarm
|
2020-04-29 17:05:25 +02:00
|
|
|
|
2020-04-29 19:55:45 +02:00
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
# IMPORTANT TODO!!
|
|
|
|
- timeout.sh CPU problem happen once
|
|
|
|
|
|
|
|
|
|
|
|
# MOVE swarm.key
|
|
|
|
```
|
2020-04-29 19:55:45 +02:00
|
|
|
mv ~/.ipfs/swarm.key ~/.ipfs/swarm.key.old
|
|
|
|
sudo systemctl restart ipfs
|
2020-05-04 16:53:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
# Problem with ~/.ssb/manifest.json
|
2020-04-29 19:55:45 +02:00
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
```
|
2020-04-29 19:55:45 +02:00
|
|
|
# Restart ssb-server
|
2020-04-30 05:30:55 +02:00
|
|
|
kill -9 $(ps auxf --sort=+utime | grep -w ssb-daemon| grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}');
|
|
|
|
kill -9 $(ps auxf --sort=+utime | grep -w ssb-server| grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}');
|
|
|
|
kill -9 $(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
|
|
|
|
printf '{"manifest":"sync"}' > ~/.ssb/manifest.json
|
|
|
|
ssb-server start &
|
|
|
|
sbotc -t async manifest > ~/.ssb/manifest.json
|
2020-05-04 16:53:31 +02:00
|
|
|
```
|
2020-04-29 19:55:45 +02:00
|
|
|
|
2020-04-29 17:05:25 +02:00
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
# New SSB message type
|
|
|
|
|
|
|
|
```
|
|
|
|
# ssb_INIT.sh
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_ssb.whoami
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.pubkey
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.qrcode.png
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/Addresses
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/AgentVersion
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/repo.stat
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/tryme.addr
|
|
|
|
```
|
|
|
|
|
2020-03-29 15:44:01 +02:00
|
|
|
# IPFS FILESYSTEM STRUCTURE
|
|
|
|
|
|
|
|
```
|
|
|
|
# ssb_INIT.sh
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_ssb.whoami
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.pubkey
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.qrcode.png
|
2020-04-27 23:32:49 +02:00
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/Addresses
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/AgentVersion
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/repo.stat
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/tryme.addr
|
2020-03-29 15:44:01 +02:00
|
|
|
|
|
|
|
# zen_MAKE.sh
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.uid
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.passenger.filename
|
|
|
|
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.passenger.metadata.json
|
2020-04-28 18:18:24 +02:00
|
|
|
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.passenger.fulltitle
|
2020-03-29 15:44:01 +02:00
|
|
|
|
|
|
|
# ssb_SURVEY_contact.sh
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}/ipfs_swarm.key.crypt
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/Addresses
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/AgentVersion
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/repo.stat
|
|
|
|
|
|
|
|
|
|
|
|
~/.zen/ipfs/.${ipfsnodeid}/CHAN/sha256(id@channel)
|
|
|
|
|
2020-04-13 19:12:20 +02:00
|
|
|
|
|
|
|
# ipfs_SWARM_refresh.sh
|
|
|
|
|
|
|
|
|
2020-03-29 15:44:01 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
# IPFS CHANNELS ARE SYNC FROM LOCAL NODE
|
2020-03-29 15:44:01 +02:00
|
|
|
|
|
|
|
```
|
2020-05-04 16:53:31 +02:00
|
|
|
LOCAL:
|
|
|
|
~/.zen/ipfs/channels/channel_id/_uid
|
|
|
|
|
|
|
|
IPFS SWARM :
|
2020-03-29 15:44:01 +02:00
|
|
|
~/.zen/ipfs/sha256(id@channel)/_uid
|
2020-04-13 19:12:20 +02:00
|
|
|
~/.zen/ipfs/sha256(+33647683646@SMS_+33667676767)/_uid
|
2020-03-29 15:44:01 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2020-05-04 16:53:31 +02:00
|
|
|
# natools CRYPT/DECRYPT a FILE
|
|
|
|
```
|
2020-04-13 19:12:20 +02:00
|
|
|
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
2020-05-04 16:53:31 +02:00
|
|
|
~/.zen/astroport/zen/tools/natools.py encrypt -p $g1pub -i file -o file.crypt
|
2020-05-20 23:42:40 +02:00
|
|
|
~/.zen/astroport/zen/tools/natools.py decrypt -f pubsec -k ~/.ssb/secret.dunikey -i file.crypt -o file
|
2020-05-04 16:53:31 +02:00
|
|
|
```
|