-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from anoma/tomas/pre-pub
prepare to publish on crates.io
- Loading branch information
Showing
11 changed files
with
522 additions
and
202 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "masp_note_encryption" | ||
description = "Note encryption for MASP transactions" | ||
version = "1.0.0" | ||
version.workspace = true | ||
authors = [ | ||
"Jack Grigg <[email protected]>", | ||
"Kris Nuttycombe <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "masp_primitives" | ||
description = "Rust implementations of the experimental MASP primitives (derived from zcash_primitives)" | ||
version = "1.0.0" | ||
version.workspace = true | ||
authors = [ | ||
"Jack Grigg <[email protected]>", | ||
"Kris Nuttycombe <[email protected]>", | ||
|
@@ -21,7 +21,7 @@ categories = ["cryptography::cryptocurrencies"] | |
all-features = true | ||
|
||
[dependencies] | ||
zcash_encoding = { version = "0.2", git = "https://github.com/zcash/librustzcash", rev = "bd7f9d7" } | ||
zcash_encoding = { version = "0.2.2" } | ||
|
||
# Dependencies exposed in a public API: | ||
# (Breaking upgrades to these require a breaking upgrade to this crate.) | ||
|
@@ -37,20 +37,18 @@ sha2 = "0.10" | |
memuse = "0.2.1" | ||
|
||
# - Checked arithmetic | ||
num-traits = { version = "0.2.19", git = "https://github.com/heliaxdev/num-traits", rev = "3f3657caa34b8e116fdf3f8a3519c4ac29f012fe" } | ||
num-traits = { package = "nam-num-traits", version = "0.2.20-nam.0" } | ||
|
||
# - Secret management | ||
subtle = "2.2.3" | ||
|
||
# - Shielded protocols | ||
# branch "tomas/arbitrary" | ||
bls12_381 = { git = "https://github.com/heliaxdev/bls12_381.git", rev = "d3ebe9dd6488fac1923db120a7498079e55dd838" } | ||
bls12_381 = { package = "nam-bls12_381", version = "0.8.1-nam.0" } | ||
ff = "0.13" | ||
group = { version = "0.13", features = ["wnaf-memuse"] } | ||
incrementalmerkletree = "0.3" | ||
# branch "tomas/arbitrary" | ||
jubjub = { git = "https://github.com/heliaxdev/jubjub.git", rev = "a373686962f4e9d0edb3b4716f86ff6bbd9aa86c" } | ||
nonempty = "0.7" | ||
jubjub = { package = "nam-jubjub", version = "0.10.1-nam.0" } | ||
nonempty = "0.11" | ||
|
||
# - Static constants | ||
lazy_static = "1" | ||
|
@@ -85,7 +83,7 @@ features = ["pre-zip-212"] | |
|
||
[dev-dependencies] | ||
chacha20poly1305 = "0.10" | ||
criterion = "0.4" | ||
criterion = "0.5" | ||
proptest = "1.0.0" | ||
assert_matches = "1.3.0" | ||
rand_xorshift = "0.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#[allow(dead_code)] | ||
pub struct TestVector { | ||
pub ovk: [u8; 32], | ||
pub ivk: [u8; 32], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "masp_proofs" | ||
description = "Experimental MASP zk-SNARK circuits and proving APIs, based on zcash_proofs" | ||
version = "1.0.0" | ||
version.workspace = true | ||
authors = ["Jack Grigg <[email protected]>", "joe <[email protected]>"] | ||
homepage = "https://github.com/anoma/masp" | ||
repository = "https://github.com/anoma/masp" | ||
|
@@ -20,11 +20,9 @@ masp_primitives = { version = "1.0.0", path = "../masp_primitives" } | |
# Dependencies exposed in a public API: | ||
# (Breaking upgrades to these require a breaking upgrade to this crate.) | ||
bellman = { version = "0.14", default-features = false, features = ["groth16"] } | ||
# branch "tomas/arbitrary" | ||
bls12_381 = { git = "https://github.com/heliaxdev/bls12_381.git", rev = "d3ebe9dd6488fac1923db120a7498079e55dd838" } | ||
bls12_381 = { package = "nam-bls12_381", version = "0.8.1-nam.0" } | ||
group = "0.13" | ||
# branch "tomas/arbitrary" | ||
jubjub = { git = "https://github.com/heliaxdev/jubjub.git", rev = "a373686962f4e9d0edb3b4716f86ff6bbd9aa86c" } | ||
jubjub = { package = "nam-jubjub", version = "0.10.1-nam.0" } | ||
lazy_static = "1" | ||
minreq = { version = "2.11.0", features = ["https"], optional = true } | ||
rand_core = "0.6" | ||
|
@@ -33,19 +31,19 @@ tracing = "0.1" | |
# Dependencies used internally: | ||
# (Breaking upgrades to these are usually backwards-compatible, but check MSRVs.) | ||
blake2b_simd = "1" | ||
directories = { version = "4", optional = true } | ||
directories = { version = "5.0", optional = true } | ||
# This pulls the reddsa library that contains hardcoded personalizations and basepoints. If you need to work on a new project consider forking `reddsa`, modifying it to your needs and patching it in the root manifest | ||
redjubjub = "0.7" | ||
redjubjub = {package = "nam-redjubjub", version = "0.7.1-nam.0" } | ||
getrandom = { version = "0.2" } | ||
itertools = "0.11" | ||
itertools = "0.14" | ||
|
||
[dev-dependencies] | ||
byteorder = "1" | ||
criterion = "0.4" | ||
criterion = "0.5" | ||
rand_xorshift = "0.3" | ||
|
||
[target.'cfg(unix)'.dev-dependencies] | ||
pprof = { version = "0.11", features = ["criterion", "flamegraph"] } # MSRV 1.56 | ||
pprof = { version = "0.14", features = ["criterion", "flamegraph"] } | ||
|
||
[features] | ||
default = ["local-prover", "multicore"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "1.76.0" | ||
channel = "1.81.0" | ||
components = [ "clippy", "rustfmt" ] |