Skip to content
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

conditional encode #1394

Merged
merged 19 commits into from
Aug 28, 2024
Merged

conditional encode #1394

merged 19 commits into from
Aug 28, 2024

Conversation

roynalnaruto
Copy link

conditional encoding of batch -> blob

@lispc
Copy link

lispc commented Aug 15, 2024

picked to #1396

Copy link

@lispc lispc left a comment

Choose a reason for hiding this comment

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

Do we need another review?

Copy link
Member

@noel2004 noel2004 left a comment

Choose a reason for hiding this comment

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

Everything looks good except for the blob_circuit_completeness test is blanked. What do we need to restore it?

aggregator/src/param.rs Outdated Show resolved Hide resolved
@roynalnaruto
Copy link
Author

@noel2004

except for the blob_circuit_completeness test is blanked

What do you mean?

The only test under blob_circuit_completeness that I have disabled currently is the "full blob" test, i.e. a batch that when encoded produces exactly 4096 * 31 bytes. The reason to comment it out is that, after prepending the single byte (enableEncoding), the present test fails (as it produces +1 byte than "full").

We need to change batch274 such that the assertion of "full" blob is still satisfied with this new structure of blob.

@lispc
Copy link

lispc commented Aug 19, 2024

where is the logic to assert_eq!(decode(blob), compute_batch_bytes(chunk_infos))?

@roynalnaruto
Copy link
Author

@lispc

where is the logic to assert_eq!(decode(blob), compute_batch_bytes(chunk_infos))?

We might need to add more sanity checks

@roynalnaruto roynalnaruto merged commit 41f0c6d into develop Aug 28, 2024
17 checks passed
@roynalnaruto roynalnaruto deleted the feat/conditional-encode branch August 28, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants