tig-monorepo/tig-protocol
2025-03-31 21:08:15 +08:00
..
src Implement hash_threshold update logic. 2025-03-31 21:08:15 +08:00
Cargo.toml Remove unused tokio dependency. 2024-11-29 16:24:42 +00:00
README.md Add legal docs. 2024-05-16 12:41:51 +08:00

tig-protocol

A Rust crate that contains the implementation of TIG's core protocol logic.

  1. context.rs defines the Context trait which the TIG protocol interacts with to query & update data
  2. add_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
  3. submit_algorithm.rs/submit_benchmark.rs/submit_proof.rs implements the logic for validating an algorithm/benchmark/proof submission before adding it to the mempool
  4. verify_proof.rs implements the logic for validating the runtime signature of a solution

License

Download Agreement