Skip to content

Call standalone witness generation instead of wallet_db method#16

Merged
p0mvn merged 2 commits into
shielded-votefrom
roman/decouple-witness-generation
Apr 10, 2026
Merged

Call standalone witness generation instead of wallet_db method#16
p0mvn merged 2 commits into
shielded-votefrom
roman/decouple-witness-generation

Conversation

@p0mvn

@p0mvn p0mvn commented Apr 10, 2026

Copy link
Copy Markdown

Summary

  • Switch generate_orchard_witnesses_at_frontier call from the wallet_db method to the standalone function in voting::orchard_witnesses, passing the DB connection directly
  • Removes an unnecessary coupling to the zcash_client_sqlite API surface — the logic lives in librustvoting and doesn't need to go through the wallet DB type

The witness generation logic lives in librustvoting's
orchard_witnesses module. Call it directly with the DB connection
rather than going through a method on the wallet DB type, which
removes an unnecessary coupling to the zcash_client_sqlite API
surface.

Made-with: Cursor
@p0mvn

p0mvn commented Apr 10, 2026

Copy link
Copy Markdown
Author

Note: CI will be fixed after the following are merged:
valargroup/librustzcash#23
valargroup/zcash_voting#14

Pick up the merged dependency PRs:
- librustvoting#14 (Orchard witness generation from wallet shard data)
- librustzcash#23 (expose commitment-tree primitives)

Made-with: Cursor
@p0mvn p0mvn merged commit 71a6e0f into shielded-vote Apr 10, 2026
3 checks passed
p0mvn added a commit that referenced this pull request Apr 11, 2026
This reverts merge commit 71a6e0f (PR #16).

Restores the call to wallet_db.generate_orchard_witnesses_at_frontier()
instead of the standalone function in voting::orchard_witnesses. The
Cargo.lock is left as-is since subsequent PRs (#17, #18) already
updated it.

Made-with: Cursor
greg0x pushed a commit that referenced this pull request Apr 13, 2026
Call standalone witness generation instead of wallet_db method
greg0x pushed a commit that referenced this pull request Apr 13, 2026
This reverts merge commit 71a6e0f (PR #16).

Restores the call to wallet_db.generate_orchard_witnesses_at_frontier()
instead of the standalone function in voting::orchard_witnesses. The
Cargo.lock is left as-is since subsequent PRs (#17, #18) already
updated it.

Made-with: Cursor
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