Skip to content

pczt: Add public getter for shielded sighash#21

Closed
p0mvn wants to merge 1 commit into
maint/pczt-0.5.xfrom
roman/pczt-0.5.x/shielded-sighash-pub
Closed

pczt: Add public getter for shielded sighash#21
p0mvn wants to merge 1 commit into
maint/pczt-0.5.xfrom
roman/pczt-0.5.x/shielded-sighash-pub

Conversation

@p0mvn

@p0mvn p0mvn commented Apr 10, 2026

Copy link
Copy Markdown

Based on maint/pczt-0.5.x (branched from pczt-0.5.0 series). This is a
SemVer-compatible addition intended for a 0.5.x point release.

Backports the Signer::shielded_sighash accessor from main (added in zcash#2047) to the 0.5.x series, enabling downstream consumers to obtain the sighash for producing signatures externally (e.g. via a hardware wallet).

How We Use It

Token Holder Voting.

We use shielded_sighash() to extract the ZIP-244 transaction digest from the finalized PCZT so that both signing paths (software key derivation and Keystone hardware) produce a spend-auth signature over the same canonical hash.

See full summary of the integration: https://hackmd.io/@TJGUVkqNQYieiMqJQQBDeA/rJ0mU1v3Wl

Backports the `Signer::shielded_sighash` accessor from main (added in
zcash#2047) to the 0.5.x series, enabling downstream
consumers to obtain the sighash for producing signatures externally
(e.g. via a hardware wallet).

Made-with: Cursor
@p0mvn p0mvn closed this Apr 11, 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.

2 participants