mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-02-21 15:31:26 +08:00
1016 B
1016 B
tig-protocol
A Rust crate that contains the implementation of TIG's core protocol logic.
context.rsdefines the Context trait which the TIG protocol interacts with to query & update dataadd_block.rsimplements 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.rsimplements the logic for validating an algorithm/benchmark/proof submission before adding it to the mempoolverify_proof.rsimplements the logic for validating the runtime signature of a solution