Kris Nuttycombe
ad54591061
Improve documentation of UFVK/UA metadata storage semantics.
2022-01-04 16:29:28 -07:00
Kris Nuttycombe
8d6d178a47
Use Bip44TransparentAccountKeyPath() for Bip44AccountChains keypath construction.
2022-01-04 16:29:28 -07:00
Kris Nuttycombe
16ba83ab1e
Make `FindAddress` correctly check for maximum transparent child index.
...
ZcashdUnifiedFullViewingKey::FindAddress was previously not checking
that the transparent child index did not overflow in unified address
generation. GenerateUnifiedAddress has been modified to search from
the last known diversifier index if no diversifier is specified, and
boundary conditions for transparent addresses are now correctly handled.
2022-01-04 16:29:28 -07:00
Dimitris Apostolou
2006939d27
Fix typos
2022-01-02 23:16:01 +02:00
Kris Nuttycombe
0931aa8908
Merge pull request #5443 from steven-ecc/gtest-fix-for-debug-mode
...
Lock cs_main prior to calling blockToJSON
2021-12-30 11:18:14 -07:00
Kris Nuttycombe
5d07a8ae79
Apply suggestions from code review
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-12-30 10:53:51 -07:00
Steven Smith
56b706d5c7
Lock cs_main prior to calling blockToJSON
2021-12-29 21:22:19 -08:00
Daira Hopwood
ba0688da3f
Merge pull request #5441 from LarryRuane/2021-12-28-test-submitblock
...
test: assert that the return value of submitblock is None
2021-12-29 14:02:57 +00:00
Larry Ruane
1f223ebed7
assert that the return value of submitblock is None
2021-12-28 22:10:13 -07:00
Kris Nuttycombe
74e4bef6f2
Ensure that unified address metadata is always correctly populated.
...
This reworks the way that address metadata is added to the wallet
to make adding address metadata to the wallet's in-memory cache
the responsibility of a single method rather than distributed
across multiple places in the code.
2021-12-23 09:33:17 -07:00
Sasha
ba4b4791c1
Merge pull request #5436 from superbaud/release-v4.6.0
...
Release v4.6.0
2021-12-22 19:13:55 -08:00
Sasha
25278c312a
str4d suggested changes to release-notes-4.6.0.md
2021-12-22 17:36:39 -08:00
Sasha
eeecf63dae
make-release.py: Updated release notes and changelog for 4.6.0.
2021-12-23 00:35:41 +00:00
Sasha
de4dd9f231
make-release.py: Updated manpages for 4.6.0.
2021-12-23 00:35:40 +00:00
Sasha
baa3de9250
make-release.py: Versioning changes for 4.6.0.
2021-12-23 00:13:51 +00:00
Sasha
bc6e565bcc
Merge pull request #5431 from LarryRuane/2021-12-test-getblocktemplate-submitblock
...
test: Use result of getblocktemplate to submitblock
2021-12-22 16:06:42 -08:00
Kris Nuttycombe
ad5c4dcf09
Remove unused ufvkid argument from AddTransparentSecretKey
...
All of the necessary relationships between transparent receivers
and UFVKs are set up by `AddUnifiedAddress`, so there's no
need to do so as part of transparent key management otherwise.
2021-12-22 16:09:17 -07:00
Kris Nuttycombe
900cd50741
Rename `ZcashdUnifiedSpendingKeyMetadata` -> `ZcashdUnifiedAccount`
...
Also, fix a couple of minor documentation issues and
make UA generation tests a little more robust.
2021-12-22 16:09:17 -07:00
Kris Nuttycombe
24e46a16f1
Only derive ZcashdUnifiedFullViewingKey from UnifiedFullViewingKey
...
This changes ZcashdUnifiedSpendingKey::ToUnifiedFullViewingKey
to return a `UnifiedFullViewingKey` object. This makes the
derivation of ZcashdUnifiedFullViewingKey values more regular,
removing the need to be able to construct these values directly
from the spending key.
This change also modifies ZcashdUnifiedSpendingKey to remove
the `std::optional` wrapper from its member keys. This
optionality is spurious, because it is always possible to
derive a "complete" spending key, and we do not support
import of unified spending keys.
2021-12-22 16:09:17 -07:00
Kris Nuttycombe
735ecd0906
Apply suggestions from code review
...
Co-authored-by: str4d <jack@electriccoin.co>
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
9b72fff365
Fix handling of unified full viewing key metadata.
...
This fixes two issues with the management of unified full viewing
key metadata:
* Adds a reverse mapping from ufvkid to account id.
* Ensures that UFVK metadata is correctly initialized when USK
metadata is loaded from disk.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
b34fd6a816
Add test for CKeyStore::AddUnifiedAddress
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
009ba76b0e
Add test for wallet UA generation & detection.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
700b98f0b0
Add tests for keystore storage and retrieval of UFVKs.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
0dcdc28a38
Add CWallet::GetUnifiedForReceiver
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
8337442553
Add newly generated transparent UA receivers to the wallet.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
290985ba48
AddTransparentSecretKey does not need to take a CExtKey
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
b29ca10b8d
Add unified address generation.
...
Generate unified addresses from UFVKs, and add the associated
metadata to the wallet database.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
ca20cf512c
Add key metadata to walletdb.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
d869d7f4a3
Load unified full viewing keys from the walletdb.
2021-12-22 15:57:47 -07:00
Kris Nuttycombe
e56f252a86
Add unified address tracking to KeyStore
2021-12-22 15:55:36 -07:00
Kris Nuttycombe
ef068c51a9
Store ufvks to the wallet database.
2021-12-22 15:55:36 -07:00
Larry Ruane
b538577359
test: Use result of getblocktemplate to submitblock
...
This will ensure that miners can use the values returned by
getblocktemplate (in particular, the block commitment hash)
to submit a valid block using the submitblock RPC.
2021-12-22 15:35:46 -07:00
Larry Ruane
8c0177a507
test: fix bugs in test framework
2021-12-22 15:05:38 -07:00
Charlie O'Keefe
a2a66df5e0
Merge pull request #5435 from charlieok/add_libtinfo5_to_gitian_packages_list
...
Add libtinfo5 to gitian packages list
2021-12-21 11:06:43 -08:00
Charlie O'Keefe
04c292a379
Add libtinfo5 to gitian packages list
...
libtinfo5 is a build dependency of zcashd
https://zcash.readthedocs.io/en/latest/rtd_pages/Debian-Ubuntu-build.html
2021-12-21 09:17:51 -07:00
str4d
213ba58fae
Merge pull request #5434 from superbaud/config.offline-update
...
update librustzcash hash in config.offline, and remove all other repos from config.offline
2021-12-21 03:02:52 +00:00
Sasha
87101eeaed
only librustzcash in config.offline
2021-12-20 17:11:25 -08:00
Sasha
4e928fa67f
update hash for librustzcash
2021-12-20 16:25:05 -08:00
str4d
3acc68548e
Merge pull request #5300 from LarryRuane/feature/wallet_orchard
...
Feature/wallet orchard UA RPCs
2021-12-20 20:31:10 +00:00
str4d
12e022a53a
Merge pull request #5430 from str4d/release-v4.6.0-rc1
...
Release v4.6.0-rc1
2021-12-18 06:30:31 +00:00
Jack Grigg
9c4a1e7ad7
make-release.py: Updated release notes and changelog for 4.6.0-rc1.
2021-12-18 04:25:50 +00:00
Jack Grigg
1c910cf9cc
make-release.py: Updated manpages for 4.6.0-rc1.
2021-12-18 04:25:50 +00:00
Jack Grigg
d4b850d3f7
make-release.py: Versioning changes for 4.6.0-rc1.
2021-12-18 04:23:05 +00:00
str4d
75b539400c
Merge pull request #5429 from str4d/pre-4.6.0-rc1-changes
...
Pre-4.6.0-rc1 changes
2021-12-18 04:07:03 +00:00
Jack Grigg
8387aa40cf
Update release notes
2021-12-18 01:44:27 +00:00
Jack Grigg
d85bfb4744
Migrate to latest revisions of Zcash Rust crates
2021-12-18 01:44:27 +00:00
str4d
eb175dddaa
Merge pull request #5426 from str4d/5379-revert-lint-fix
...
Revert lint: Fix false positive
2021-12-17 22:05:17 +00:00
Kris Nuttycombe
8b093a79da
Merge pull request #5402 from LarryRuane/2021-12-getblocktemplate
...
Add defaultroots field to getblocktemplate
2021-12-17 12:28:06 -07:00
str4d
72aad89859
Merge pull request #5404 from LarryRuane/2021-12-05-getmininginfo
...
[rpc] mining: Omit uninitialized currentblockweight, currentblocktx
2021-12-17 18:07:44 +00:00