Skip to content

Speed up Zcash batch processing and show a loading hint#26

Closed
czarcas7ic wants to merge 1 commit into
adam/zcash-reviewed-batch-compact-responsefrom
adam/zcash-batch-performance
Closed

Speed up Zcash batch processing and show a loading hint#26
czarcas7ic wants to merge 1 commit into
adam/zcash-reviewed-batch-compact-responsefrom
adam/zcash-batch-performance

Conversation

@czarcas7ic

@czarcas7ic czarcas7ic commented Jul 10, 2026

Copy link
Copy Markdown

Builds on the PCZT-owned batch layer and isolates the performance work that was previously present only in the integration branch.

The batch path now shares caches for the spend authorizing key, UFVK, wallet key, and address ownership across PCZTs; reuses one check context for the full sweep; and retains normalized parsed and display state so review and signing do not repeat expensive work. The spend authorizing key cache is one request-scoped inline slot. It reuses the selected account key across PCZTs and pools, scrubs the old key before replacement, scrubs the final key before response encoding, and zeroizes the intermediate spending key.

Because large batches can still take noticeable time on-device, the Zcash batch view adds a localized subtitle to the existing nonanimated loading hint so users know the operation may take a few minutes. The subtitle-capable helper is used only by the Zcash batch flow; single Zcash transactions and other transaction loading screens retain their existing behavior.

Device policy and signature verification remain unchanged.

@czarcas7ic
czarcas7ic marked this pull request as ready for review July 10, 2026 07:43
@czarcas7ic
czarcas7ic force-pushed the adam/zcash-reviewed-batch-compact-response branch from 3539243 to 2dd71c3 Compare July 10, 2026 20:27
@czarcas7ic
czarcas7ic force-pushed the adam/zcash-batch-performance branch from cb8f50a to 73d5aef Compare July 10, 2026 20:27
@czarcas7ic czarcas7ic changed the title Speed up Zcash batch checking and signing Speed up Zcash batch processing and show a loading hint Jul 10, 2026
@czarcas7ic
czarcas7ic force-pushed the adam/zcash-batch-performance branch from 2933ea2 to fd13888 Compare July 11, 2026 10:40
@czarcas7ic
czarcas7ic force-pushed the adam/zcash-reviewed-batch-compact-response branch from f068f5b to 2a86bb6 Compare July 12, 2026 06:50
@czarcas7ic
czarcas7ic force-pushed the adam/zcash-batch-performance branch from 2a8b36c to be65765 Compare July 13, 2026 05:51
@czarcas7ic

Copy link
Copy Markdown
Author

Closing since they have been merged into mega upstream already, but we should still get these commit by commit reviewed.

@czarcas7ic czarcas7ic closed this Jul 13, 2026
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.

1 participant