axelarnetwork / axelar-gmp-sdk-solidity

Solidity libraries and utilities provided by Axelar.
27 stars 30 forks source link

refactor(amplifier)!: split message verification and signer rotation #150

Closed milapsheth closed 5 months ago

milapsheth commented 6 months ago

Refactors #148

Split contract call approval and key rotation commands into separate entrypoints. This avoids the complication of dealing with opaque Command type, and isolates key rotation checks, and command id derivation can be handled better.

verifyMessages and rotateSigners are the respective entrypoints. Proof validation logic is shared.