Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pczt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ workspace.

## [Unreleased]

### Added
- `pczt::orchard::Spend::spend_auth_sig` getter (via `getset`).
- `pczt::roles::signer::Signer::shielded_sighash` getter.

## [0.4.1, 0.5.1] - 2026-02-26

### Fixed
Expand Down
1 change: 1 addition & 0 deletions pczt/src/orchard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub struct Spend {
///
/// This is set by the Signer.
#[serde_as(as = "Option<[_; 64]>")]
#[getset(get = "pub")]
pub(crate) spend_auth_sig: Option<[u8; 64]>,

/// The [raw encoding] of the Orchard payment address that received the note being spent.
Expand Down
5 changes: 5 additions & 0 deletions pczt/src/roles/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ impl Signer {
})
}

/// Returns the cached shielded (Orchard + Sapling) sighash.
pub fn shielded_sighash(&self) -> [u8; 32] {
self.shielded_sighash
}

/// Signs the transparent spend at the given index with the given spending key.
///
/// It is the caller's responsibility to perform any semantic validity checks on the
Expand Down
Loading