K2 - Tick, Tock, Fast Blocks
Fast transaction settlement and timestamps.
K2 is the current settlement layer within Koii and provides the functionality of a message hub to other systems in the network. Thanks to the incredible work of the Solana Labs team, K2 is able to use Proof of History to achieve 0.2-second transaction times and thousands of transactions per second.
The settlement layer holds the KOII tokens, as well as an immutable ledger of transaction history, an active registry of open compute operations, and all compute task metadata.
Heads up! To use K2, you'll need to install the Koii CLI or try the Koii SDK, which provides vital functions such as creating wallets, sending transactions, and signing data.
Native programs in K2 are used to extend the default Solana settlement functionality and have been used to modify things to optimize for off-chain compute and content-centric applications. The two native programs currently in use are the task contract and the attention game.
The Task Contract
Koii task nodes use the settlement layer to submit proofs and request rewards for compute work. All task related activities are managed by the built-in task contract, which is managed by the Koii foundation. Some of the operations the task contract supports are:
- Pull a timestamp proof
- Submit proofs to claim task rewards
- Trigger audit on a node's reward request
- Submit a distribution event
- Select a node for a distribution event
- Fetch all submissions for a task
The Attention Game
In order to ensure that Koii is owned by the community, and not only those with the means to provide compute, 90% of all newly generated tokens are created by the attention contract. Each day, Koii nodes collect Proofs of Real Traffic and submit batches of them into decentralized storage. Every epoch (roughly every 12 hours), a pool of new tokens is created and distributed to anyone who receives attention to their content. Node operators can also earn new tokens by running a K2 node, or by running the attention task on a task node, and helping to verify Proofs of Real Traffic or lock them into the settlement layer.