-
Notifications
You must be signed in to change notification settings - Fork 0
On chain check signatures #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest-dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to look through tests here, just took a first glance
src/OperatorStateRetriever.sol
Outdated
uint32[] memory operatorQuorumBitmapIndices = registryCoordinator | ||
.getQuorumBitmapIndicesAtBlockNumber(blockNumber, m.operatorIds); | ||
// check that all operators are registered (this is like the check in getCheckSignaturesIndices, but we check against _signing_ operators) | ||
for (uint256 i = 0; i < operators.length; i++) { | ||
uint192 operatorQuorumBitmap = registryCoordinator | ||
.getQuorumBitmapAtBlockNumberByIndex( | ||
m.operatorIds[i], | ||
blockNumber, | ||
operatorQuorumBitmapIndices[i] | ||
); | ||
require(operatorQuorumBitmap != 0, OperatorNotRegistered()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's a view function and they listed operators that are not registered, it's fine , it's a mistake on their end,not sure we should be checking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a mistake, the BLSSignatureChecker takes in nonSigners
because they compute the APK by subtracting the non-signers from the total quorum APK
It really sucks devx wise
(Also if you already comment on mistakes on their end, they should have a utility function to compute the APK of a quorum at a given timestamp)
} | ||
|
||
// helper function to add two G2 points | ||
function _addG2Points(BN254.G2Point memory a, BN254.G2Point memory b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this repo have these functions defined already https://github.com/stevennevins/bls-oracle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Motivation:** Add coverage for with eigenda's contracts **Modifications:** Add tests **Result:** Validate upgrade between m2 state and post slashing state of contracts --------- Co-authored-by: Alex <[email protected]>
Co-authored-by: Tomás Grüner <[email protected]>
No description provided.