Skip to content

Commit

Permalink
Network Sustainability Mechanism - ZIP 233 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mariopil committed Nov 4, 2024
1 parent 7b31711 commit ac0cf4e
Show file tree
Hide file tree
Showing 34 changed files with 781 additions and 79 deletions.
167 changes: 119 additions & 48 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cef977c7f8e75aa81fc589064c121ab8d32448b7939d34d58df479aa93e65ea5"
dependencies = [
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
]

[[package]]
Expand Down Expand Up @@ -1343,6 +1343,15 @@ dependencies = [
"byteorder",
]

[[package]]
name = "equihash"
version = "0.2.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"blake2b_simd",
"byteorder",
]

[[package]]
name = "equivalent"
version = "1.0.1"
Expand Down Expand Up @@ -1372,8 +1381,7 @@ dependencies = [
[[package]]
name = "f4jumble"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a83e8d7fd0c526af4aad893b7c9fe41e2699ed8a776a6c74aecdeafe05afc75"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"blake2b_simd",
]
Expand Down Expand Up @@ -2140,6 +2148,15 @@ dependencies = [
"syn 1.0.109",
]

[[package]]
name = "incrementalmerkletree"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75346da3bd8e3d8891d02508245ed2df34447ca6637e343829f8d08986e9cde2"
dependencies = [
"either",
]

[[package]]
name = "incrementalmerkletree"
version = "0.7.0"
Expand Down Expand Up @@ -2849,6 +2866,37 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"

[[package]]
name = "orchard"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dc7bde644aeb980be296cd908c6650894dc8541deb56f9f5294c52ed7ca568f"
dependencies = [
"aes",
"bitvec",
"blake2b_simd",
"ff",
"fpe",
"group",
"halo2_gadgets",
"halo2_proofs",
"hex",
"incrementalmerkletree 0.6.0",
"lazy_static",
"memuse",
"nonempty",
"pasta_curves",
"rand 0.8.5",
"reddsa",
"serde",
"subtle",
"tracing",
"visibility",
"zcash_note_encryption",
"zcash_spec",
"zip32",
]

[[package]]
name = "orchard"
version = "0.10.0"
Expand All @@ -2864,7 +2912,7 @@ dependencies = [
"halo2_gadgets",
"halo2_proofs",
"hex",
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
"lazy_static",
"memuse",
"nonempty",
Expand Down Expand Up @@ -3981,6 +4029,38 @@ dependencies = [
"winapi-util",
]

[[package]]
name = "sapling-crypto"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15e379398fffad84e49f9a45a05635fc004f66086e65942dbf4eb95332c26d2a"
dependencies = [
"aes",
"bellman",
"bitvec",
"blake2b_simd",
"blake2s_simd",
"bls12_381",
"byteorder",
"document-features",
"ff",
"fpe",
"group",
"hex",
"incrementalmerkletree 0.6.0",
"jubjub",
"lazy_static",
"memuse",
"rand 0.8.5",
"rand_core 0.6.4",
"redjubjub",
"subtle",
"tracing",
"zcash_note_encryption",
"zcash_spec",
"zip32",
]

[[package]]
name = "sapling-crypto"
version = "0.3.0"
Expand All @@ -3999,7 +4079,7 @@ dependencies = [
"fpe",
"group",
"hex",
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
"jubjub",
"lazy_static",
"memuse",
Expand Down Expand Up @@ -4320,13 +4400,13 @@ dependencies = [

[[package]]
name = "shardtree"
version = "0.5.0"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5f2390975ebfe8838f9e861f7a588123d49a7a7a0a08568ea831d8ad53fc9b4"
checksum = "78222845cd8bbe5eb95687407648ff17693a35de5e8abaa39a4681fb21e033f9"
dependencies = [
"bitflags 2.6.0",
"either",
"incrementalmerkletree",
"incrementalmerkletree 0.6.0",
"tracing",
]

Expand Down Expand Up @@ -5835,9 +5915,8 @@ checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546"

[[package]]
name = "zcash_address"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ff95eac82f71286a79c750e674550d64fb2b7aadaef7b89286b2917f645457d"
version = "0.5.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"bech32",
"bs58",
Expand All @@ -5848,9 +5927,8 @@ dependencies = [

[[package]]
name = "zcash_client_backend"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbeeede366fdb642710d3c59fc2090489affd075f66db53ed11bb7138d2d0258"
version = "0.13.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"base64 0.22.1",
"bech32",
Expand All @@ -5860,15 +5938,15 @@ dependencies = [
"document-features",
"group",
"hex",
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
"memuse",
"nom",
"nonempty",
"percent-encoding",
"prost",
"rand_core 0.6.4",
"rayon",
"sapling-crypto",
"sapling-crypto 0.2.0",
"secrecy",
"shardtree",
"subtle",
Expand All @@ -5889,8 +5967,7 @@ dependencies = [
[[package]]
name = "zcash_encoding"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "052d8230202f0a018cd9b5d1b56b94cd25e18eccc2d8665073bcea8261ab87fc"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"byteorder",
"nonempty",
Expand All @@ -5899,8 +5976,7 @@ dependencies = [
[[package]]
name = "zcash_history"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fde17bf53792f9c756b313730da14880257d7661b5bfc69d0571c3a7c11a76d"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"blake2b_simd",
"byteorder",
Expand All @@ -5909,9 +5985,8 @@ dependencies = [

[[package]]
name = "zcash_keys"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8162c94957f1e379b8e2fb30f97b95cfa93ac9c6bc02895946ca6392d1abb81"
version = "0.3.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"bech32",
"blake2b_simd",
Expand All @@ -5922,7 +5997,7 @@ dependencies = [
"memuse",
"nonempty",
"rand_core 0.6.4",
"sapling-crypto",
"sapling-crypto 0.2.0",
"secrecy",
"subtle",
"tracing",
Expand All @@ -5948,31 +6023,30 @@ dependencies = [

[[package]]
name = "zcash_primitives"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ab47d526d7fd6f88b3a2854ad81b54757a80c2aeadd1d8b06f690556af9743c"
version = "0.17.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"aes",
"bip32",
"blake2b_simd",
"bs58",
"byteorder",
"document-features",
"equihash",
"equihash 0.2.0 (git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra)",
"ff",
"fpe",
"group",
"hex",
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
"jubjub",
"memuse",
"nonempty",
"orchard",
"orchard 0.9.0",
"rand 0.8.5",
"rand_core 0.6.4",
"redjubjub",
"ripemd",
"sapling-crypto",
"sapling-crypto 0.2.0",
"secp256k1",
"sha2",
"subtle",
Expand All @@ -5987,9 +6061,8 @@ dependencies = [

[[package]]
name = "zcash_proofs"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daba607872e60d91a09248d8e1ea3d6801c819fb80d67016d9de02d81323c10d"
version = "0.17.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"bellman",
"blake2b_simd",
Expand All @@ -6002,17 +6075,16 @@ dependencies = [
"lazy_static",
"rand_core 0.6.4",
"redjubjub",
"sapling-crypto",
"sapling-crypto 0.2.0",
"tracing",
"xdg",
"zcash_primitives",
]

[[package]]
name = "zcash_protocol"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bc22b9155b2c7eb20105cd06de170d188c1bc86489b92aa3fda7b8da8d96acf"
version = "0.3.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"document-features",
"memuse",
Expand Down Expand Up @@ -6054,18 +6126,18 @@ dependencies = [
"criterion",
"dirs",
"ed25519-zebra",
"equihash",
"equihash 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures",
"group",
"halo2_proofs",
"hex",
"humantime",
"incrementalmerkletree",
"incrementalmerkletree 0.7.0",
"itertools 0.13.0",
"jubjub",
"lazy_static",
"num-integer",
"orchard",
"orchard 0.10.0",
"primitive-types",
"proptest",
"proptest-derive",
Expand All @@ -6076,7 +6148,7 @@ dependencies = [
"reddsa",
"redjubjub",
"ripemd",
"sapling-crypto",
"sapling-crypto 0.3.0",
"secp256k1",
"serde",
"serde-big-array",
Expand Down Expand Up @@ -6121,12 +6193,12 @@ dependencies = [
"metrics",
"num-integer",
"once_cell",
"orchard",
"orchard 0.10.0",
"proptest",
"proptest-derive",
"rand 0.8.5",
"rayon",
"sapling-crypto",
"sapling-crypto 0.3.0",
"serde",
"spandoc",
"thiserror",
Expand Down Expand Up @@ -6283,7 +6355,7 @@ dependencies = [
"proptest",
"proptest-derive",
"rand 0.8.5",
"sapling-crypto",
"sapling-crypto 0.3.0",
"semver 1.0.23",
"serde",
"serde_json",
Expand Down Expand Up @@ -6552,9 +6624,8 @@ dependencies = [

[[package]]
name = "zip321"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3e613defb0940acef1f54774b51c7f48f2fa705613dd800870dc69f35cd2ea"
version = "0.1.0"
source = "git+https://github.com/ShieldedLabs/librustzcash/?branch=nsm-zebra#1b4f984a61cc88029c0b78e9d13225aad76c6903"
dependencies = [
"base64 0.22.1",
"nom",
Expand Down
Loading

0 comments on commit ac0cf4e

Please sign in to comment.