Skip to content

Commit 9f2fcf2

Browse files
committed
chore(deps): pin librustzcash crates to upstream main
Add [patch.crates-io] directives pinning equihash, f4jumble, transparent (zcash_transparent), and the zcash_* crates to librustzcash main (rev 8a0ae65). Update the miner-reward transaction builders in zebra-rpc for the removed lifetime parameter on zcash_primitives' transaction `Builder` (now `Builder<P, U>` instead of `Builder<'a, P, U>`).
1 parent 39ec4f2 commit 9f2fcf2

3 files changed

Lines changed: 27 additions & 23 deletions

File tree

Cargo.lock

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,7 @@ dependencies = [
15511551
[[package]]
15521552
name = "equihash"
15531553
version = "0.3.0"
1554-
source = "registry+https://github.com/rust-lang/crates.io-index"
1555-
checksum = "306286e8dcc39ab3dfceb74c792ce8baffdab90591321d3ffaae64829734c37f"
1554+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
15561555
dependencies = [
15571556
"blake2b_simd",
15581557
"cc",
@@ -1600,8 +1599,7 @@ dependencies = [
16001599
[[package]]
16011600
name = "f4jumble"
16021601
version = "0.1.1"
1603-
source = "registry+https://github.com/rust-lang/crates.io-index"
1604-
checksum = "0d42773cb15447644d170be20231a3268600e0c4cea8987d013b93ac973d3cf7"
1602+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
16051603
dependencies = [
16061604
"blake2b_simd",
16071605
]
@@ -7112,8 +7110,7 @@ dependencies = [
71127110
[[package]]
71137111
name = "zcash_address"
71147112
version = "0.12.0"
7115-
source = "registry+https://github.com/rust-lang/crates.io-index"
7116-
checksum = "58342d0aaa8e2fa98849636f52800ac4bf020574c944c974742fc933db58cac2"
7113+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
71177114
dependencies = [
71187115
"bech32",
71197116
"bs58",
@@ -7126,8 +7123,7 @@ dependencies = [
71267123
[[package]]
71277124
name = "zcash_encoding"
71287125
version = "0.4.0"
7129-
source = "registry+https://github.com/rust-lang/crates.io-index"
7130-
checksum = "1440921903cdb86133fb9e2fe800be488015db2939a30bedb413078a1acb0306"
7126+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
71317127
dependencies = [
71327128
"corez",
71337129
"hex",
@@ -7137,8 +7133,7 @@ dependencies = [
71377133
[[package]]
71387134
name = "zcash_history"
71397135
version = "0.4.0"
7140-
source = "registry+https://github.com/rust-lang/crates.io-index"
7141-
checksum = "2fde17bf53792f9c756b313730da14880257d7661b5bfc69d0571c3a7c11a76d"
7136+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
71427137
dependencies = [
71437138
"blake2b_simd",
71447139
"byteorder",
@@ -7148,8 +7143,7 @@ dependencies = [
71487143
[[package]]
71497144
name = "zcash_keys"
71507145
version = "0.14.0"
7151-
source = "registry+https://github.com/rust-lang/crates.io-index"
7152-
checksum = "2fbcdfbb5c8edb247439d72a397abaae9b7dd14a1c070e7e4fc3536924f9065f"
7146+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
71537147
dependencies = [
71547148
"bech32",
71557149
"blake2b_simd",
@@ -7189,8 +7183,7 @@ dependencies = [
71897183
[[package]]
71907184
name = "zcash_primitives"
71917185
version = "0.28.0"
7192-
source = "registry+https://github.com/rust-lang/crates.io-index"
7193-
checksum = "c69e07f5eb3f682a6467b4b08ee4956f1acd1e886d70b21c4766953b3a1beba2"
7186+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
71947187
dependencies = [
71957188
"blake2b_simd",
71967189
"block-buffer 0.11.0-rc.3",
@@ -7220,8 +7213,7 @@ dependencies = [
72207213
[[package]]
72217214
name = "zcash_proofs"
72227215
version = "0.28.0"
7223-
source = "registry+https://github.com/rust-lang/crates.io-index"
7224-
checksum = "3de6b0ca82e08a9d38b1121f87c5b180b5feac19fecba074cb582882210d2371"
7216+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
72257217
dependencies = [
72267218
"bellman",
72277219
"blake2b_simd",
@@ -7243,8 +7235,7 @@ dependencies = [
72437235
[[package]]
72447236
name = "zcash_protocol"
72457237
version = "0.9.0"
7246-
source = "registry+https://github.com/rust-lang/crates.io-index"
7247-
checksum = "5bec496a0bd62dae98c4b26f51c5dab112d0c5350bbc2ccfdfd05bb3454f714d"
7238+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
72487239
dependencies = [
72497240
"corez",
72507241
"document-features",
@@ -7282,8 +7273,7 @@ dependencies = [
72827273
[[package]]
72837274
name = "zcash_transparent"
72847275
version = "0.8.0"
7285-
source = "registry+https://github.com/rust-lang/crates.io-index"
7286-
checksum = "15df1908b428d4edeb7c7caae5692e05e2e92e5c38007a40b20ac098efdffd96"
7276+
source = "git+https://github.com/zcash/librustzcash.git?rev=8a0ae6537404bb95d0ce0026d14bab290910bf23#8a0ae6537404bb95d0ce0026d14bab290910bf23"
72877277
dependencies = [
72887278
"bip32",
72897279
"bs58",

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,3 +378,17 @@ unwrap_in_result = "warn"
378378

379379
# TODOs: fix this lint eventually
380380
result_large_err = "allow"
381+
382+
[patch.crates-io]
383+
# TEMPORARY: Pin librustzcash crates to upstream main
384+
equihash = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
385+
f4jumble = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
386+
transparent = { package = "zcash_transparent", git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
387+
zcash_address = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
388+
zcash_encoding = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
389+
zcash_history = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
390+
zcash_keys = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
391+
zcash_primitives = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
392+
zcash_proofs = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
393+
zcash_protocol = { git = "https://github.com/zcash/librustzcash.git", rev = "8a0ae6537404bb95d0ce0026d14bab290910bf23" }
394+

zebra-rpc/src/methods/types/transaction.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl TransactionTemplate<NegativeOrZero> {
167167
};
168168
}
169169

170-
let add_orchard_reward = |builder: &mut Builder<'_, _, _>, addr: &_| {
170+
let add_orchard_reward = |builder: &mut Builder<_, _>, addr: &_| {
171171
trace_err!(
172172
builder.add_orchard_output::<String>(
173173
Some(::orchard::keys::OutgoingViewingKey::from([0u8; 32])),
@@ -179,7 +179,7 @@ impl TransactionTemplate<NegativeOrZero> {
179179
)
180180
};
181181

182-
let add_sapling_reward = |builder: &mut Builder<'_, _, _>, addr: &_| {
182+
let add_sapling_reward = |builder: &mut Builder<_, _>, addr: &_| {
183183
trace_err!(
184184
builder.add_sapling_output::<String>(
185185
Some(sapling_crypto::keys::OutgoingViewingKey([0u8; 32])),
@@ -191,7 +191,7 @@ impl TransactionTemplate<NegativeOrZero> {
191191
)
192192
};
193193

194-
let add_transparent_reward = |builder: &mut Builder<'_, _, _>, addr| {
194+
let add_transparent_reward = |builder: &mut Builder<_, _>, addr| {
195195
trace_err!(
196196
builder.add_transparent_output(addr, miner_reward),
197197
"transparent"

0 commit comments

Comments
 (0)