# Help us create a federated and decentralised parachain oracle system

**URL:** <https://forum.polkadot.network/t/help-us-create-a-federated-and-decentralised-parachain-oracle-system/1190>\
**Category:** Tech Talk\
**Created:** [November 22, 2022, 1:50pm UTC](https://forum.polkadot.network/t/help-us-create-a-federated-and-decentralised-parachain-oracle-system/1190 "2022-11-22T13:50:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaincormier](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/sylvaincormier/32/7545_2.png) [@sylvaincormier](https://forum.polkadot.network/u/sylvaincormier)\
**Post date:** [November 22, 2022, 1:50pm UTC](https://forum.polkadot.network/t/help-us-create-a-federated-and-decentralised-parachain-oracle-system/1190/1 "2022-11-22T13:50:55Z")

</div>

Kylin is building a decentralised oracle system with  
a configurable framework for democratically creating and managing its oracle system entities.

- Service level agreement (SLA) between the providers and consumers of data
- Multi-level oracle data agglomeration to balance security, authenticity, persistency and speed
- Transparency and traceability of data provenance
- Democratization of the data management process
- Multi purpose dispute resolution mechanism/ truth machine
- Extra voting rules which can help to assess and strenghten the validity of a vote
- Data and feed ownership management with NFT and metadata
- Free data market

Before any of this can be achieved with the outside world,  
the Kylin team is asking for the collaboration of other parchains  
to help us create a federated and decentralised parachain oracle system  
by contributing &&|| receiving a feed through the install of 1 or 2 pallets.

The goal of this initial proposal is to:

- Initially offer cheap and reliable agglomerated i64 feeds
- Rely on the fact that the providers are parachains and thus reliable
- Provide a running testing platform on rococo network for auditing  
the system before any subsequent work is done.
- Give us more time to build adequate requisites for our KYR (Know your reporter)  
system with our partners  
\*Test the limits/possibilities of XCM

The pallets we wish for you to install reside here:  
[https://github.com/Kylin-Network/kylin-collator/tree/main/pallets/kylin-feed](https://github.com/Kylin-Network/kylin-collator/tree/main/pallets/kylin-feed)

[https://github.com/Kylin-Network/kylin-collator/tree/main/pallets/kylin-reporter](https://github.com/Kylin-Network/kylin-collator/tree/main/pallets/kylin-reporter)

The tool used to interact with the system:

> **[GitHub - Kylin-Network/kylin-toolbox: Tools for kylin-collator node](https://github.com/Kylin-Network/kylin-toolbox)**
>
> Tools for kylin-collator node. Contribute to Kylin-Network/kylin-toolbox development by creating an account on GitHub.

and a tutorial for doing this:  
[https://docs.google.com/document/d/1ZzYIX3ZoBdXEGKV4C3sl\_u9CHFoER16J/edit#bookmark=id.gjdgxs](https://docs.google.com/document/d/1ZzYIX3ZoBdXEGKV4C3sl_u9CHFoER16J/edit#bookmark=id.gjdgxs)

Current uncertainties:

- Due to the asynchronous nature of XCM, the feeds could have a substantial latency.  
We look forward to testing this in the wild.  
Fortunately, accomplished oracle systems like Chainlink, have a turn around of 120 seconds, which should be easily achievable.  
\*Although we believe that a certain level of trust can be obtained from parachains,  
this is not logically guaranteed. A contract or agreement will surely have to be signed  
before deploying on Kusama or Polkadot.  
\*We realize that the use of contracts might be optimal to this and we are looking forward to developing this with Swanky!

We understand that this is probably not the perfect solution to achieve this so  
we look forward to any feedback to fulfill our mandate to become the oracle system of choice for Dotsama.

- The Kylin team: Tristan, Razvan and Sylvain

 ![KylinOraclePalletParachain](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/1X/4137bd17aeea05d493d57916d1258e912daf4dc8.png)  
 ![federated](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/1X/1369647d38ee7eea03679797a45da2b9cbb6c80c.jpeg)

> <https://github.com/Kylin-Network/KylinDocs/blob/8569c565f7b249cb20b44eadb72f96f3f458b371/whitepaper/A_decentralized_market_place_as_a_source_of_truth.pdf>

---

<div class="post-metadata">

**Author:** ![xlc](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/xlc/32/690_2.png) [@xlc](https://forum.polkadot.network/u/xlc)\
**Post date:** [November 22, 2022, 11:02pm UTC](https://forum.polkadot.network/t/help-us-create-a-federated-and-decentralised-parachain-oracle-system/1190/2 "2022-11-22T23:02:26Z")

</div>

This could play nicely with [Interchain Proof Oracle Network](https://forum.polkadot.network/t/interchain-proof-oracle-network/653) that other parachains will be able to access committed data on Kylin parachain.

---

<div class="post-metadata">

**Author:** ![sylvaincormier](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/sylvaincormier/32/7545_2.png) [@sylvaincormier](https://forum.polkadot.network/u/sylvaincormier)\
**Post date:** [November 24, 2022, 1:14pm UTC](https://forum.polkadot.network/t/help-us-create-a-federated-and-decentralised-parachain-oracle-system/1190/3 "2022-11-24T13:14:28Z")

</div>

New docs on how to do this!  
[https://github.com/Kylin-Network/kylin-collator/tree/v0.9.30-rococo/doc](https://github.com/Kylin-Network/kylin-collator/tree/v0.9.30-rococo/doc)
