Skip to content

Commit 4bf6dfd

Browse files
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 Code
1 parent e7d3e5c commit 4bf6dfd

File tree

8 files changed

+221
-16
lines changed

8 files changed

+221
-16
lines changed

pkg/bindings/BN254CertificateVerifier/binding.go

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/bindings/IOperatorTableUpdater/binding.go

Lines changed: 32 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)