Skip to content

Commit

Permalink
Feature/proposal to pczt (#1647)
Browse files Browse the repository at this point in the history
* Migrate to latest revision of Zcash crates

* Integrate PCZT APIs into the Android SDK

* Fix `Backend.createPcztFromProposal` parameter

* Add Synchronizer side of PCZT logic

* Add `getAccountForUfvk`  method to Rust backend & fix key derivation null issue. (#1656)

* Add `getAccountForUfvk` method to the FFI.

* Only decode key derivation metadata when creating a count with `Spending` purpose.

Also, ensure that a spending account can still be created without providing
key derivation metadata.

* Update to `librustzcash` revision `205d4c930319b7b6d24aeb4efde69e9b4d1b6f7b`

* Add the new `getAccountForUfvk` to `TypesafeBackend`

* Update `FakeRustBackend`

---------

Co-authored-by: Honza <[email protected]>

* Remove unused `TransactionEncoder` functions (#1660)

* Resolve [#1640] review comments

* `Account` documentation fix

* Make `AccountPurpose.Spending` args not null

As they now live under `AccountPurpose.Spending` where we need them not null
+ `AccountImportSetup` doc fix

* Replace `bytes` with `usk` in `AccountUsk`

* Change test name

* Testnet Synchronizer test fix

* Detekt warning

* Changelog update

---------

Co-authored-by: Jack Grigg <[email protected]>
Co-authored-by: Honza <[email protected]>
Co-authored-by: Honza Rychnovský <[email protected]>
  • Loading branch information
4 people authored Dec 13, 2024
1 parent a482a10 commit 6d59ea2
Show file tree
Hide file tree
Showing 18 changed files with 817 additions and 52 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Synchronizer.walletBalances: StateFlow<Map<AccountUuid, AccountBalance>?>` that is replacement for the removed
`orchardBalances`, `saplingBalances`, and `transparentBalance`
- `getTransactions(accountUuid: AccountUuid)` to get transactions belonging to the given account
- `Zip32AccountIndex`, `AccountUuid`, `AccountUsk`, `AccountPurpose`, `AccountCreateSetup`, and `AcountImportSetup`
model classes have been added to support the new or the changed APIs
- `Synchronizer.createPcztFromProposal`
- `Synchronizer.addProofsToPczt`
- `Synchronizer.createTransactionFromPczt`
- `Zip32AccountIndex`, `AccountUuid`, `AccountUsk`, `AccountPurpose`, `AccountCreateSetup`, `AcountImportSetup`, and
`Pczt` model classes have been added to support the new or the changed APIs

### Changed
- `Account` data class works with `accountUuid: AccountUuid` instead of the previous ZIP 32 account index
Expand Down
Loading

0 comments on commit 6d59ea2

Please sign in to comment.