Proof of Transaction
This document covers the overall content regarding InfraBlockchain's unique consensus mechanism, PoT Proof-of-Transaction).
Last updated
This document covers the overall content regarding InfraBlockchain's unique consensus mechanism, PoT Proof-of-Transaction).
Last updated
The Proof of Transaction (PoT) is a unique consensus mechanism in InfraBlockchain. Its core concept is Transaction-as-a-Vote. The metadata of transactions in InfraBlockchain can include information about the account of the block producer candidate. The transaction message containing candidate account information is signed with the private key of the entity that generated the transaction, providing its own cryptographic proof. When a transaction is executed, a transaction fee is incurred, and the remainder, excluding the reward for the block producer and the amount refunded to the transaction caller, is returned as a reward to the Infra Relay Chain validator.
In Substrate, you can freely add verification elements for each chain in addition to the elements necessary to verify transactions. To implement TaaV, we have added metadata for InfraBlockchain transactions, such as the token identifier (asset_id
) to pay the fee with a system token and information about the Infra Relay Chain validator candidate account.
asset_id
: Represents the system token identifier.
candidate
: Represents the account for the voting target.
When a transaction containing the above metadata is received, the voting amount is determined based on the transaction fee. The following is the voting structure:
candidate: Represents the target to vote for, i.e., the Infra Relay Chain block producer candidate.
amount: Represents the voting amount based on the transaction fee.
Represents a reward for a portion of the transaction fee. This reward is distributed to the Infra Relay Chain validator.
origin
: Represents the location where the reward was generated. The reward generated for each transaction is managed in the Infra Relay Chain ValidatorManagement
module. When the Infra Relay Chain validator calls the claim()
transaction, the reward is distributed to the corresponding account from the chain where the reward was generated.
asset
: Represents the token identifier that paid the transaction fee.
amount
: Represents the amount of the reward.
For each transaction, there are voting and reward as proofs. These are aggregated in the ValidatorManagement
module when verifying a Parachain block or its own block. The following is the Proof-of-Transaction
data type:
reward
: Generated for each transaction and aggregated in the Infra Relay Chain.
vote
: If included in the transaction, it is aggregated and managed in the Infra Relay Chain.
InfraBlockchain is an enterprise blockchain for institutions and public institutions, and nodes must operate normally and achieve BFT consensus in any situation. As a public/permissioned hybrid blockchain, any entity can be elected as a block producer. To design these ideal properties, InfraBlockchain has two block producer (validator) pools:
Proof-of-Transaction Node Pool: Manages nodes elected by PoT.
Seed Trust Node Pool: Manages nodes that operate normally in any situation, such as financial institutions and government agencies.
The initial validators of InfraBlockchain are composed of Seed Trust validators, forming a permissioned blockchain. As the network stabilizes, it can transition to a public blockchain where anyone can participate as a block producer using the PoT consensus mechanism.
InfraBlockchain is a multi-chain architecture where multiple Parachain blocks are executed in parallel, centered around InfraRelayChain. InfraRelayChain validators verify each Parachain block and collect the votes included in the block, which is called Aggregated Proof-of-Transaction.
For each block, the votes for the InfraRelayChain block producer (validator) candidate are optionally included, and these votes are collected during the votes are collected during the verification process and stored in a state of InfraRelayChain. After a certain period, the votes collected are aggregated based on which candidate received the most votes, and the candidate with the most votes is elected as the block producer.
To give more weight to recent transaction votes, a Block Time Weight is multiplied. The weight doubles at a rate of 1 year. The reference time is the genesis block (0th block) of InfraRelayChain, and the weight is multiplied based on the InfraRelayChain block. The exact calculation of the transaction vote weight reflecting the block time is as follows:
For example,