Skip to main content
Version: 1.0

Gas

In the blockchain technology, the concept of "Gas" has a fundamental role in the operation and security of networks. This is particularly true for Ethereum Virtual Machine (EVM)-compatible blockchains, which utilize Gas as a mechanism to measure and limit the amount of computational work required to execute transactions and smart contracts. This paper delves into the intricacies of Gas within the context of Wireshape, an EVM-compatible blockchain that operates under a Proof of Authority (PoA) consensus mechanism and employs the Istanbul Byzantine Fault Tolerance (IBFT) protocol.

Definition and Purpose of Gas in Wireshape

In Wireshape, Gas is defined as the unit of measure that quantifies the computational effort necessary to perform operations on the network. Unlike Ethereum, where Gas is paid in Ether (ETH), Wireshape utilizes its native token, WIRE, for Gas payments. This fundamental difference underscores the adaptability of the Gas concept across different blockchain ecosystems.

note

The economic advantage of Gas fees in WIRE on the Wireshape blockchain, relative to ETH on Ethereum, is attributed to Wireshape's implementation of an optimized Proof of Authority consensus mechanism and advanced network efficiencies, which systematically reduce the requisite computational expenditure for transaction execution, thereby diminishing the Gas cost burden on its participants.

The primary purpose of Gas in Wireshape is twofold: to prevent network abuse by making computational activities costly, thereby deterring spam and denial-of-service attacks, and to allocate network resources efficiently among users. By requiring transactions and smart contract executions to consume Gas, Wireshape ensures that only those operations which are deemed valuable by their initiators are processed. This mechanism fosters a sustainable and efficient computational economy within the blockchain.

Gas Mechanism in an IBFT-based PoA Consensus

Wireshape's adoption of the IBFT protocol for its PoA consensus mechanism introduces a collaborative and democratic method for validators to agree on the state of the blockchain. In this context, Gas plays a critical role in facilitating the smooth operation of this consensus process. Each transaction or smart contract execution requires a certain amount of Gas, which is determined by the complexity of the operation. Validators, who are selected based on their authority and trustworthiness, are responsible for processing these operations and are incentivized through Gas fees paid in WIRE.

The IBFT protocol ensures that all participating validators reach a consensus on the validity and order of transactions in a block, thereby maintaining the integrity and consistency of the blockchain's state. This includes critical operations such as updating product data provenance, tracking supply chain movements, and integrating oracle-supplied information. The Gas mechanism ensures that these operations are executed efficiently, as validators prioritize transactions with higher Gas fees, which in turn supports the network's economic model and security.

Economic and Security Implications

The use of WIRE for Gas payments in Wireshape introduces a direct economic incentive for users and validators. Users are motivated to optimize their transactions to consume the least amount of Gas possible, promoting efficient code practices. Validators, on the other hand, are rewarded for their computational efforts and for maintaining the network's security and integrity.

Moreover, the Gas system in Wireshape, combined with the IBFT-based PoA consensus, provides robust protection against malicious activities. By making computational resources costly, the network deters spam and potential attacks that aim to overload the system. The consensus mechanism further enhances security by requiring a majority agreement among trusted validators, ensuring that only valid transactions are processed and recorded on the blockchain.