Commit Graph

75 Commits

Author SHA1 Message Date
Francisco Gindre dda218db69 Fix DarksideWalletd tests 2021-05-18 18:22:29 -03:00
Francisco Gindre b1d5aaee0f fix compilation errors 2021-05-18 11:48:32 -03:00
Francisco Gindre c6bacef417 update proto files 2021-05-18 11:46:17 -03:00
Francisco Gindre 90c7a4d755 Fix Tests. deleted two obsolete ones 2021-05-07 15:50:50 -03:00
Francisco Gindre 37f2232d2d Update to gRPC-Swift 1.0.0 2021-04-20 11:49:10 -03:00
Francisco Gindre 7f5a115edc Rewind to neearst height tests 2021-04-19 14:16:24 -03:00
Francisco Gindre e2f8f066be Update ProfoBuf files 2021-04-12 17:28:33 -03:00
Francisco Gindre b6e21183a9 Fix: Darksidewalletd tests fail because of getUTXOs calls 2021-04-12 13:09:08 -03:00
Francisco Gindre 1ed5aeb0b2 Z -> T restore 2021-04-08 14:18:16 -03:00
Francisco Gindre 96d6ab1fe9 Fix Tests 2021-04-06 11:48:53 -03:00
Francisco Gindre 65aa7d8474 [wip] autoshield poc with uvks 2021-04-02 19:18:16 -03:00
Francisco Gindre 477f7cc69f Merge branch 'master' into shield-funds-poc 2021-03-29 14:53:01 -03:00
Francisco Gindre 53bc114948
Allow Wallet developers to rewind synchronizer and (eventually) rescan (#267)
* [WIP] tests

* Use Rust creates instead of pinned revision

* expose rewind API to public interface

* fix ci error

* Documentation
2021-03-26 19:56:51 -03:00
Francisco Gindre 30d141ab94
Fix #255 #261 outgoing no-change transactions not reported as mined (#265)
* Fix #255 #261 outgoing no-change transactions not reported as mined
* Bump rust welding version to 0.0.6

Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
2021-03-25 14:43:20 -03:00
Francisco Gindre c69b54db9e
Data Access Api integration (#227)
* add cargo dependencies for data access api

* Imports + init_accounts_table

* ported init_accounts_table and init_accounts_table_with_keys

* ported zcashlc_derive_extended_spending_keys

* ported zcashlc_derive_extended_full_viewing_keys

* ported zcashlc_derive_shielded_address_from_seed

* ported zcashlc_derive_shielded_address_from_viewing_key

* ported zcashlc_derive_extended_full_viewing_key

* ported zcashlc_init_blocks_table

* port zcashlc_get_address

* port zcashlc_is_valid_transparent_address

* port zcashlc_get_balance

* fix u32 try_into error

* ported zcashlc_get_received_memo_as_utf8

* fixed zcashlc_init_blocks_table, ported zcashlc_get_sent_memo_as_utf8

* ported zcashlc_validate_combined_chain

* ported zcashlc_rewind_to_height

* ported zcashlc_rewind_to_height

* ported zcashlc_decrypt_and_store_transaction

* ported zcashlc_branch_id_for_height

* ported zcashlc_derive_transparent_address_from_seed

* Compiled lib.rs

* lib.rs compiles

* fix AccountId import

* Fix: send fails with missing params. cargo update

* Fix: demo app fails to initialize

* fix AdvancedReOrgTests

* deprecate default FEE

* Add fee for height helper for UI purposes

* default fee for heightwq

* update proto files and compiled files

* Update to librustzcash master.

* add latests changes from rust on master

* merge with master

* fix merge error

Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
2021-03-11 18:41:57 -03:00
Francisco Gindre 0c9f3cb5ef add stubs, fix typo 2021-03-03 18:14:20 -03:00
Francisco Gindre 90cd2d0ff8 Create derive secret key for t funds 2021-03-03 18:13:09 -03:00
Francisco Gindre 499da66900 update proto files and compiled files 2021-03-03 18:09:13 -03:00
Francisco Gindre 499441c170 fix AdvancedReOrgTests 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 9a8d4c23b5 Code Cleanup, test enhancements, linting changes 2021-02-15 21:56:23 -03:00
Francisco Gindre aad4710608 fix tests 2020-12-14 18:55:51 -03:00
Francisco Gindre 69b9ee9dfe force retry on TestCoordinator 2020-12-05 15:10:22 -03:00
Francisco Gindre 1926ea6824 Canopy Tests Successfully pass 2020-11-05 19:02:01 -03:00
Francisco Gindre 552c011951 WIP - testCombinePreActivationNotesAndPostActivationNotesOnSpend 2020-11-02 14:15:52 -03:00
Francisco Gindre 29db874bec WIP - testExpiredSpendAfterActivation 2020-11-02 11:58:45 -03:00
Francisco Gindre 71940c8d40 WIP - testSpendMinedSpendThatExpiresOnActivation 2020-11-02 11:53:49 -03:00
Francisco Gindre 4d77455033 WIP - testSpendPostActivationFundsAfterConfirmation 2020-11-02 11:04:30 -03:00
Francisco Gindre 45b0f7523b WIP - testSpendPriorFundsAfterActivation 2020-10-30 20:45:54 -03:00
Francisco Gindre fa76c722b2 FIX - UNIQUE constraint violation when an operation failed 2020-10-26 18:57:19 -03:00
Francisco Gindre 4e1e899de8 Add darksidewalletd tests for foundTransactions notifications 2020-10-20 19:22:05 -03:00
Francisco Gindre e01d2e1745 add stub method 2020-10-20 11:07:42 -03:00
Francisco Gindre 972fb08926 Issue 208 - Improve API method to request transaction history 2020-10-19 21:01:46 -03:00
Francisco Gindre 18b8d622c2 remove SeedProvider protoco 2020-10-14 20:18:10 -03:00
Francisco Gindre 4a01865a7d Add IVK capabilities to Initializer 2020-10-14 19:50:26 -03:00
Francisco Gindre 328a18d898 DerivationTool + tests
Fixes #204
2020-10-09 17:58:36 -03:00
Francisco Gindre af8ee1ef12 Add SaplingParameterDownloader 2020-10-08 17:29:38 -03:00
Francisco Gindre 251b4c7aa3
Error handling refactor (#170)
* Improve error handling on processor and service

* Error Refactoring

* fix XCode12 issue

* Fix Compilation errors and test

* bump MIDDLE version
2020-08-10 19:19:59 -03:00
Francisco Gindre 647072ce26
Pending tx wont clear (#168)
* Created test to reproduce issue

* fix test

* Add Fixme message

* Fix reorg Tests
2020-07-22 16:32:07 -03:00
Francisco Gindre 32058fbc30 Remove MnemonicSwift from tests. iOS 12 Compatibility 2020-06-10 10:49:04 -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
Francisco Gindre cc77d9705e
Issue 136 Null bytes in strings effectively truncate the string from … (#140)
* Issue 136 Null bytes in strings effectively truncate the string from librustzcash's point of view

* Code clean up

* Fix from PR review
2020-06-08 17:07:48 -03:00
Francisco Gindre 3f130ebebf
Fixes issue 136 - expiry height -1 on pending transactions (#139) 2020-06-04 18:36:25 -03:00
Francisco Gindre f8f8be30a4
Advanced Re Org tests + Balance tests (#137)
* Stub methods and internal initializers

* [WIP] Balance tests

* testVerifyBalanceAfterExpiredTransaction and testVerifyChangeTransaction

* adopt new version of darkside lightwalletd

* Balance tests with new darkside wallet proto files

* podspec and podfile

* Advanced reorg testsw

* Issue 117 - Reorg Test Case: Index of incoming tx changes

* Hooking to Darksidewalletd

* update proto files to latest

* sanity tests

* FakeChainBuilder + advanced tests

* Use new datasets

* test: outbound tx index change on reorg

* testReOrgChangesInboundTxMinedHeight test + other improvements

* testReOrgChangesInboundMinedHeight

* testReOrgRemovesIncomingTxForever

* testReOrgRemovesOutboundTxAndIsNeverMined

* testReOrgRemovesOutboundTxAndIsNeverMined

* Fixes to balance tests
2020-06-03 20:18:57 -03:00
Francisco Gindre 1d71bc30c4
Canonical empty memo test (#112) 2020-04-28 15:30:57 -03:00
Francisco Gindre 36f2d0730a
Memo tests (#111)
* test scaffold

* Memo Tests

* emoji memo test
2020-04-24 16:50:23 -03:00
Francisco Gindre 462ce0f5d7
Decrypt transactions. Full wallet restore (#110)
* Add enhancement [WIP]

* Added enhance and decrypt transaction step

* modify logging

* Enhancement tests scaffolding
2020-04-23 14:11:03 -03:00
Francisco Gindre 174ceb1d8e
Swift grpc to NIO (#109)
* update protofiles

* update protobuf

* swift lint

* update GRPC service to NIO

* initial update [wip]

* Upgrade to SwiftGRPC NIO and Tests
2020-04-09 19:25:43 -03:00
Francisco Gindre 312a169911
Feature/reorg testing (#104)
* Add DarksideWalletD class

* darkside walletd reorg tests

* Removed hardcoded stuff from tests

* add parameters to support other kinds of reorgs

* Basic reorg test in place

* Integration to DarksideWalletD and tests

* tests improvements

* Implement reorg testing. fix error throwing
2020-04-06 12:54:31 -03:00
Francisco Gindre d4d3f0e5cf FIX: race condition on reorgs 2020-03-16 18:23:39 -03:00