ontology-oracle

command module
v0.0.0-...-32eac98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

README

English | 中文

Ontology Oracle

ontology oracle

Blockchain Oracle is designed to solve the problem that smartcontract can't interact with outside world. Now more and more dapps depend on outside world trigger: for example:

One flight will arrive at 10:00 am, if the flight delays, insurance smartcontract will be triggered, all applicants should get 100 token for compensation.

Now dapps need more and more outside world data, like flight information, stoke price, weather information, match result...

Ontology oracle is exactly the role of data transporter, makes it possible for smartcontract to get outside world data.

ontology oracle framework

framework

off-chain(oracle operator & data source)

Outside the blockchain, ontology oracle consist of oracle operator and data source.

Operator listen the oracle request of oracle contract in ontology network, process the request and fetch data from data source, serialize result and put it in oracle request.

Oracle request consist of 2 tasks, data fetch and data parse. Data fetch get response of target api, data parse parse the response and serialize the result according to the data structure defined by users.

on-chain(oracle contract)

On block chain, oracle contract receive oracle request from users and result from oracle operator. Any application contract and call oracle contract to request outside world data and get result.

Oracle work flow

workflow

Document

How to use oracle in your appplication

How to provide an oracle service

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL