Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PCZT support #146

Merged
merged 6 commits into from
Dec 12, 2024
Merged
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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,33 @@ and this library adheres to Rust's notion of

## [Unreleased]

### Added
- Support for Partially-Created Zcash Transactions:
- `sapling_crypto::builder::Builder::build_for_pczt`
- `sapling_crypto::pczt` module.
- `sapling_crypto::bundle::EffectsOnly`
- `sapling_crypto::keys`:
- `SpendAuthorizingKey::to_bytes`
- `SpendValidatingKey::to_bytes`
- `sapling_crypto::value::ValueSum::to_raw`
- `sapling_crypto::zip32::DiversifiableFullViewingKey::to_internal_fvk`

### Fixed
- `sapling_crypto::prover::OutputProver::prepare_circuit` now takes `esk` as an
`sapling_crypto::keys::EphemeralSecretKey`, matching the existing public APIs
that expose it.

### Changed
- `sapling_crypto::builder`:
- `SpendInfo::new` now takes a `FullViewingKey` instead of a
`ProofGenerationKey`.
- `Builder::add_spend` now takes a `FullViewingKey` instead of an
`&ExtendedSpendingKey`.
- `Builder::build` and `bundle` now take an `&[ExtendedSpendingKey]` argument.
- `Error` has new variants:
- `MissingSpendingKey`
- `PcztRequiresZip212`
- `WrongSpendingKey`
- `sapling_crypto::bundle::SpendDescriptionV5::into_spend_description` now
supports any `Authorization` for which the `SpendDescription` itself is fully
authorized.
Expand Down
39 changes: 37 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jubjub = "0.10"
redjubjub = "0.7"
zcash_spec = "0.1"

# Boilerplate
getset = "0.1"

# Circuits
bellman = { version = "0.14", default-features = false, features = ["groth16"] }

Expand Down
Loading
Loading