Giter Site home page Giter Site logo

Comments (6)

maxrobot avatar maxrobot commented on June 21, 2024

Hi,

There is no default off-chain module or relay required in the Ion framework.

Ion aims to facilitate trustless interoperability, where blocks passed from another chain can be validated to see if they were really included in the other chains ledger/blockchain.

Let me give more context.

Given two Ethereum chains A and B. In order to pass state from A to B, blocks from chain A would be encoded and used as an input arguments of a function in a validation contract on chain B.

The validation contract on chain B would be specific to the consensus mechanism used on chain A, i.e. if chain A uses Clique PoA then it must be able to validate these blocks. If a block is validated then it is persisted in a block storage contract where users can query the state transitions that occurred in this block.

This is at a high-level how the Ion framework is designed.

However, there is no relay that performs the passing of blocks/state automatically. Rather it is expected that users would decide how they wish to submit blocks between chains dependent on their use case.

For testing and development purposes the Ion-CLI has a number of features to assist in encoding blocks and interacting with smart contracts. It is not designed to be a relay that submits blocks automatically, but feel free to add this feature.

For more details on Ion and our vision please check out this post, here, and the Ion wiki here.

I hope that answers your question :) else ask more!

from ion.

patidarmanoj10 avatar patidarmanoj10 commented on June 21, 2024

Thanks for answering in details. It clears my confusions. I was wondering if all blocks need to submit in chain B to validator tx xyz exist in Chain A? Chain A has 1000 blocks and only two block contains some tx which is suppose to validated in chain B.

from ion.

patidarmanoj10 avatar patidarmanoj10 commented on June 21, 2024

Also, If bad actors submitting their own fake blocks in chain B which actually does not exist in chain A but structure of the block is valid. Trie , root, RLP looks okay but it doesnt blong to chain A. or we assume only whitelisted validators are submitting blocks?

from ion.

Shirikatsu avatar Shirikatsu commented on June 21, 2024

If bad actors submitting their own fake blocks in chain B which actually does not exist in chain A but structure of the block is valid

Ion is separated into validation and storage layers. Submitted blocks are only accepted if it passes correctness verification in the validation layer. This layer is responsible for checking the consensus result of the originating chain to ensure that the block being submitted has been committed to the chain before storing it.

I was wondering if all blocks need to submit in chain B to validator tx xyz exist in Chain A?

This all depends on the validation layer.

In Clique PoA consensus, validator votes are tallied and changes to the validator set are made after a threshold. This therefore requires the validation layer to replicate this to ensure that votes are collected properly to reflect validator set changes. When new blocks are submitted, the signature on the block is checked against the known set of validators before storage.

Other validation mechanisms (that replicate source chain consensus/finality) may or may not require sequential block submission.

from ion.

Fergly avatar Fergly commented on June 21, 2024

However, there is no relay that performs the passing of blocks/state automatically. Rather it is expected that users would decide how they wish to submit blocks between chains dependent on their use case.

Hi @Shirikatsu, do you envisage any issues with using a Chainlink oracle job to achieve trustless automation of passing of the validation blocks? Thanks.

from ion.

github-actions avatar github-actions commented on June 21, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from ion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.