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

Serialization tweaks #209

Merged
merged 7 commits into from
Sep 4, 2023
Merged

Serialization tweaks #209

merged 7 commits into from
Sep 4, 2023

Conversation

bazzilic
Copy link
Contributor

  • Added serde serialization for all relevant structs
  • Moved both serde and borsh serialization behind respective feature flags

@mariari mariari mentioned this pull request Aug 28, 2023
#[test]
fn test_halo2_transaction() {
fn test_halo2_transaction_borsh_serialize() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We probably could separate the transaction test and the borsh test as we've added the feature flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I didn't realize this was a combined test. Yeah, I can separate them. CI runs tests with --all-features anyway, so all feature tests are run too. But yeah, let me push an updated test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the tests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it worth using the exported TX from test_halo2_transaction in test_halo2_transaction_borsh_serialize to avoid duplicated TX construction since it takes a long time to build a TX?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know how to pass data between tests though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, fixed that

@bazzilic
Copy link
Contributor Author

bazzilic commented Sep 4, 2023

Changes that are left in this branch after it was rebased onto main are some minor things that were not included into the Next branch.

Comment on lines +11 to +13
halo2_gadgets = { git = "https://github.com/heliaxdev/halo2", branch = "taiga" }
halo2_proofs = { git = "https://github.com/heliaxdev/halo2", branch = "taiga" }
pasta_curves = { git = "https://github.com/heliaxdev/pasta_curves", branch = "taiga" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we remove these patches as we've specified them in dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, unfortunately we can't. Unlike what we indicate in out dependencies, these patches also affect the whole dependency tree.

@bazzilic bazzilic merged commit 24827fa into main Sep 4, 2023
7 checks passed
@bazzilic bazzilic deleted the vasily/serde branch September 4, 2023 10:01
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.

2 participants