@@ -10,252 +10,26 @@ Software is still under development, and is not used yet. **This means no curren
...
@@ -10,252 +10,26 @@ Software is still under development, and is not used yet. **This means no curren
However, it is hoped to build a new currency in a near future according to the following roadmap:
However, it is hoped to build a new currency in a near future according to the following roadmap:
1. uCoin has to be tested, thus a beta currency will be planned
1. Several POCs (prototypes) of uCoin will be released (first during August/September 2014)
2. If beta is convincing, and in a collective agreement process, a brand new money will be started
2. Code adaptation, cleaning, unit tests
3. New softwares will need to be coded:
3. Beta testing with volunteer people
* A ready-to-be-signed amendments generator
* Siblings of uCoin in other programming languages
* Clients and GUIs to interact with uCoin servers
* Analysis softwares
* ...
So, there is still lot of work. *But*, all this is not required in short-term.
> uCoin is server-side software and will require client GUI to be (easily) used. **Feel free to propose yours!**
## Features
## Going further
**Peer-to-peer crypto-currency**
### Documentation
uCoin fully relies on OpenPGP standard to describe crypto-currencies, provide P2P synchronization mecanisms and allow data distribution.
Visit [ucoin.io](http://ucoin.io) website: it gathers theoretical informations, FAQ and several useful links. If you want to learn, this is the first place to visit.
**Universal Dividend - by people, for people**
### Talk about/get involved in uCoin project
uCoin uses [Human Dividend Currency format](https://github.com/ucoin-io/ucoin/blob/master/doc/HDC.md) to describe the monetary system, where money is issued directly and exclusively **by** individuals of the Community to themselves. Individuals are the only ones who may issue new money, and choose the unities they desire : this is a monetary system where **U** coin.
If you wish to participate/debate on uCoin, you can:
**Democratic**
* visit [uCoin Forum](http://forum.ucoin.io)
In a uCoin currency, money is legitimated by collectively signed documents. *De facto*, uCoin implies a democratical process in money issuance and community membership.
**Humanity scale compliant**
uCoin uses a distribution system for its transactions database, allowing for potentially humanity scale currencies. Indeed, billions of people making together millions of transactions per second is not likely to be handled by every unit of a PC made network. That is why uCoin transactions database is distributed.
## Specifications
You can get more in uCoin project reading the following documents:
uCoin was already tested and should be working on majority of Debian-based systems. To work, it requires the following softwares:
* nodejs (0.10+)
* gnupg
* mongodb
### Node.js
uCoin is powered by Node.js v0.10+, so you need it installed first. Here is an example for Ubuntu installation:
```bash
$ sudo apt-get update
$ sudo apt-get install python-software-properties python g++ make
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
```
You can find the installation of Node.js for other distribution [on this GitHub document](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager).
### GnuPG + MongoDB
It's that simple:
```bash
$ sudo apt-get install mongodb gnupg
```
### uCoin from npm repository (recommended)
This fetches ucoin using npm. Fast & easy to do:
```bash
$ sudo npm install ucoin -g
```
### uCoin from git repository
This just fetch & install uCoin (development state):
```bash
$ git clone git@github.com:ucoin-io/ucoin.git
$ sudo npm install ./ucoin -g
```
## Configure uCoin (required)
All uCoin configuration is stored in its database, i.e. MongoDB.
To start configuring your node, use following command:
```bash
ucoind wizard
```
This will start a command prompt asking for parameters value & validate all of them at the end. Thus, you won't forget one:
```bash
$ ucoind wizard
[?] Currency name: beta_brousouf
[?] Which OpenPGP implementation to use: gpg - Fast but must be installed on your system
Wizard is composed of 4 steps: `currency`, `openpgp`, `network`, `key`. By adding one of those words to `wizard` command, you will only do the attached steps:
Finally, you just need to use `start` command to launch the node:
```bash
$ ucoind start
[2014-05-19 17:42:33.494] [DEBUG] service - Loaded service: Contract
...
[2014-05-19 17:42:33.613] [DEBUG] ucoind - Server ready!
```
### Change of database
The default database name is "ucoin_default". Thus, when using any command, the targeted database is "ucoin_default".
To deal with another database, just add `--mdb` parameter:
```bash
$ ucoind --mdb mycurrency wizard
```
This will launch wizard on `mycurrency` database *only*.
### Manual configuration
You might also want to do your configuration manually, using CLI options. [Here is a document](./doc/manual-config.md) on how to achieve this.
### Initial data
Once your server is running, it is already usable. However, at this step, you have 2 choices: you might either want to create your brand new currency with fresh new data, or just want to add your node to an already existing currency. Below are how to do each.
#### Brand new currency
You should follow [this gist](https://gist.github.com/c-geek/6343172) which explains how to use [ucoin-cli](https://github.com/ucoin-io/ucoin-cli) software, allowing to add your first keys, create your initial Monetary Contract and make transactions.
#### Existing currency
In this cas, you need to synchronize with existing peers to fetch existing:
* Public keys
* Monetary Contract
* Transactions
* Peers
* Trust Hash Table
This is easily done with:
```bash
$ ucoind sync <host_name> <port>
```
For example, to synchronise with [ucoin.twiced.fr:9101](http://ucoin.twiced.fr:9101/network/peering):