-
Notifications
You must be signed in to change notification settings - Fork 171
Add draft ZIP: Deterministic Orchard Wallet Scanning Standard #1158
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| ZIP: unassigned | ||
| Title: Deterministic Orchard Wallet Scanning Standard | ||
| Owners: Lowo88 <lowo88@leoninedao.org> | ||
| Status: Draft | ||
| Category: Standards Track | ||
| Created: 2026-01-16 | ||
| License: MIT | ||
|
|
||
| # Abstract | ||
|
|
||
| This ZIP specifies a standard algorithm for deterministic scanning of Orchard | ||
| notes in Zcash wallets. The specification ensures that wallet implementations | ||
| produce identical results when scanning the same block range, regardless of | ||
| implementation details, scan order, or timing. | ||
|
|
||
| # Motivation | ||
|
|
||
| Current Zcash wallet implementations lack a standardized approach to scanning | ||
| Orchard notes. This leads to several critical issues: | ||
|
|
||
| **Non-Deterministic Results**: Different wallets may produce different results | ||
| when scanning the same block range. | ||
|
|
||
| **Inconsistent Wallet State**: Wallet restores may produce different results. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue, this is also flatly incorrect. |
||
|
|
||
| **Interoperability Issues**: Users cannot reliably switch between wallet | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interoperability concerns are the purview of ZIP 315. If there are specific standards required for interoperability (such as standards around key handling), I would recommend that you suggest them there. |
||
| implementations. | ||
|
|
||
| # Specification | ||
|
|
||
| The deterministic scanning algorithm processes blocks in strict sequential order | ||
| by height, processes transactions within each block in deterministic order, | ||
| and processes Orchard actions within each transaction in deterministic order. | ||
|
|
||
| ## Key Requirements | ||
|
|
||
| 1. **Block Processing Order**: Blocks MUST be processed in ascending height order | ||
| 2. **Transaction Processing Order**: Transactions processed by index within block | ||
| 3. **Action Processing Order**: Actions processed by index within transaction | ||
| 4. **Scope Order**: External scope actions before Internal scope actions | ||
| 5. **Deduplication**: First occurrence kept when duplicates found | ||
|
|
||
| # References | ||
|
|
||
| - ZIP 32: Shielded Hierarchical Deterministic Wallets | ||
| - ZIP 224: Orchard | ||
| - ZIP 316: Unified Addresses | ||
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.
This is incorrect. The state of the wallet is a function of the contents of the blockchain; the order of scanning is irrelevant (modulo implementation bugs.)