astroport/g1sms/Readme.md

241 lines
10 KiB
Markdown
Raw Normal View History

# ASTROPORT RULES
2020-05-16 14:30:19 +02:00
[Latest version HERE](https://git.p2p.legal/axiom-team/astroport/src/master/g1sms/Readme.md) + [Traduction GROgol](https://translate.google.fr/translate?sl=en&tl=fr&u=https%3A%2F%2Fgit.p2p.legal/axiom-team/astroport/src/master/g1sms/Readme.md) + _Use https://deepl.com for better translations_
2020-05-16 15:30:51 +02:00
> **This document must be read and accepted before onboarding.**
Meaning installing the core astroport code accepting selected processes (and official flavours)
2020-05-16 15:36:14 +02:00
**"All code is A-GPL, you are not authorise to fork it, modify it and run it without refering to us!"** Original Founders Team will release from IPNS an IPFS reference (**/ipns/Qm*****) where to download CODE from the Demonstration #Swarm0 you will join.
2020-05-16 14:30:19 +02:00
## **This Software makes you responsible of your Digital and Social behaviour(s) ! It could make you evolve to a new level of consciousness. Ready...?**
2020-05-16 14:30:19 +02:00
# International Entrance
2020-05-16 14:45:52 +02:00
For now, only french **"+33"** is accepted in ```$ASTROPORT/astroport/g1sm/``` bash code suite (G1SMS flavour Node).
2020-05-16 14:30:19 +02:00
It is the most widely available communication system. Used for market alerts...
It could be internationnal making some code evolution...
2020-05-19 05:07:06 +02:00
To help finding where to apply patches a convenient way is to use the "search" (grep) command
```sudo cp $ASTROPORT/astroport/zen/tools/search /usr/local/bin/```
2020-05-16 14:30:19 +02:00
Adapt to _YOUR_COUNTRY_CODE_
```
To replace "\+33" whith "\+_YOUR_COUNTRY_CODE_", please run
grep -rl '\+33' ./ | xargs sed -i 's/\+33/\+_YOUR_COUNTRY_CODE_/g'
2020-05-16 14:30:19 +02:00
```
2020-05-19 05:07:06 +02:00
## TODO's
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
- Move SMS texts out of ""./g1sms/code(s).sh" in a multi language templating system!
2020-05-16 14:39:04 +02:00
## GLOBAL ENV variables in /etc/profile (and clean the CODE for adding new protocol / channel is simple to understand!)
2020-05-16 14:30:19 +02:00
```
# @qo-op
# Astroport System user linked to "ipfs daemon"
export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || er+=" ipfs daemon not running"
# IPFS layer ID is $YOU Swarm peer ID
export IPFSNODEID=$(ipfs id -f='<id>\n') || er+=" ipfs id problem"
# SSB layer ID is $YOU Social identity
export WHOAMI=$(sbotc whoami | jq -r .id) || er+=" sbotc whoami problem"
# G1PUB is $YOU Zen Wallet (#libremoney)
export G1PUB=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) || er+=" ~/.ssb/secret.dunikey problem"
# IDCARD for Augmented Conscious Digital Ghost born date.
# G_BORN 1st about timestamp (sbotc command ?)
# G_BORN_H sha256 $(GBORN)
2020-05-16 14:45:52 +02:00
export ASTROPORT="/home/$YOU/.zen"
2020-05-16 14:30:19 +02:00
export GHOST="/home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB"
```
2020-05-19 05:07:06 +02:00
- include ```$ASTROPORT/astroport/zen/tools/``` "natools", "nodename", ... tools in ```/usr/local/bin``` to make CODE lighter and easy use from all system App.
2020-05-19 05:07:06 +02:00
# IMPORTANT RELATIVITY SHIFTING...
**On Astroport Station, NOW your Web2.0 code is running LOCAL! So it can access local filesystem where #Swarm0 shared data are connected with other Stations !!**
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
> No more need for Internet global routing available anytime. Once your stations are friends, they become SSB connected, and IPFS swarm peers connected also if possible...
http://localhost:10010 is the first official DApp we are presenting.
2020-05-16 14:30:19 +02:00
## **Astroport is a Free DApp Framework AND a Learning "Know How" sharing digital Oasis maker**
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
# The Ghost and Goblins school & market
2020-05-16 14:45:52 +02:00
2020-05-19 05:07:06 +02:00
- **lolcat** is made with ruby
- **duniterpy** and **silkaj** are python
- **sbotc** is C
- **oasis**, **feedless** are nodejs, html, css
- LOVELand is jquery, vuejs
- Minetest is C++, sqlite and LUA
- NextCloud is PHP and MySQL
Any kind of code and framework can use astroport as a universal protocol switch. A Free CODE NEST... A School for digital age kids.
2020-05-19 05:07:06 +02:00
All "Digital Channels Flavors" are open to new protocols and specific relay in one or two page of bash/python/...
You access to the "Fat Layer" and Protocols through crypto, messaging and file exploring with tools...
2020-05-19 05:07:06 +02:00
- ```natools.py``` (@tuxmain made) is used for **crypt/decrypt/sign/verify** using the ed25519 libsodium crypto
- ```nodename``` (@qo-op made) is finding the relative local or global Station hostname
- ```sbotc``` (@cel made) is used to send / read SSB chain.
- ```zen_MAKE.sh``` (@qo-op) is creating Zen containers. '***_zen***' open protocol IPNS nano DHT allowing PASSENGER mulitmedia file and json metadata.
- ```/g1sms``` (@qo-op) Main App & historical communication layer. Acting as a delegated "G1 wallet" manager, source of Zen IPFS technology and QRCode banking system.
- ```/minetest``` (@attilax @tuxmain @be1) - ```/nextcloud``` (@poka @attilax @qo-op)- ...
- ... more and more are prepared to get into Astroport Framework. @manutopik, @chamallow , i forget so many contributers ...
2020-05-19 05:07:06 +02:00
Depending on your App available API, Front and Back End functions,
You'll get a level
- 1 Channel Scraping,
- 2 Synchronized API,
- 3 Dapp transformation OK :star: .
> 1 & 2 level benefit from new commnunication layers from (ssb libraries, js, go, rust, ...) and simple ipfs CLI commands. Notice that your Station will use double disk space until your data backend is fully using ipfs !!
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
> After **"client/server" deprogramming** you'll make a full **"localhost" ipfs #Swarm0 DApp**.
2020-05-16 14:30:19 +02:00
2020-05-16 14:39:04 +02:00
## Ex: "NextCloud"
2020-05-19 05:07:06 +02:00
Onboard your App code in here.
```$ASTROPORT/astroport/nextcloud```
1:star: DATA goes here.
```$ASTROPORT/nextcloud```
2:star: Make use of G1/SSB/IPFS layers. Use localstore and publish/share/crypt your parameters, metadata with #Swarm0
```/home/$YOU/.zen/ipfs/.$IPFSNODEID/nextcloud```
3 :star: Store $WHOAMI DATA to ipfs #Swarm0 into.
```/home/$YOU/.zen/ipfs/$G1PUB/nextcloud```
An App on Astroport is a Flavour.
It is (like in UNIX) just a new FIFO data channel, it connects into its open protocol data and indexes layer. Could be host and routes, ipfs and ipns... Once your #Swarm0 gets bigger, It can read and write but soon extract coherence from your DATA with "conscious deep learning".
SO REMEMBER.
2020-05-16 14:39:04 +02:00
```
$ASTROPORT/ipfs/$G1PUB/_the_name_of_your_channel
2020-05-16 14:45:52 +02:00
$ASTROPORT/ipfs/.IPFSNODEID/$_your_channel_indexe(s)_
$ASTROPORT/ipfs/_the_name_of_your_channel_/scraping_command_and_code
2020-05-16 14:39:04 +02:00
```
2020-05-19 05:07:06 +02:00
All data writen in $ASTROPORT/ipfs/ are manually or/and regularly published and refreshed with #Swarm0 Friends.
2020-05-16 14:30:19 +02:00
When ready and audited by Foundation Team. Your Flavour special data and work flow will be officialy activated in
2020-05-16 14:39:04 +02:00
```
2020-05-16 14:45:52 +02:00
$ASTROPORT/astroport/cron_MINUTE.sh # is the nervous system of a digital Blob creature you cultivate.
2020-05-16 14:39:04 +02:00
```
**Rememeber, even if you DApp can be accessed on localhost, relative security level depends on Trust levels within your friends and their friends! Crypt data as you need it**
2020-05-16 14:39:04 +02:00
What you can do
2020-05-16 14:39:04 +02:00
- Transmit files as SSB private message. Extended markdown add + audio_ video_
2020-05-16 14:30:19 +02:00
- Send private and public SSB message.
2020-05-16 14:30:19 +02:00
- HyperWeb ipfs p2p layer. (```ipfs p2p --help```). YES! Forward any TCP port used by your Station App, and create an "Everywhere API" to anyone in same #Swarm0
2020-05-16 14:45:52 +02:00
2020-05-16 14:30:19 +02:00
2020-05-16 15:01:12 +02:00
## **Every One is the Network!**
2020-05-16 14:30:19 +02:00
2020-05-16 15:01:12 +02:00
Inside "tag" directoy is the Zen accounting system. $NANODATE stamped blockchained ipfs/ipns file datastucture.
2020-05-16 14:39:04 +02:00
2020-05-16 15:01:12 +02:00
```$ASTROPORT/tag```
2020-05-16 14:30:19 +02:00
Video coming...
2020-05-16 14:39:04 +02:00
## LaPunta Key ZenTag
2020-05-16 14:30:19 +02:00
More details are coming...
- **"Papire Salamalek"** scripts acts between ```$IPFSNODEID``` dialog in ```$ASTROPORT/ipfs/.$IPFSNODEID/TASK```
2020-05-16 15:43:28 +02:00
- **G1Dab** "G1sms flavour" can print created Tags
- **G1Tx** "G1sms flavour" terminals can read QRCode and input amount of TX happening
- **LOVELand** is the frontal web App page ```$ASTROPORT/astroport/www/LOVELand/```
2020-05-16 15:43:28 +02:00
- **DEMO #Swarm0** oasis.astroport.com
2020-05-16 15:43:28 +02:00
- Gchange + Cesium
- Minetest
- NextCloud
2020-05-16 14:30:19 +02:00
2020-05-19 04:57:11 +02:00
# The Carrot :carrot: making and "Know How" sharing economy example.
2020-05-16 15:01:12 +02:00
2020-05-19 04:57:11 +02:00
Each USER (peer) is provising or needing a ressource, let's say :carrot:
Each RESSOURCE needs to be "made or consume", bu some "know how" have to be chained in time and space to succeed this cycle.
In **(now collapsing?) actual Industrial Global Economy**, you cannot be aware of how :carrot: are made and distributed before your can enjoy it... Only global "KNOW HOW" is increasing, while disappearing from your LOCAL perspective...
**In LOCAL Zen Economy : YES!! YOU CAN KEEP BOTH**
**In our model, all process from seeding, planting, growing, croping, sharing, consuming is included. FROM PEOPLE TO PEOPLE, P2P, every one is valuable. Individual and Global "KnowHow" is related and connected.**
2020-05-16 14:39:04 +02:00
2020-05-19 05:07:06 +02:00
We use indicators ☜。◕‿◕。☞
**(-/+):carrot:(-/+)**
- On the left side **make, have :outbox_tray: (+)** OR **consume, miss :inbox_tray: (-)**
- in the middle is :carrot: some **Useful Ressource** :circus_tent:
- in the right side **Maker (+)** OR **NOT Maker (-)** (Know How related)
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
Let's see a little example
- A wants (-):carrot:(-)
- B sells (+):carrot:(-)
- C makes (+):carrot:(+)
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
- D have Carrots (+):seedling: (+). E have Carrots growing (+):island:(+).
2020-05-16 14:30:19 +02:00
---
2020-05-16 15:01:12 +02:00
- A can buy Carrots from B it is taking from C. #IRL (-):carrot:(-)
2020-05-16 16:52:35 +02:00
**(-) + (-) + (+) = (-)**
2020-05-16 15:01:12 +02:00
- A can contact C, if C is closer than B, A gets Carrots from C. (-):carrot:(-)
2020-05-16 16:52:35 +02:00
**(-) + (+) = 0**
- A can contact C, LEARNING he needs Seed and Land to become **(+):carrot:(+)** !!
2020-05-16 16:52:35 +02:00
**(-) + (+) + (+) = (+)**
2020-05-16 14:30:19 +02:00
Most of the time, this TX loops are not optimized. And bring a lot of first choice only available.
2020-05-16 15:01:12 +02:00
But Astroport Stations facilitating relevent communications and makes Zen donation easy between peers
We have a positive working "Knowledge Zen Economy System" appearing
2020-05-16 14:30:19 +02:00
Now, change A,B,C,D,E into Paul, Rachid, Mary, John, Pierre add more friends if you want to build a more complex (+)
Connect the Oasis through "Syndicate Pubs" and start working together. Collectively.
Without competition but the one you choose to organise as a treasure game if you whish (you are the master of the Zen).
Activate The 100km MetaverseWorld radar mode and filter information from Transiscope/Gchange
Filter map layers by Basic Needs or Makers categories.
2020-05-19 05:07:06 +02:00
**Then A, B, C, D, E, F, G, H, I, J, K, ... and as much as it has to be can share knwowledge, howto, know how and transform (-) into (+) to be and buid a MAKERS society**
2020-05-16 14:30:19 +02:00
2020-05-16 14:39:04 +02:00
---
2020-05-19 04:57:11 +02:00
**It is built Resilient. Asynchronous. Disconnected. Resistant*. ANoptic?!!
You are the master of your Libre Digital Castle ("in the sky" or "made of sand"?)**
[![LAPUTA Key](https://git.p2p.legal/axiom-team/astroport/raw/master/doc/images/LaPunta.gif)](https://www.youtube.com/watch?v=iwROgK94zcM)
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
(*) Share the same swarm.key to harden your Friend Of Friend Community
```/home/$YOU/.ipfs/swarm.key```
2020-05-16 14:30:19 +02:00
2020-05-19 05:07:06 +02:00
# IF YOU WANT TO ADD YOU APP TO ASTROPORT OFFICIAL FLAVOURS? Contact support.qo-op.com
2020-05-19 04:57:11 +02:00
> [Basically on Evolutionary Code your code evolves not because you plan, but because the environment around it pushes it into certain directions.](https://medium.com/@_rchaves_/designed-v-evolutionary-code-d52a54408c8f)