project screenshot 1
project screenshot 2
project screenshot 3

Rethos

Rethos - Modified Reth node with World ID gas subsidy and priority lane

Rethos

Created At

Superhack 2024

Winner of

Worldcoin - Transaction Priority with World ID & Reth

Project Description

This project is a deep dive into alphanet and integrating World ID gas subsidy and priority lane.

First subsidising it based on the verification level device or orb. For orb verified we subsidise the base fee fully depending if it is their first transaction for the day. For device verified we take half of the base fee off.

Second for the ordered transactions we prioritise based on verification level. Orb verified > device verified > not verified

How it's Made

This was a challenging project as I deep dived in different codebases (reth/op-node and alphanet). I learned a lot and considered different approaches.

First approach was adjusting two reth pipeline stages:

  • ExecutionStage: Adjusting the gas subsidy here
  • FinishStage: Save the last_transaction_timestamp linked to the account whose transaction got subsides

However thanks to check-in 2 during the questions I discovered the Alphanet repo (experimental reth + op-node) and got convinced that the gas subsidy should be implemented there. That is where I added the adjusting basefee there. I thought about different approaches (adding the worldcoin contracts to the system contracts, ), but for now a hashmap registry is the most performant for now. I could not implement the code to port the registered worldcoin verifications from optimism to my local rollup yet due to time restraints and discovering alphanet/op-node unfortunately.

background image mobile

Join the mailing list

Get the latest news and updates