Skip to content

ZIP-225/244 #3: Create separate bundles for each part of the transaction.#392

Merged
str4d merged 9 commits into
zcash:masterfrom
nuttycom:feature/zip-225-bundles
Jun 4, 2021
Merged

ZIP-225/244 #3: Create separate bundles for each part of the transaction.#392
str4d merged 9 commits into
zcash:masterfrom
nuttycom:feature/zip-225-bundles

Conversation

@nuttycom
Copy link
Copy Markdown
Collaborator

@nuttycom nuttycom commented Jun 1, 2021

This builds atop #386

This takes inspiration from the Orchard design and creates a separate Bundle type for each sub-protocol: transparent, Sprout, Sapling, and the future TZE transaction components.

@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch 2 times, most recently from 160a6da to 1ead979 Compare June 1, 2021 16:29
@str4d str4d added this to the Core Sprint 2021-20 milestone Jun 1, 2021
@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch 6 times, most recently from 7d7e1bf to 1274e4f Compare June 3, 2021 03:38
@nuttycom nuttycom added the S-committed Status: Planned work in a sprint label Jun 3, 2021
Copy link
Copy Markdown
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

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

Partial review.

Comment thread zcash_primitives/src/transaction/builder.rs Outdated
Comment thread zcash_extensions/src/consensus/transparent.rs Outdated
Comment thread zcash_extensions/src/consensus/transparent.rs Outdated
Comment thread zcash_extensions/src/transparent/demo.rs Outdated
Comment thread zcash_primitives/CHANGELOG.md Outdated
Comment thread zcash_primitives/src/transaction/components/sapling.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling/builder.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling/builder.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling/builder.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling/builder.rs Outdated
@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch 10 times, most recently from 2b0a9ae to 7b7f1f4 Compare June 3, 2021 18:47
Comment thread zcash_primitives/src/transaction/components/transparent.rs Outdated
Comment thread zcash_primitives/src/transaction/components/transparent.rs Outdated
Comment thread zcash_primitives/src/transaction/components/transparent.rs Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nice if we could ensure that the arb_txins don't collide on their prevouts, but that's not technically necessary for structural validity checks.

Comment thread zcash_primitives/src/transaction/components/tze.rs Outdated
Comment thread zcash_primitives/src/transaction/mod.rs Outdated
Comment thread zcash_primitives/src/transaction/sighash.rs Outdated
Comment thread zcash_primitives/src/transaction/sighash.rs Outdated
Comment thread zcash_primitives/src/transaction/mod.rs Outdated
Comment thread zcash_primitives/src/transaction/mod.rs Outdated
This also adds parsing and serialization for Orchard bundle parts.

This requires changes to the TZE builder components, because they
refer to the TransactionData type in the context for witness creation.
@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch 4 times, most recently from 8f08d20 to 6c35c9b Compare June 3, 2021 19:46
@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch 6 times, most recently from 57529f7 to b2a16d2 Compare June 4, 2021 00:42
@nuttycom nuttycom force-pushed the feature/zip-225-bundles branch from b2a16d2 to cc9dbf8 Compare June 4, 2021 00:46
Co-authored-by: str4d <jack@electriccoin.co>
Copy link
Copy Markdown
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

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

utACK after the format! comments are addressed.

Comment thread zcash_primitives/src/transaction/components/sapling.rs
Comment thread zcash_primitives/src/transaction/components/sapling.rs
Comment thread zcash_primitives/src/transaction/components/sapling.rs
Comment thread zcash_primitives/src/transaction/components/sapling.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling.rs Outdated
Co-authored-by: str4d <jack@electriccoin.co>
@str4d str4d merged commit 4c4d226 into zcash:master Jun 4, 2021
@nuttycom nuttycom deleted the feature/zip-225-bundles branch June 4, 2021 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-committed Status: Planned work in a sprint

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants