Skip to content

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

Open
wants to merge 34 commits into
base: latest-dev
Choose a base branch
from

Conversation

RonTuretzky
Copy link

No description provided.

Copy link
Author

@RonTuretzky RonTuretzky left a 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

Comment on lines 280 to 291
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());
}
Copy link
Author

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

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)
Copy link
Author

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants