ssb-g1-tip/readme.md

138 lines
5.3 KiB
Markdown
Raw Permalink Normal View History

2020-03-20 17:22:13 +01:00
![SSB/Ğ1 tip](https://git.p2p.legal/axiom-team/ssb-g1-tip/raw/master/doc/ssb-g1-tip-logo.png)
===
**SSB/Ğ1 tip** is a micro donation system, just like Flattr, except:
- It runs on SSB instead of the centralized web
- It uses a libre currency (Ğ1) instead of a private one
## An SSB user sent you Ğ1? Here is how to claim it:
2020-03-20 23:16:09 +01:00
First, you need to generate your base58 Duniter secret key from your base64 SSB secret key.
```
chmod +x secret2dunikey.sh
./secret2dunikey.sh
```
2020-03-20 23:16:09 +01:00
Then, all you need to do is connect to a Duniter client, using the generated ~/.ssb/secret.dunikey
2020-03-20 23:16:09 +01:00
1. Download [Cesium](https://cesium.app/)
2. On Cesium homescreen, click "**Other methods**" and choose "**Keychain file**" :
3. Then, browse your filesystem to select your Duniter secret key stored in ~/.ssb/secret.dunikey :
2020-03-20 23:18:49 +01:00
4. Contemplate how rich and resilient you now are.
5. Update your Cesium+ profile to appear on the registry map.
2020-03-20 23:16:09 +01:00
![Cesium authentification](https://git.p2p.legal/axiom-team/ssb-g1-tip/raw/master/doc/create-account.gif)
## You too want to send tips?
2020-03-20 23:16:09 +01:00
A cool way to spend your Ğ1 is use it with this micro-donation system.
2020-03-20 17:29:21 +01:00
### Install
2020-03-20 23:16:09 +01:00
First, you have to install the necessary tools using the `install.sh` script.
```
chmod +x install.sh tip.sh
./install.sh
```
2020-03-20 23:16:09 +01:00
This script installs tools like Silkaj, the command line Duniter client. Don't worry, you will only have to do this once 😉
2020-03-20 17:29:21 +01:00
### Usage
Then, once every other week, you can use the `tip.sh` script :
```
./tip.sh
```
`tip.sh` will have a look at the posts you liked and will send from your Duniter account the corresponding amount (based on the number of times you liked a post) to the appropriate recipients.
2020-03-20 23:16:09 +01:00
It will also generate one or more markdown formatted files to help you thank publicly your fellow butts, and make them aware you sent them a tip 😉
2020-03-20 17:17:58 +01:00
![](https://git.p2p.legal/axiom-team/ssb-g1-tip/raw/master/doc/tip.gif)
## Other ways to spend your Ğ1
2020-03-14 22:53:27 +01:00
The Ğ1 currency originated in called France, so the main part of the fun happens there.
The economy is still in its infancy, but you can already:
- [book a reservation in a B&B](https://www.gchange.fr/#/app/market/lg?last&category=cat67&type=offer),
- [buy SEO services](https://www.gchange.fr/#/app/market/lg?type=offer&q=SEO),
- [buy web hosting services](https://www.gchange.fr/#/app/market/lg?type=offer&q=h%C3%A9bergement%20web)
- [buy foreign language courses](https://www.gchange.fr/#/app/market/lg?type=offer&q=langues) (for example: [french](https://www.gchange.fr/#/app/market/view/AWybPgso8tT4T_JOSi4w/francais-langue-trangre))
- etc. etc. ([see latest offers](https://www.gchange.fr/#/app/market/lg?last&type=offer))
2020-03-15 03:01:24 +01:00
## Curious about libre currencies?
[Libre currencies](https://libre-currency.org/) are a concept that originated from the [Relative Theory of Money](https://en.trm.creationmonetaire.info/).
It is a way to design a currency so that every human, whatever the generation they are part of, produces the same relative amount of money.
2020-03-20 23:16:09 +01:00
Unlinke the majority of currencies, where money creation is centralized (money is created by big private banks via credit), in a libre currency, money creation takes place everywhere.
2020-03-15 01:55:06 +01:00
2020-03-20 17:37:17 +01:00
![](https://git.p2p.legal/axiom-team/ssb-g1-tip/raw/master/doc/value-fields.png)
2020-03-15 01:55:06 +01:00
2020-03-20 17:37:17 +01:00
The Relative Theory of Money was written in 2010 by French mathematician Stephane Laborde, and the first libre currency (Ğ1) was born in 2017. Up to this day, Ğ1 is the only libre currency we know of.
2020-03-15 01:55:06 +01:00
### Ğ1, the first libre currency
2020-03-15 01:55:06 +01:00
Ğ1 the first libre currency we know of.
2020-03-15 01:55:06 +01:00
2020-03-20 23:16:09 +01:00
Ğ1 has the particularity to use blockchain to secure transactions, and uses on a web of trust to identify unique users, in order to make sure each individual can produce only one **Universal Dividend** each day, and nobody is cheating by producing a disproportionate amount of money.
Ğ1 runs on [the Duniter blockchain engine](https://duniter.org/).
The main clients for Duniter are [Cesium](https://cesium.app/) and [Silkaj](https://mystifying-nobel-66ae54.netlify.com/)
2020-03-15 01:55:06 +01:00
2020-03-16 16:40:23 +01:00
## With docker (experimental)
### install docker & docker-compose
[Docker](https://docs.docker.com/install/)
[Docker-compose](https://docs.docker.com/compose/install/)
2020-04-01 14:53:00 +02:00
### variables
SSB_PATH : this is important variable to locate your ssb db path and secret file don't forget to set that.
First you need to build docker image.
2020-03-16 16:40:23 +01:00
```
SSB_PATH=~/.ssb/ docker-compose build
2020-03-16 16:40:23 +01:00
```
create your dunikey
```
2020-04-01 14:53:00 +02:00
SSB_PATH=~/your-copy-ssb/ docker-compose up -d tip # only you need to run tiping part
SSB_PATH=~/your-copy-ssb/ docker-compose up -d # if you need to run all platform
2020-03-16 16:40:23 +01:00
```
2020-03-24 08:07:14 +01:00
run main tip script
2020-03-16 16:40:23 +01:00
```
2020-04-01 14:53:00 +02:00
container_id=$(docker ps -a -q --filter="ancestor=ssb-g1like_tip") && docker exec -ti $container_id bash -c "/home/astroport/tip"
```
For display thank you file
```
container_id=$(docker ps -a -q --filter="ancestor=ssb-g1like_tip") && docker cp $container_id:/home/astroport/thank-your-butts-$(date -u +%Y-week-%W).md ~ && docker exec -ti $container_id bash -c "rm -rf /home/astroport/thank-your-butts-$(date -u +%Y-week-%W).md"
2020-03-16 16:40:23 +01:00
```
2020-03-23 08:55:30 +01:00
## Authors
- **cel** (`@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519`)
- **Fred** (`@9BbJwPDjcyIqrOUPNn0nJZBduWdIrpMk3Cjz5MP361s=.ed25519`)
- **Boris** (`@l5nYExWYIgDLV6BYHOJPoI97jIUyTdSm8CTLpQ0XeOg=.ed25519`)
- **poka** (`@vDQif9KU3T78XJx+NliK+wdo1vmehHZCWqD+3X700Uk=.ed25519`)
- **chamalow** (`@qio8/4L4vnzq3qRD0dqKI7sTpey54u8ZWbaICfpJOZw=.ed25519`)
2020-03-23 08:55:30 +01:00