Module fees

Source
Expand description

Fee calculation helpers

Structs§

GasData
Auxiliary struct representing the full gas usage breakdown of a transaction.

Constants§

PALLAS_SCHNORR_SIGNATURE_FEE
Fixed fee for verifying Schnorr signatures using the Pallas elliptic curve

Functions§

circuit_gas_use
Calculate the gas use for verifying a given zkas circuit. This function assumes that the zkbin was properly decoded.
compute_fee
Auxiliary function to compute the corresponding fee value for the provided gas.