Assessment reports>ZetaChain>Threat Model>Message: UpdateKeygen

Message: UpdateKeygen

The UpdateKeygen message is used to update the block height of the keygen. The new block height must be at least 10 blocks ahead of the current block number in ZetaChain.

The code first ensures that this message is being executed by a policy type 1 admin account. It will then fetch the current keygen and add the pubkeys of all node accounts to the keygen. Finally, it updates the block height of the keygen, sets the status to "Pending", and then sets the keygen into the store.

The "Pending" status is required to vote on a new TSS public key through the CreateTSSVoter message.

Zellic © 2024Back to top ↑