Datagen-Project / Grant_Second_Milestone

Early code contributions and testing for the second milestone of W3F grant
0 stars 0 forks source link

Design Details #3

Open cuteolaf opened 1 year ago

cuteolaf commented 1 year ago

I'm going to write down how the overall Datagen project works.

You can read the whole application document here.

Key points from the application document

Technical Design

How mathematical works are performed in FB

A user will be paired with an FB validator in some criteria(e.g. geographical location) and request computational works.

The paired FB validator node should

All of the above will be done in an off-chain worker.

Representing & Storing a mathematical problem

Off-chain worker design

Off-chain worker is the core component of an FB node.

It will

Extrinsics of FB

Lord-Nymphis commented 1 year ago

As for the Milestone 2 of the Web3 foundation grant, there are some simplifications from the functional Datagen infra:

-The infrastructure (both Heavy and Fast Blockchain) is in local;

-The computational problem is simulated by the pallet_computational_work (that we developed in the first milestone of our Grant), which is asking to FB validators to compute the Fibonacci sequence;

-The mathematical problem is stored in the HB runtime (vs IPFS node in the functional infra);

-The user's request to FB validators to run the pallet_computational_work could be simply triggered by a function run in the FB runtime (given that the infra is still in local);

-Parity's Repo https://github.com/paritytech/solo-para-bridge-poc can be used as foundation for the bridge architecture (given that RPC are at their core not so different from off-chain workers / bridges)