-
Notifications
You must be signed in to change notification settings - Fork 191
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
Updated assignments commitments #141
Updated assignments commitments #141
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.
I think this also needs to be updated: https://github.com/Layr-Labs/eigenda/blob/master/test/synthetic-test/synthetic_client_test.go#L497
Good catch, should be fixed now! |
quorums := make([]rollupbindings.IEigenDAServiceManagerQuorumBlobParam, len(blobHeader.GetBlobQuorumParams())) | ||
for i, quorum := range blobHeader.GetBlobQuorumParams() { | ||
quorums[i] = rollupbindings.IEigenDAServiceManagerQuorumBlobParam{ | ||
QuorumNumber: uint8(quorum.GetQuorumNumber()), | ||
AdversaryThresholdPercentage: uint8(quorum.GetAdversaryThresholdPercentage()), | ||
QuorumThresholdPercentage: uint8(quorum.GetQuorumThresholdPercentage()), | ||
QuantizationParameter: uint8(quorum.GetQuantizationParam()), | ||
ChunkLength: quorum.GetChunkLength(), |
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.
nit: uint32?
Synthetic Test client changes look good. PR changes overall LGTM |
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.
look good
@@ -95,10 +95,17 @@ contract MockRollupTest is BLSMockAVSDeployer { | |||
//get commitment with illegal value | |||
(IEigenDAServiceManager.BlobHeader memory blobHeader, EigenDABlobUtils.BlobVerificationProof memory blobVerificationProof) = _getCommitment(pseudoRandomNumber); | |||
|
|||
IEigenDAServiceManager.QuorumBlobParam[] memory quorumBlobParamsCopy = new IEigenDAServiceManager.QuorumBlobParam[](2); |
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.
better not to hardcode it, i.e. create the array with blobHeader.quorumBlobParams.length
instead of 2
EigenDABlobUtils.verifyBlob(blobHeader, eigenDAServiceManager, blobVerificationProof); | ||
|
||
// zero out the chunkLengths (this a temporary hack) | ||
for (uint256 i = 0; i < blobHeader.quorumBlobParams.length; i++) |
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.
why zero out?
Why are these changes needed?
blobHeaderHash
to include theChunkLength
parameter for each quorum so that consensus onChunkLength
is enforced across nodes.EigenDAServiceManager.sol
andMockRollup.sol
Checks