shutter-network / rolling-shutter

Rolling Shutter is an MEV protection system to be plugged into rollups.
https://twitter.com/project_shutter/
26 stars 7 forks source link

Fetch eon key publisher address from keyper set contract #461

Open jannikluhn opened 5 days ago

jannikluhn commented 5 days ago

To publish the eon key, the keypers use the eon key publisher contract. Each keyper set uses their own instance. The address is taken from a config file. This means that whenever we add a new keyper set, keypers who remain in the set have to update their config which is inconvenient.

To improve on this, the keyper should fetch the eon key publisher contract from the keyper set contract using the getPublisher function. The keyper set address in turn can be fetched from the keyper set manager.

fredo commented 5 days ago

In addition to that we currently configure the EonKeyBroadcast contract which is not needed anymore since we publish the key via the EonKeyPublisher.