ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.56k stars 3.22k forks source link

op-deployer: sanity-check deployer key matches broadcast request #12127

Open protolambda opened 4 days ago

protolambda commented 4 days ago

The broadcasts emitted by a script.Host have a Broadcast.From address, that should define which key is used for signing and publishing a broadcast tx-candidate. The OPCM deployer code configures a single deployer key, that the script is boostrapped with.

When the hooks are then called, the from-address should be retained. And then when asked to broadcast the txs, it should error if the broadcast tries to use a different sender-address as the main deployer key.