Commit 4bf6dfd
committed
fix: global table update message hash (#1460)
**Motivation:**
The `messageHash` in the certificate for
`operatorTableUpdater.updateGlobalTableRoot` should be a properly
formatted type hash that takes into account the `referenceTimestamp` and
`globalTableRoot`, so neither can be spoofed.
**Modifications:**
Checks that
```solidity
require(
globalTableRootCert.messageHash == getGlobalTableUpdateMessageHash(globalTableRoot, referenceTimestamp),
InvalidMessageHash()
);
```
**Result:**
Correct Code1 parent e7d3e5c commit 4bf6dfd
File tree
8 files changed
+221
-16
lines changed- pkg/bindings
- BN254CertificateVerifier
- IOperatorTableUpdater
- OperatorTableUpdaterStorage
- OperatorTableUpdater
- src
- contracts
- interfaces
- multichain
- test/unit
8 files changed
+221
-16
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments