Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEO and Ontology readme add #6

Merged
merged 13 commits into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added digitalOcean/.DS_Store
Binary file not shown.
123 changes: 123 additions & 0 deletions digitalOcean/TomoChain/README.md
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"
```


188 changes: 188 additions & 0 deletions digitalOcean/neo/README.md
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
johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved

```
sudo apt-get install unzip libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev
```
Please select 'Y' inorder to install

johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved
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
johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved
```

To speed up the syn process:

Bootstrap the testnet blockchain

```
np-bootstrap
```
johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved
```
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
```
johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved
And the output will showing the following message

johnny7861532 marked this conversation as resolved.
Show resolved Hide resolved
```
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

Loading