Show the crate…

1 stable release

2.0.0 Apr 5, 2021
0.0.0 Mar 5, 2021

#190 in #tetcoin

Download history 63/week @ 2024-04-01 18/week @ 2024-04-08 17/week @ 2024-04-15 23/week @ 2024-04-22 17/week @ 2024-04-29 18/week @ 2024-05-06 26/week @ 2024-05-13 13/week @ 2024-05-20 23/week @ 2024-05-27 21/week @ 2024-06-03 19/week @ 2024-06-10 14/week @ 2024-06-17 24/week @ 2024-06-24 7/week @ 2024-07-08 23/week @ 2024-07-15

55 downloads per month
Used in 23 crates (2 directly)

GPL-3.0-or-later…

1.5MB
32K SLoC

Tetcore offchain workers.

The offchain workers is a special function of the runtime that gets executed after block is imported. During execution it's able to asynchronously submit extrinsics that will either be propagated to other nodes or added to the next block produced by the node as unsigned transactions.

Offchain workers can be used for computation-heavy tasks that are not feasible for execution during regular block processing. It can either be tasks that no consensus is required for, or some form of consensus over the data can be built on-chain for instance via:

  1. Challenge period for incorrect computations
  2. Majority voting for results
  3. etc

License: GPL-3.0-or-later WITH Classpath-exception-2.0


lib.rs:

Tetcore offchain workers.

The offchain workers is a special function of the runtime that gets executed after block is imported. During execution it's able to asynchronously submit extrinsics that will either be propagated to other nodes or added to the next block produced by the node as unsigned transactions.

Offchain workers can be used for computation-heavy tasks that are not feasible for execution during regular block processing. It can either be tasks that no consensus is required for, or some form of consensus over the data can be built on-chain for instance via:

  1. Challenge period for incorrect computations
  2. Majority voting for results
  3. etc

Dependencies

~40–58MB
~1M SLoC