Message: UpdateTssAddress
The UpdateTssAddress
message is used to update the stored TSS pubkey that is currently being used to the most recently voted TSS pubkey.
It first ensures that the caller is a policy type 2 admin account. Then it checks to ensure the TSS pubkey that is being set has already been generated (i.e., is in the store). Finally, it sets the TSS pubkey into the store for all foreign chains.
Note that the MigrateTssFunds
message must be executed first prior to UpdateTssAddress
. For more details, see the finding here: Finding ref↗.