All Projects → ontio → Ontology

ontio / Ontology

Licence: other
Official Go implementation of the Ontology protocol. https://dev-docs.ont.io/#/

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Ontology

Composer
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 1,676 (+125.57%)
Mutual labels:  blockchain, distributed-ledger
Iroha
Iroha - A simple, enterprise-grade decentralized ledger
Stars: ✭ 210 (-71.74%)
Mutual labels:  blockchain, distributed-ledger
Advanced Eos Examples
EOS Smart Contract Development Examples
Stars: ✭ 146 (-80.35%)
Mutual labels:  blockchain, distributed-ledger
Composer Sample Applications
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 110 (-85.2%)
Mutual labels:  blockchain, distributed-ledger
Fabric Ca
Stars: ✭ 331 (-55.45%)
Mutual labels:  blockchain, distributed-ledger
Fabric Gateway Java
Hyperledger Fabric Gateway SDK for Java https://wiki.hyperledger.org/display/fabric
Stars: ✭ 122 (-83.58%)
Mutual labels:  blockchain, distributed-ledger
Bitconch Core
A new distributed web protocol for smart contracts and decentralized applications.
Stars: ✭ 203 (-72.68%)
Mutual labels:  blockchain, distributed-ledger
Iroha Ios
iOS Swift library for Iroha, a simple distributed ledger
Stars: ✭ 81 (-89.1%)
Mutual labels:  blockchain, distributed-ledger
Fabric Sdk Py
Hyperledger Fabric Python SDK
Stars: ✭ 303 (-59.22%)
Mutual labels:  blockchain, distributed-ledger
Ibc
Interchain Standards (ICS) for the Cosmos network & interchain ecosystem.
Stars: ✭ 286 (-61.51%)
Mutual labels:  blockchain, distributed-ledger
Iroha Android
Android library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Stars: ✭ 108 (-85.46%)
Mutual labels:  blockchain, distributed-ledger
Fabric Sdk Go
Stars: ✭ 712 (-4.17%)
Mutual labels:  blockchain, distributed-ledger
Dotnet Stellar Sdk
Stellar API SDK for .NET Core 2.x and .NET Standard 2.0
Stars: ✭ 97 (-86.94%)
Mutual labels:  blockchain, distributed-ledger
Fabric Sdk Node
Hyperledger Fabric SDK for Node https://wiki.hyperledger.org/display/fabric
Stars: ✭ 676 (-9.02%)
Mutual labels:  blockchain, distributed-ledger
Fabric Chaintool
Stars: ✭ 89 (-88.02%)
Mutual labels:  blockchain, distributed-ledger
Fabric
Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
Stars: ✭ 12,911 (+1637.69%)
Mutual labels:  blockchain, distributed-ledger
Blockchain Starter Kit
The training course for better understanding the blockchain from the ground up: a project template to create as simple as possible implementation of a blockchain.
Stars: ✭ 75 (-89.91%)
Mutual labels:  blockchain, distributed-ledger
Iroha Javascript
JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Stars: ✭ 77 (-89.64%)
Mutual labels:  blockchain, distributed-ledger
Composer Sample Networks
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 226 (-69.58%)
Mutual labels:  blockchain, distributed-ledger
Hyperledger
Hyperledger is a Collaborative Project at The Linux Foundation.
Stars: ✭ 3,653 (+391.66%)
Mutual labels:  blockchain, distributed-ledger

Ontology

Version 2.0.0

GoDoc Go Report Card Travis Discord

English | 中文

Welcome to the official Go implementation of the Ontology blockchain!

Ontology is a high-performance public blockchain project and distributed trust collaboration platform. It is highly customizable and suitable for all kinds of business requirements. The Ontology MainNet was launched on June 30th, 2018.

As a public blockchain project, Ontology is currently maintained by both the Ontology core tech team and community members who can all support you in development. There are many available tools for use for development - SDKs, the SmartX IDE, Ontology blockchain explorer and more.

New features are still being rapidly developed, therefore the master branch may be unstable. Stable versions can be found in the releases section.

Features

  • Scalable lightweight universal smart contracts
  • Scalable WASM contract support
  • Cross-chain interactive protocol
  • Multiple encryption algorithms supported
  • Highly optimized transaction processing speed
  • P2P link layer encryption (optional module)
  • Multiple consensus algorithms supported (VBFT/DBFT/RBFT/SBFT/PoW)
  • Quick block generation time (1-30 seconds)

Install from Binaries

You can download a stable compiled version of the Ontology node software by either:

  • Downloading the latest Ontology binary file with curl https://dev.ont.io/ontology_install | sh.
  • Downloading a specific version from the release section.

Build From Source

Prerequisites

  • Golang version 1.12 or later

Build

Note that the code in the master branch may not be stable.

$ git clone https://github.com/ontio/ontology.git
$ cd ontology
$ make all

After building the source code successfully, you should see two executable programs:

  • ontology: The primary Ontology node application and CLI.
  • tools/sigsvr: The Ontology Signature Server, sigsvr - an RPC server for signing transactions. Detailed documentation can be found here.

Run Ontology

The Ontology CLI can run nodes for the MainNet, TestNet and local PrivateNet. Check out the Ontology CLI user guide for a full list of commands.

MainNet Sync Node

You can run an Ontology MainNet node built from the source code with:

./ontology                          # Linux
./ontology-darwin-amd64             # MacOS
start ontology-windows-amd64.exe    # Windows

TestNet Sync Node

You can run an Ontology TestNet node built from the source code with:

./ontology --networkid 2                        # Linux
./ontology-darwin-amd64 --networkid 2           # MacOS
 start ontology-windows-amd64.exe --networkid 2 # Windows

Local PrivateNet

The Ontology CLI allows you to run a local PrivateNet on your computer. Before you can run the PrivateNet you will need to create a wallet file. A wallet file named wallet.dat can be generated by running

./ontology account add -d

To start the PrivateNet built from the source code with:

./ontology --testmode                       # Linux
./ontology-darwin-amd64 --testmode          # MacOS
start ontology-windows-amd64.exe --testmode # Windows

Here's an example of the directory structure

$ tree
└── ontology
    ├── ontology
    └── wallet.dat

Run with Docker

You can run the Ontology node software with Docker.

  1. Setup Docker on your computer
  1. Make a Docker image
  • In the root directory of the source code, run make docker to make an Ontology image.
  1. Run the Ontology image
  • Run the command docker run ontio/ontology to start Ontology
  • Run the command docker run -ti ontio/ontology to start Ontology and allow interactive keyboard input
  • If you need to keep the data generated by the image, refer to Docker's data persistence function
  • You can add arguments to the Ontology command, such as with docker run ontio/ontology --networkid 2.

Examples

ONT transfer sample

-- from: transfer from; -- to: transfer to; -- amount: ONT amount;

 ./ontology asset transfer  --from=ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48 --to=AaCe8nVkMRABnp5YgEjYZ9E5KYCxks2uce --amount=10

If the asset transfer is successful, the result will display as follows:

Transfer ONT
  From:ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48
  To:AaCe8nVkMRABnp5YgEjYZ9E5KYCxks2uce
  Amount:10
  TxHash:437bff5dee9a1894ad421d55b8c70a2b7f34c574de0225046531e32faa1f94ce

TxHash is the transfer transaction hash, and we can query a transfer result by the TxHash. Due to block time, the transfer transaction will not be executed before the block is generated and added.

If you want to transfer ONG, just add --asset=ong flag.

Note that ONT is an integer and has no decimals, whereas ONG has 9 decimals. For detailed info please read Everything you need to know about ONG.

./ontology asset transfer --from=ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48 --to=ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48 --amount=95.479777254 --asset=ong

If transfer of the asset succeeds, the result will display as follows:

Transfer ONG
  From:ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48
  To:AaCe8nVkMRABnp5YgEjYZ9E5KYCxks2uce
  Amount:95.479777254
  TxHash:e4245d83607e6644c360b6007045017b5c5d89d9f0f5a9c3b37801018f789cc3

Please note, when you use the address of an account, you can use the index or label of the account instead. Index is the sequence number of a particular account in the wallet. The index starts from 1, and the label is the unique alias of an account in the wallet.

./ontology asset transfer --from=1 --to=2 --amount=10

Query transfer status sample

./ontology info status <TxHash>

For Example:

./ontology info status 10dede8b57ce0b272b4d51ab282aaf0988a4005e980d25bd49685005cc76ba7f

Result:

Transaction:transfer success
From:AXkDGfr9thEqWmCKpTtQYaazJRwQzH48eC
To:AYiToLDT2yZuNs3PZieXcdTpyC5VWQmfaN
Amount:10

Query account balance sample

./ontology asset balance <address|index|label>

For Example:

./ontology asset balance ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48

or

./ontology asset balance 1

Result:

BalanceOf:ARVVxBPGySL56CvSSWfjRVVyZYpNZ7zp48
  ONT:989979697
  ONG:28165900

For further examples, please refer to the CLI User Guide.

Contributions

Contributors to Ontology are very welcome! Before beginning, please take a look at our contributing guidelines. You can open an issue by clicking here.

If you have any issues getting setup, open an issue or reach out in the Ontology Discord.

License

The Ontology source code is available under the LGPL-3.0 license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].