Trusted Forwarder
Gasless meta-transactions offer users a more seamless experience, and potentially one where they donโt have to spend as much money to engage with the blockchain. This method gives users the option to sign a transaction for free and have it securely executed by a third party, with that other party paying the gas to execute the transaction.
In Portal Gate, we used an advanced trusted forwarder contract to achieve gasless transactions to help users to preserve their privacy. For the ZK Credential Updater relayer, Portal Gate implements meta-transactions using MinimalForwarder and ERC2771Context to separate msg.sender
from the relayerโs address. All the user needs to do is sign a message using the account they would like to issue the transaction from. The signature is formed from the target contract and the data of the desired transaction, using the userโs private key. This signing happens off-chain and costs no gas. The signature is passed to the Relayer so it can execute the transaction for the user (and pay the gas).
Last updated