Migrate to `zcash/librustzcash` revision with v5 tx parsing

This doesn't affect Sapling note detection (which uses Compact Blocks),
but enables the enhancement logic to decrypt and store the corresponding
transactions for displaying memo fields.
This commit is contained in:
Jack Grigg 2022-05-20 22:14:06 +00:00 committed by Carter Jernigan
parent 84442a23a7
commit fddb5c3990
3 changed files with 13 additions and 11 deletions

View File

@ -4,6 +4,7 @@ Change Log
Version 1.5.0-beta01
------------------------------------
- New: Transactions can be created after NU5 activation.
- New: Support for receiving v5 transactions.
Version 1.4.0-beta01
------------------------------------

12
sdk-lib/Cargo.lock generated
View File

@ -468,7 +468,7 @@ dependencies = [
[[package]]
name = "equihash"
version = "0.1.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"blake2b_simd",
"byteorder",
@ -1552,7 +1552,7 @@ dependencies = [
[[package]]
name = "zcash_client_backend"
version = "0.5.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"base64",
"bech32",
@ -1581,7 +1581,7 @@ dependencies = [
[[package]]
name = "zcash_client_sqlite"
version = "0.3.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"bech32",
"bs58",
@ -1600,7 +1600,7 @@ dependencies = [
[[package]]
name = "zcash_note_encryption"
version = "0.0.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"blake2b_simd",
"byteorder",
@ -1614,7 +1614,7 @@ dependencies = [
[[package]]
name = "zcash_primitives"
version = "0.5.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"aes",
"bitvec 0.18.5",
@ -1644,7 +1644,7 @@ dependencies = [
[[package]]
name = "zcash_proofs"
version = "0.5.0"
source = "git+https://github.com/zcash/librustzcash.git?rev=098dcc2ae02841e6a2b17bbb6253de970b1ff41c#098dcc2ae02841e6a2b17bbb6253de970b1ff41c"
source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a"
dependencies = [
"bellman",
"blake2b_simd",

View File

@ -26,13 +26,14 @@ secp256k1 = "0.19"
##############################################################
# Revision corresponds to the partially-complete auto-shielding version, with the NU5
# consensus branch ID and activation heights backported onto it.
# consensus branch ID and activation heights, and v5 transaction parsing, backported.
# https://github.com/zcash/librustzcash/pull/555
# https://github.com/zcash/librustzcash/pull/558
[patch.crates-io]
zcash_client_backend = { git = 'https://github.com/zcash/librustzcash.git', rev='098dcc2ae02841e6a2b17bbb6253de970b1ff41c' }
zcash_client_sqlite = { git = 'https://github.com/zcash/librustzcash.git', rev='098dcc2ae02841e6a2b17bbb6253de970b1ff41c' }
zcash_primitives = { git = 'https://github.com/zcash/librustzcash.git', rev='098dcc2ae02841e6a2b17bbb6253de970b1ff41c' }
zcash_proofs = { git = 'https://github.com/zcash/librustzcash.git', rev='098dcc2ae02841e6a2b17bbb6253de970b1ff41c' }
zcash_client_backend = { git = 'https://github.com/zcash/librustzcash.git', rev='36dad6282ef8101a147512ef6daa34bbb2a4b55a' }
zcash_client_sqlite = { git = 'https://github.com/zcash/librustzcash.git', rev='36dad6282ef8101a147512ef6daa34bbb2a4b55a' }
zcash_primitives = { git = 'https://github.com/zcash/librustzcash.git', rev='36dad6282ef8101a147512ef6daa34bbb2a4b55a' }
zcash_proofs = { git = 'https://github.com/zcash/librustzcash.git', rev='36dad6282ef8101a147512ef6daa34bbb2a4b55a' }
## Uncomment this to test librustzcash changes locally
#[patch.crates-io]