Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.17 KB

TUTORIAL.md

File metadata and controls

64 lines (49 loc) · 1.17 KB

Tutorial

Install Ontology

Clone the source code and install dependency

$ go get github.com/ontio/ontology
$ cd $GOPATH/src/github.com/ontio/ontology
$ glide install

Make source code

$ make all

Create wallet

Yungde-MacBook-Pro-2:ontology phyrex$  ./ontology account add -d
Use default setting '-t ecdsa -b 256 -s SHA256withECDSA'
	signature algorithm: ecdsa
	curve: P-256
	signature scheme: SHA256withECDSA
Password:
Re-enter Password:
Index:2
Label:
Address:AbfNqEyvZJuNzguXTSP6sbioySZpsdYfeY
Public key:03ed07576c4d745edc6dd8938fc7cd24301523d6f95f71c4fc6b283c7184bffcfd
Signature scheme:SHA256withECDSA
Create account successfully.

wallet

Start testnet

./ontology --networkid 2

start

Smart Contract

Using smartx

Smart Contract Language

  • C#
  • Python
  • JavaScript (Coming soon)

Choosing smartx language

language

Choosing a smartx template, using "Domain"

smartx-1

Source code

smartx-2

Compile smartx

smartx-3