A Rust crate that contains the implementation of TIG's core protocol logic.
context.rs
defines the Context trait which the TIG protocol interacts with to query & update dataadd_block.rs
implements the state transitions that occur when a new block is created. These transitions include:- confirm mempool items (benchmarks, algorithms, and more)
- update player cutoffs
- for each challenge, update solution signature threshold, qualifiers, and frontiers
- using optimisable proof-of-work to calculate influence and adoption
- distribution block rewards amongst benchmarkers and innovators
- updating algorithm merge points
submit_algorithm.rs
/submit_benchmark.rs
/submit_proof.rs
implements the logic for validating an algorithm/benchmark/proof submission before adding it to the mempoolverify_proof.rs
implements the logic for validating the runtime signature of a solution