Add calls to get the messages to sign for the router

This commit is contained in:
Luke Parker
2024-09-17 01:26:37 -04:00
parent 381495618c
commit d21034c349
2 changed files with 61 additions and 110 deletions

View File

@@ -77,6 +77,8 @@ contract Router {
external
_updateSeraiKeyAtEndOfFn(_nonce, newSeraiKey)
{
// This DST needs a length prefix as well to prevent DSTs potentially being substrings of each
// other, yet this fine for our very well-defined, limited use
bytes32 message = keccak256(abi.encodePacked("updateSeraiKey", block.chainid, _nonce, newSeraiKey));
_nonce++;