-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from johnny7861532/master
NEO and Ontology readme add
- Loading branch information
Showing
4 changed files
with
433 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Start a Tomochain masternode on DigitalOcean | ||
|
||
> Tomochain is a public EVM (Ethereum Virtual Machine)-compatible blockchain with the following advantages: low transaction fee, fast confirmation time, double validation and randomization for security guarantees. In particular, we propose Proof-of-Stake Voting (PoSV) consensus, a Proof-of-Stake (PoS)-based blockchain protocol with a fair voting mechanism, rigorous security guarantees and fast finality. We also present a novel reward mechanism and show that, with this mechanism, the blockchain has a low probability of forks, fast confirmation times, plus the contributions and benefits of masternodes are fair in the sense that the probability distribution function is uniform eventually. | ||
## What is needed | ||
|
||
### SSH Terminal | ||
|
||
- Windows: Recommend Putty, <https://www.putty.org/> | ||
- Mac OS: Using default terminal | ||
|
||
## Getting Started | ||
|
||
### Login | ||
|
||
If you already have DigitalOcean account, you can login into your account. | ||
|
||
### Sign up | ||
|
||
If you don't have DigitalOcean account, please sign up. | ||
|
||
## 1. Create Project | ||
|
||
![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png) | ||
|
||
## 2. Create Droplets | ||
|
||
![Create Droplet](https://s3.amazonaws.com/kaizen-images/github/create_droplet.png) | ||
|
||
### Droplets configuration | ||
|
||
- Choose an image | ||
- Ubuntu 18.04 x 64 | ||
- Choose a size | ||
- CPU: 1 GB | ||
- SSD: 25 GB | ||
- Transfer: 1000 GB | ||
- Price: $5 / month | ||
|
||
![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) | ||
|
||
- CPU Optimized Droplets (Skip) | ||
- Add backups (Skip) | ||
- Add block storage (Skip) | ||
- Choose a datacenter region | ||
- Bangalore | ||
|
||
![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png) | ||
|
||
- Select additional options (Skip) | ||
- Add your SSH keys (Skip) | ||
- Finalize and create | ||
- Choose a hostname: *Type a name you'd like* or using default | ||
- Click **Create** | ||
|
||
## 3. Connect to node | ||
|
||
After create the Droplets, you will receive the email include: | ||
|
||
- Droplet Name | ||
- IP Address | ||
- Username | ||
- Password | ||
|
||
Using terminal/putty to connect the droplet node | ||
|
||
``` | ||
$ ssh root@<IP_ADDRESS> | ||
``` | ||
|
||
*NOTE: You must change your password at the first time you connect to the droplet node.* | ||
|
||
## 4. Installation | ||
|
||
Update Ubuntu | ||
|
||
``` | ||
apt-get update | ||
``` | ||
Install Python3 | ||
|
||
``` | ||
apt install python3 | ||
``` | ||
|
||
Install Pip3 | ||
|
||
``` | ||
apt install python3-pip | ||
``` | ||
|
||
Install tmn ( Tomochain python kit ) | ||
|
||
``` | ||
pip3 install tmn | ||
``` | ||
|
||
|
||
## 5. Download and build | ||
|
||
Get the necessary docker kit | ||
|
||
``` | ||
curl -sSL https://get.docker.com/ | sh | ||
``` | ||
|
||
Set up docker compose | ||
|
||
``` | ||
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | ||
``` | ||
|
||
|
||
|
||
### Start a testnet masternode | ||
|
||
|
||
|
||
``` | ||
tmn start --name johnnyh --net testnet --pkey "private key" | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
# Setting up NEO on DigitalOcean | ||
|
||
> NEO is a non-profit community-driven blockchain project. It utilizes blockchain technology and digital identity to digitize assets and automate the management of digital assets using smart contracts. Using a distributed network, it aims to create a "Smart Economy". | ||
## What is needed | ||
|
||
### SSH Terminal | ||
|
||
- Windows: Recommend Putty, <https://www.putty.org/> | ||
- Mac OS: Using default terminal | ||
|
||
## Getting Started | ||
|
||
### Login | ||
|
||
If you already have DigitalOcean account, you can login into your account. | ||
|
||
### Sign up | ||
|
||
If you don't have DigitalOcean account, please sign up. | ||
|
||
## 1. Create Project | ||
|
||
![Create Project](https://s3.amazonaws.com/kaizen-images/github/create_project.png) | ||
|
||
## 2. Create Droplets | ||
|
||
![Create Droplet]( https://s3.amazonaws.com/kaizen-images/github/create_droplet.png) | ||
|
||
### Droplets configuration | ||
|
||
- Choose an image | ||
- Ubuntu 18.04 x 64 | ||
- Choose a size | ||
- CPU: 1 GB | ||
- SSD: 25 GB | ||
- Transfer: 1000 GB | ||
- Price: $5 / month | ||
|
||
![Choose Image](https://s3.amazonaws.com/kaizen-images/github/choose_ipfs_image.png) | ||
|
||
- CPU Optimized Droplets (Skip) | ||
- Add backups (Skip) | ||
- Add block storage (Skip) | ||
- Choose a datacenter region | ||
- Bangalore | ||
|
||
![Choose Region](https://s3.amazonaws.com/kaizen-images/github/choose_region.png ) | ||
|
||
- Select additional options (Skip) | ||
- Add your SSH keys (Skip) | ||
- Finalize and create | ||
- Choose a hostname: *Type a name you'd like* or using default | ||
- Click **Create** | ||
|
||
## 3. Connect to node | ||
|
||
After create the Droplets, you will receive the email include: | ||
|
||
- Droplet Name | ||
- IP Address | ||
- Username | ||
- Password | ||
|
||
Using terminal/putty to connect the droplet node | ||
|
||
``` | ||
$ ssh root@<IP_ADDRESS> | ||
``` | ||
|
||
*NOTE: You must change your password at the first time you connect to the droplet node.* | ||
|
||
## 4. Installation | ||
|
||
Update ubuntu | ||
|
||
``` | ||
apt-get update | ||
``` | ||
|
||
Install Database | ||
|
||
``` | ||
sudo apt-get install unzip libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev | ||
``` | ||
Please select 'Y' inorder to install | ||
|
||
We are using neo-python to setup everything so we need to install python3 and pip3 first | ||
|
||
Install python3 | ||
|
||
``` | ||
apt install python3 | ||
``` | ||
|
||
Install pip3 | ||
|
||
``` | ||
apt install python3-pip | ||
``` | ||
|
||
|
||
|
||
## 5. Download and build | ||
|
||
Create folder for NEO | ||
|
||
``` | ||
git clone https://github.com/CityOfZion/neo-python.git | ||
``` | ||
|
||
Change directory to NEO source | ||
|
||
``` | ||
cd neo-python | ||
``` | ||
|
||
Before we can install neo-python there are two libirary need to be installed first | ||
|
||
Openssl | ||
|
||
``` | ||
apt-get install openssl | ||
``` | ||
|
||
Libssl | ||
|
||
``` | ||
apt-get install libssl-dev | ||
``` | ||
|
||
Install neo-python | ||
|
||
``` | ||
pip3 install neo-python | ||
``` | ||
|
||
To speed up the syn process: | ||
|
||
Bootstrap the testnet blockchain | ||
|
||
``` | ||
np-bootstrap | ||
``` | ||
``` | ||
root@test:~/neo-python# np-bootstrap | ||
This will overwrite any data currently in /root/.neopython/Chains/SC234. | ||
Type 'confirm' to continue | ||
[confirm]> | ||
``` | ||
|
||
Bootstrap the testnet notifications database | ||
|
||
``` | ||
np-bootstrap -n | ||
``` | ||
|
||
|
||
|
||
### Start testnet and wallet creation | ||
|
||
Its easy to start NEO testnet now, just typing the following cmd | ||
|
||
``` | ||
np-prompt | ||
``` | ||
And the output will showing the following message | ||
|
||
``` | ||
root@test:~/neo-python# np-prompt | ||
[I 181130 08:20:27 LevelDBBlockchain:112] Created Blockchain DB at /root/.neopython/Chains/SC234 | ||
[I 181130 08:20:33 NotificationDB:73] Created Notification DB At /root/.neopython/Chains/Test_Notif | ||
NEO cli. Type 'help' to get started | ||
``` | ||
|
||
If you want to create a new wallet for NEO: | ||
|
||
``` | ||
create wallet {your_wallet_name} | ||
``` | ||
|
||
Open wallet | ||
|
||
``` | ||
open wallet {your_wallet_name} | ||
``` | ||
NEO cli can reference here: https://github.com/CityOfZion/neo-python#running | ||
|
Oops, something went wrong.