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

ActionGroup-based serialization format for Orchard v6 #86

Merged
merged 8 commits into from
Jan 25, 2025

Conversation

alexeykoren
Copy link
Collaborator

ActionGroup-based serialization format is implemented for Orchard v6

@alexeykoren alexeykoren marked this pull request as draft December 10, 2024 14:17
@alexeykoren alexeykoren marked this pull request as ready for review December 10, 2024 14:26
@alexeykoren alexeykoren force-pushed the zsa-swap-tx-format-zsa1 branch 2 times, most recently from fb9e0a4 to 1e87dcf Compare December 16, 2024 12:45
This PR updates the orchard dependency used in librustzcash to a later
version of our orchard repository fork
@QED-it QED-it deleted a comment from what-the-diff bot Jan 22, 2025
Copy link

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

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

Added some comments

)
.unwrap();

let binding = builder.mock_build_no_fee(OsRng).unwrap().into_transaction();

Choose a reason for hiding this comment

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

can you brifly explain why we mock here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just so we don't create a real Prover to save computational resources, because we don't test prover here, only builder

Choose a reason for hiding this comment

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

I see. All the mock code is used explicitly in tests so it should be under #[test] tag somwhere. Please move it into #[test]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is the case already, all tests are under the test tag

zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
Copy link

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

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

Approved with pending comments

)
.unwrap();

let binding = builder.mock_build_no_fee(OsRng).unwrap().into_transaction();

Choose a reason for hiding this comment

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

I see. All the mock code is used explicitly in tests so it should be under #[test] tag somwhere. Please move it into #[test]

zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
zcash_primitives/src/transaction/components/orchard.rs Outdated Show resolved Hide resolved
@alexeykoren alexeykoren merged commit 5ea95ea into zsa1 Jan 25, 2025
26 checks passed
@alexeykoren alexeykoren deleted the zsa-swap-tx-format-zsa1 branch January 25, 2025 13:51
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.

3 participants