Commit Graph

24 Commits

Author SHA1 Message Date
Francisco Gindre 32ed909c37 ported zcashlc_derive_shielded_address_from_seed 2021-03-03 18:09:13 -03:00
Francisco Gindre 7a374da70c ported zcashlc_derive_extended_full_viewing_keys 2021-03-03 18:09:13 -03:00
Francisco Gindre 78c312a918 ported zcashlc_derive_extended_spending_keys 2021-03-03 18:09:13 -03:00
Francisco Gindre a1b7eb5641 ported init_accounts_table and init_accounts_table_with_keys 2021-03-03 18:09:13 -03:00
Francisco Gindre c364e606ba Imports + init_accounts_table 2021-03-03 18:09:13 -03:00
Francisco Gindre 72c682d8a5 Key Validation protocol for DerivationTool 2021-02-24 23:59:59 -03:00
Francisco Gindre ce67fa7636 pin to revision and compile lib.rs 2020-12-14 18:02:21 -03:00
Francisco Gindre 691c129dc6 add support to viewing key initialization 2020-10-13 13:15:50 -03:00
Francisco Gindre 328a18d898 DerivationTool + tests
Fixes #204
2020-10-09 17:58:36 -03:00
Jack Grigg a0425cee61 cargo fmt 2020-10-08 15:38:54 -03:00
Jack Grigg 344699a6b2 rust: Handle passing Rust Vecs to Swift where len != capacity
Fixes zcash/ZcashLightClientKit#177.
2020-10-08 15:38:54 -03:00
Francisco Gindre 4dec60cfc9
update to rebased version of note-spending-v7 (#157)
* update to rebased version

* update librustzcash. add OvkPolicy::Sender to retain behavior
2020-07-21 18:54:47 -03:00
Kevin Gorham a45f056242
Enable heartwood. (#138)
* Enable heartwood.

We might want to make further adjustments to conditionally enable this only on testnet.

* add consensus branch Id code

* better address validation

Co-authored-by: Francisco Gindre <francisco.gindre@gmail.com>
2020-06-09 21:23:46 -03:00
str4d 65f9d78c54
ZcashRustBackend.decryptAndStoreTransaction() (#102)
* cargo fmt

* Migrate to latest note-spending-v7

* ZcashRustBackend.decryptAndStoreTransaction()

* cargo update
2020-03-26 11:24:47 -03:00
Francisco Gindre aead606cd0 revert upgrade to librustzcash 2020-03-18 11:12:18 -03:00
Francisco Gindre 2f95a5fbf4 update librustzcash to commit 52d8b436300724bc4b83aa4a0c659ab34c3dbce7 2020-03-11 17:24:23 -03:00
Francisco Gindre e9088ca9a1 fix account initialization error 2020-03-02 14:58:11 -03:00
Francisco Gindre b867649443
Support Note Spending v7
* upgraded to note-spending-v7

* use "zip32 compliant" seed on demo app

* Fixes to initializer, added v7 methods, documented API. Fixed compact block processor not initializing correctly upon new wallets.

* documentation

* Change u8 return value to bool + tests

* add address validation functionality to Initializer

* renamed functions to a C style. Exposed deriving functions in rust backend. Added more tests

* fixed bug where compact block processor wouldn't reschedule

* Fixed capture blocks retaining references

* fixed memory cycles and leaks

* fixed memory leak and blockrange error

* fixed error on confirmed transactions and added blockheight to progress notifications
2020-02-26 13:54:48 -03:00
Francisco Gindre a139ffbdfe
Transaction Listing + send funds + synchronizer implementation (#47)
* Create UIKit subfolder

* add offset to transaction repository

* mock repository and tests [WIP]

* Paged transaction DAO

* Paged transaction repository by kind

* update protobuf files

* move SDKSynchronizer to UIKit folder

* created some health check test on transactions

* Build release version of librustzcash

* Add Send on main thread button for troubleshooting purposes

* fix submit method by using RawTransaction factory method

* fix transactions table mapping

* fix transactions table mapping

* fix get balance sample

* FIX: cosensus branch ID for Blossom

* SDKSynchronizer integration for Send Funds

* fix rawTransactionId mistaken by raw field

* fix testEncodeSpend

* Transaction submission failed tests

* unpaged transaction listings

* renamed method, fixed typo

* stupid xcode misplaced folders again

* add PaginatedTableView Dependency to Example and hook it up [WIP]

* fix  unit test target not being shared

* removed performance test

* fix get address, paged transactions nulled, added type of transaction

* added kind of transaction to transaction repo builder, fixed transaction builder

* Transaction Detail screen

* add transaction details to paginated transaction
2019-12-16 19:25:45 -03:00
str4d cff6ec5505 Migrate to note-spending-v6 branch (#35)
* Migrate to note-spending-v6 branch

* Rename sendToAddress -> createToAddress

* cargo update

* Disable multicore proving temporarily

createToAddress breaks when called from a background thread if multicore
is enabled.

* Modify expectations. Single thread librustzcash needs more time
2019-12-03 14:11:23 -03:00
Jack Grigg 78642261f6 Set up a Swift shim to the Rust FFI 2019-07-02 10:02:21 +01:00
Jack Grigg 80ca214b25 Implement remainder of FFI interface 2019-06-28 10:09:53 +01:00
Jack Grigg bac9957f2b Initial implementation of account initialization and address fetching
Errors are indicated by returning a NULL-equivalent value, and functions
are provided to query the last error message.
2019-06-28 10:09:35 +01:00
Jack Grigg 3ca39955ea Initial Rust library 2019-06-28 10:06:17 +01:00