# INSIDE ZEN REACTOR
This commit is contained in:
parent
d8ebcf65de
commit
a527d53521
|
@ -1,20 +1,55 @@
|
|||
# Explication de la machinerie.
|
||||
# INSIDE ZEN REACTOR
|
||||
|
||||
Each IPFS Node publish on it's onw IPFS address ~/.zen/ipfs directory.
|
||||
It contains per channel/wallets credentials and properties (each unique).
|
||||
.Qm*** sub directory is used for exchanging messages between peers
|
||||
SSB is the source of the gossip ipfs swarm structure
|
||||
|
||||
Blob can accept commands from the differents channels it manages.
|
||||
Channels are populated/monitored through to ~/.zen/ipfs_swarm
|
||||
```
|
||||
~/.zen # Astroport Metaverse Files
|
||||
~/.zen/astroport # CODE
|
||||
~/.zen/secret.astroport.key # MULTI UNIVERSE KEY
|
||||
|
||||
IMPORTANT TODO!!
|
||||
- timeout.sh CPU problem to investigate
|
||||
~/.zen/cache/g1_TX_inputs/ # G1 Wallet INPUT Tx cache
|
||||
~/.zen/cache/ssb_contact # Data from ./ssb_SURVEY_contact.sh
|
||||
|
||||
# MOVE swarm.key (once cron_MINUTE.sh is activated should be OK)
|
||||
~/.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
|
||||
~/.zen/ipfs_swarm/.Qm***/
|
||||
# Other Swarm Node access with "ipfs ls /ipns/Qm***/.Qm***"
|
||||
|
||||
|
||||
```
|
||||
|
||||
> ~/.zen/ipfs_swarm/.Qm*** sub directory is used for exchanging messages between peers
|
||||
|
||||
> cron_MINUTE.sh monitor all LOCAL channels populated/monitored through to ~/.zen/ipfs_swarm
|
||||
|
||||
|
||||
# IMPORTANT TODO!!
|
||||
- timeout.sh CPU problem happen once
|
||||
|
||||
|
||||
# MOVE swarm.key
|
||||
```
|
||||
mv ~/.ipfs/swarm.key ~/.ipfs/swarm.key.old
|
||||
sudo systemctl restart ipfs
|
||||
```
|
||||
|
||||
# Problem with ~/.ssb/manifest.json
|
||||
|
||||
```
|
||||
# Restart ssb-server
|
||||
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}');
|
||||
|
@ -22,8 +57,22 @@ kill -9 $(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' |
|
|||
printf '{"manifest":"sync"}' > ~/.ssb/manifest.json
|
||||
ssb-server start &
|
||||
sbotc -t async manifest > ~/.ssb/manifest.json
|
||||
```
|
||||
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
# IPFS FILESYSTEM STRUCTURE
|
||||
|
||||
```
|
||||
|
@ -60,17 +109,21 @@ sbotc -t async manifest > ~/.ssb/manifest.json
|
|||
```
|
||||
|
||||
|
||||
# IPFS CHANNELS ARE IMPORTED FROM LOCAL NODE
|
||||
# IPFS CHANNELS ARE SYNC FROM LOCAL NODE
|
||||
|
||||
```
|
||||
LOCAL:
|
||||
~/.zen/ipfs/channels/channel_id/_uid
|
||||
|
||||
IPFS SWARM :
|
||||
~/.zen/ipfs/sha256(id@channel)/_uid
|
||||
~/.zen/ipfs/sha256(+33647683646@SMS_+33667676767)/_uid
|
||||
|
||||
```
|
||||
|
||||
# natools CRYPT/DECRYPT
|
||||
# natools CRYPT/DECRYPT a FILE
|
||||
```
|
||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||
|
||||
$MY_PATH/tools/natools.py encrypt -p $g1pub -i file -o file.crypt
|
||||
|
||||
$MY_PATH/tools/natools.py decrypt --pubsec -k ~/.ssb/secret.dunikey -i file.crypt -o file
|
||||
~/.zen/astroport/zen/tools/natools.py encrypt -p $g1pub -i file -o file.crypt
|
||||
~/.zen/astroport/zen/tools/natools.py decrypt --pubsec -k ~/.ssb/secret.dunikey -i file.crypt -o file
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue