diff --git a/sdk-lib/Cargo.lock b/sdk-lib/Cargo.lock index affb21de..6ae22271 100644 --- a/sdk-lib/Cargo.lock +++ b/sdk-lib/Cargo.lock @@ -468,7 +468,7 @@ dependencies = [ [[package]] name = "equihash" version = "0.1.0" -source = "git+https://github.com/zcash/librustzcash.git?rev=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" 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=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" 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=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" 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=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" 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=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" 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=36dad6282ef8101a147512ef6daa34bbb2a4b55a#36dad6282ef8101a147512ef6daa34bbb2a4b55a" +source = "git+https://github.com/zcash/librustzcash.git?rev=0a1ed9b8acf336bdc20ba49083c66f114ecf6877#0a1ed9b8acf336bdc20ba49083c66f114ecf6877" dependencies = [ "bellman", "blake2b_simd", diff --git a/sdk-lib/Cargo.toml b/sdk-lib/Cargo.toml index 7133774b..1e047f77 100644 --- a/sdk-lib/Cargo.toml +++ b/sdk-lib/Cargo.toml @@ -30,10 +30,10 @@ secp256k1 = "0.19" # 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='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' } +zcash_client_backend = { git = 'https://github.com/zcash/librustzcash.git', rev='0a1ed9b8acf336bdc20ba49083c66f114ecf6877' } +zcash_client_sqlite = { git = 'https://github.com/zcash/librustzcash.git', rev='0a1ed9b8acf336bdc20ba49083c66f114ecf6877' } +zcash_primitives = { git = 'https://github.com/zcash/librustzcash.git', rev='0a1ed9b8acf336bdc20ba49083c66f114ecf6877' } +zcash_proofs = { git = 'https://github.com/zcash/librustzcash.git', rev='0a1ed9b8acf336bdc20ba49083c66f114ecf6877' } ## Uncomment this to test librustzcash changes locally #[patch.crates-io] diff --git a/sdk-lib/src/main/rust/lib.rs b/sdk-lib/src/main/rust/lib.rs index bd17bc03..f4a583ad 100644 --- a/sdk-lib/src/main/rust/lib.rs +++ b/sdk-lib/src/main/rust/lib.rs @@ -997,7 +997,7 @@ pub unsafe extern "C" fn Java_cash_z_ecc_android_sdk_jni_RustBackend_decryptAndS let tx_bytes = env.convert_byte_array(tx).unwrap(); let tx = Transaction::read(&tx_bytes[..])?; - match decrypt_and_store_transaction(&network, &mut db_data, &tx) { + match decrypt_and_store_transaction(&network, &mut db_data, &tx_bytes, &tx) { Ok(()) => Ok(JNI_TRUE), Err(e) => Err(format_err!("Error while decrypting transaction: {}", e)), }