Rethos - Modified Reth node with World ID gas subsidy and priority lane
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
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:
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.