Skip to content

pczt: Add public getter for shielded sighash#2282

Closed
p0mvn wants to merge 1 commit into
zcash:mainfrom
valargroup:roman/pczt-0.5.x/shielded-sighash-pub
Closed

pczt: Add public getter for shielded sighash#2282
p0mvn wants to merge 1 commit into
zcash:mainfrom
valargroup:roman/pczt-0.5.x/shielded-sighash-pub

Conversation

@p0mvn
Copy link
Copy Markdown
Collaborator

@p0mvn p0mvn commented Apr 11, 2026

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 #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

@p0mvn p0mvn marked this pull request as ready for review April 11, 2026 17:56
@nuttycom nuttycom self-requested a review April 17, 2026 21:45
nuttycom
nuttycom previously approved these changes Apr 23, 2026
Copy link
Copy Markdown
Collaborator

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK

@nuttycom nuttycom force-pushed the roman/pczt-0.5.x/shielded-sighash-pub branch from 8bc4f72 to 16cac0a Compare April 23, 2026 14:43
@nuttycom nuttycom changed the base branch from maint/pczt-0.5.x to main April 23, 2026 14:43
@nuttycom nuttycom dismissed their stale review April 23, 2026 14:43

The base branch was changed.

nuttycom
nuttycom previously approved these changes Apr 23, 2026
Copy link
Copy Markdown
Collaborator

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK

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
@nuttycom nuttycom force-pushed the roman/pczt-0.5.x/shielded-sighash-pub branch from 16cac0a to a65f752 Compare April 23, 2026 14:47
@nuttycom nuttycom enabled auto-merge April 23, 2026 14:48
@nuttycom
Copy link
Copy Markdown
Collaborator

Duplicate of #2047

@nuttycom nuttycom marked this as a duplicate of #2047 Apr 23, 2026
@nuttycom nuttycom closed this Apr 23, 2026
auto-merge was automatically disabled April 23, 2026 14:56

Pull request was closed

@nuttycom nuttycom deleted the roman/pczt-0.5.x/shielded-sighash-pub branch April 23, 2026 14:57
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