Coder Social home page Coder Social logo

Comments (2)

liamsi avatar liamsi commented on August 15, 2024

The way we (roughly) want to approach this for a very first version, is the following:

The block proposer, will, after erasure coding the block into a square and compute the row and column roots:
image

We need to write the nodes of these trees into an IPFS DAG. To make this possible, we first need to collect the nodes of the Merkle trees - the current NMT implementation returns only the root of a tree and throws away the inner nodes (see: celestiaorg/nmt#9).
Then, we need to implement a IPLD plugin, similar to the one used in our experiments to properly store the nodes into the ipfs DAG.
To be useful this requires running an IPFS node along with a tendermint node.
There are two options how we could write into the DAG:

  1. Use dag put: This requires the nodes to be encoded into a format the plugin can parse prior storing them.
  2. Directly batch add the nodes: dag put internally decodes and then batch adds the decoded nodes via the DAG api / a NodeAdder. We probably can directly use this adder instead.

(1.) has the advantage that we can also use this via the command-line and we know that it works. The only downside is that it requires a, in this context, superfluous encoding and decoding step (roughly Nodes->Encode(Nodes)->Decode(Nodes)->Nodes->AddBatch(Nodes))
(2.) does directly what we want. We could even pass a "store" into the NMT, that adds the nodes directly to the batch. (roughly Nodes->AddBatch(Nodes)). Downside (not really) is that this might require some more digging into how to setup a environment.

As a first step this block propagation mechanism will be added to the current gossip-based mechanism, later we will remove the current mechanism.

from celestia-core.

liamsi avatar liamsi commented on August 15, 2024

We decided to stick with Tendermint's block propagation for now. closing.

from celestia-core.

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.