Duke Leto
b58c15b9fb
update copyrights
4 years ago
Duke Leto
a42c063b52
Remove more remnants of JoinSplits
4 years ago
Duke Leto
e07d870661
Update copyrights in c++ tests
4 years ago
Duke Leto
86a98587a1
desprout
4 years ago
Duke Leto
ed2c9450f9
desprout
4 years ago
Duke Leto
52e3739671
desprout
4 years ago
DenioD
6c48397cf3
Hush witness rework, many thanks to @CryptoForge for this awesome code https://github.com/Cryptoforge-alt/pirate/tree/pirate_witness_rework
4 years ago
Jack Grigg
a581ac5e1b
wallet: Skip transactions with no shielded data in CWallet::SetBestChain()
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
Closes #3495 .
6 years ago
Bartlomiej Lisiecki
191fc2e152
Add support for importing and exporting sapling ivk
5 years ago
ca333
492d6703ed
sync jl777:FSM
6 years ago
miketout
c2dc091e40
Merge branch 'master' of https://github.com/zcash/zcash into dev
6 years ago
Eirik Ogilvie-Wigley
d6ad8cef2c
GenerateNewSproutZKey can return a SproutPaymentAddress
6 years ago
Eirik Ogilvie-Wigley
92fc29a3f4
Rename GenerateNewZKey to include Sprout
6 years ago
Jack Grigg
3e471410f1
Persist Sapling payment address to IVK map
This ensures we remember any diversified addresses manually generated
outside the wallet.
6 years ago
mdr0id
9ce6f8425b
Add gtest coverage of Sapling wallet persistence
6 years ago
mdr0id
87ae893d75
Revert "wallet: Comment out HDSeed and CHDChain persistence to disk"
This reverts commit b7f9a7ae02
.
6 years ago
Eirik Ogilvie-Wigley
a4ecd0fa72
Add newly discovered sapling addresses to the wallet
6 years ago
miketout
4b729ec577
Changes for most chain power rule
6 years ago
Eirik Ogilvie-Wigley
83c4e360da
Address need not be optional when adding sapling keys
6 years ago
Jack Grigg
bd3c860cb4
Use ovk directly in the TransactionBuilder API instead of fvk
6 years ago
Eirik Ogilvie-Wigley
a0783bb957
Rename AddZKey to include sprout
6 years ago
Eirik Ogilvie-Wigley
d6b31d59b5
Rename map to include sprout
6 years ago
Simon
761f8c8bb8
Add unit test SaplingNoteLocking
6 years ago
Simon
9ae73247e2
Refactor: rename UnlockAllNotes -> UnlockAllSproutNotes
6 years ago
Jack Grigg
b7f9a7ae02
wallet: Comment out HDSeed and CHDChain persistence to disk
Sapling keys generated from the seed are not yet persisted, so we don't
want to persist the seed or chain state either, otherwise the wallet
could end up in an inconsistent state.
Some tests are temporarily disabled because commenting out HDSeed
persistence breaks invariants inside CCryptoKeyStore.
Revert this commit during the PR for #3388 .
6 years ago
Jack Grigg
70b4ad2dcd
wallet: Switch from SaplingSpendingKey to SaplingExtendedSpendingKey
The wallet now only stores Sapling extended spending keys, and thus can
only be used with keys generated from an HDSeed via ZIP 32.
Note that not all Sapling keys in the wallet will correspond to the
wallet's HDSeed, as a standalone Sapling xsk can be imported via
z_importkey. However, it must have been generated from a seed itself,
and thus is more likely to be backed up elsewhere.
6 years ago
Jack Grigg
94e99acda6
Add Sapling support to GetFilteredNotes() and GetUnspentFilteredNotes()
This could in future be refactored to be generic over PaymentAddress and
NotePlaintext in the return type, but for now let's be explicit about which
returned notes are for Sprout vs Sapling, and handle them separately.
Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
6 years ago
Jack Grigg
c9339bb61f
test: Fix comment in WalletTests.FindMySaplingNotes
6 years ago
Simon
3c3d1f0a38
Clean up wallet unit tests: replace .value() with .get() for clarity.
This is to avoid confusion with note.value().
6 years ago
Simon
58a1224d63
Update wallet unit tests to revert upgraded network parameters.
6 years ago
Simon
52d162319d
Add new wallet test: MarkAffectedSaplingTransactionsDirty
Also rename MarkAffectedTransactionsDirty to MarkAffectedSproutTransactionsDirty.
6 years ago
Simon
eba096f24e
Add new wallet test: GetConflictedSaplingNotes
6 years ago
Simon
a5ca7967a4
Add new wallet test: SetSaplingNoteAddrsInCWalletTx.
6 years ago
Simon
9fe34549b1
Fix inaccurate comments in test.
6 years ago
Simon
668ca2974a
Fix typo in variable name in test.
6 years ago
Simon
992a82c649
Rename wallet tests for clarity between Sprout and Sapling.
6 years ago
Simon
f13387486e
Add new wallet tests: SpentSaplingNoteIsFromMe.
6 years ago
Simon
fba4168049
Add new wallet test: UpdatedSaplingNoteData.
6 years ago
Simon
e5df6ec5cc
Add new wallet test: NavigateFromSaplingNullifierToNote
Checks caching of Sapling nullifier and mapping to its SaplingOutPoint.
6 years ago
Simon
2f6481f835
Add two new wallet tests: FindMySaplingNotes, SaplingNullifierIsSpent.
6 years ago
Simon
3b6dd486b4
Refactor IsSpent(nullifier) for Sprout and Sapling domain separation.
We need separate functions for checking Sprout and Sapling nullifiers,
because they are in separate domains and aren't guaranteed to be
collision-resistant (otherwise there is a possibility of a nullifier
collision, however remote, between Sprout and Sapling causing the spend
of one to prevent the spend of the other).
6 years ago
Simon
28d3dc8532
Add test for CWalletTx::SetSaplingNoteData()
6 years ago
Simon
f12daeb44a
Clean up names of unit tests in gtest/test_wallet.cpp.
6 years ago
Simon
f41bf503e1
Rename mapNullifiersToNotes to mapSproutNullifiersToNotes.
6 years ago
Simon
618206c7d5
Rename GetNoteNullifier to GetSproutNoteNullifier.
6 years ago
Simon
57faf44e61
Rename FindMyNotes to FindMySproutNotes.
6 years ago
Jack Grigg
25d5e80cbe
Rename *SpendingKey -> *SproutSpendingKey
Also GetPaymentAddresses -> GetSproutPaymentAddresses
6 years ago
Jack Grigg
4c77517772
Rename *ViewingKey* -> *SproutViewingKey*
6 years ago
Jack Grigg
5175a7f07b
Pass SaplingPaymentAddress to store through the CKeyStore
6 years ago
Sean Bowe
262d21bcbb
Don't call ECC_Start/ECC_Stop outside the test harness.
6 years ago