Jim Posen
93563c3c65
Specify rand_core >= 0.5.1 for OsRng import.
5 years ago
NikVolf
b42477a0bf
update from rand_os to fix warnings
5 years ago
Jack Grigg
7f3036d2c8
Update READMEs
5 years ago
Jack Grigg
d9a0b9c83f
CI: Check intra-doc links
...
Credit: https://twitter.com/tomaka17/status/1176017851410526208
5 years ago
Jack Grigg
1d02363752
Add READMEs to Cargo.toml files
...
This will cause crates.io to render each crate's README as its
information page.
5 years ago
Jack Grigg
abbd43ff57
Make pk_d validity an invariant of PaymentAddress
...
Introduces a PaymentAddress::from_parts constructor, and getters for
the diversifier and pk_d fields (which are now private).
5 years ago
Jack Grigg
86142d044c
PaymentAddress::to_bytes
5 years ago
Jack Grigg
73ee19239c
Replace manual address decoding with PaymentAddress::from_bytes
5 years ago
Jack Grigg
fe93f2ff6b
Rename into_ -> to_ where &self is used.
5 years ago
Jack Grigg
d78c94b2a2
Move Equihash validator into zcash_primitives
5 years ago
Jack Grigg
ba3705cb5e
librustzcash: Correctly map sprout_path
5 years ago
Jack Grigg
894421f3b5
librustzcash: Fix typo in Windows parameter init
5 years ago
Marco Stronati
37531ed747
Fixes after feedback
5 years ago
Eirik Ogilvie-Wigley
76795a9014
cargo fmt
5 years ago
Eirik Ogilvie-Wigley
573ffc4e06
cargo fix --edition-idioms for librustzcash
5 years ago
Eirik Ogilvie-Wigley
09882c6d08
Add edition = 2018
5 years ago
Eirik Ogilvie-Wigley
7809711a81
cargo fix --edition for librustzcash
5 years ago
Eirik Ogilvie-Wigley
a7c5993597
cargo fmt
5 years ago
Jack Grigg
5fb9b86ba0
Move Jubjub, Pedersen hash and primitives into zcash_primitives
5 years ago
Jack Grigg
b8af749b40
Move generic circuit gadgets into bellman
5 years ago
Jack Grigg
2ae5804a67
Move Sprout and Sapling circuits into zcash_proofs
5 years ago
Jack Grigg
7ea6d10480
Move redjubjub into zcash_primitives
5 years ago
Jack Grigg
7c07914bfd
Separate Amount::{from_i64, from_nonnegative_i64} APIs
...
This is more intuitive than a boolean flag for handling non-negative
Amounts stored in i64 values.
5 years ago
Marco Stronati
3891fe57d4
Make initialization of sprout validation key optional
...
This makes the C interface behave like `zcash_proofs` and allows to
init the library without downloading the heavy sprout parameters.
In the special case where `librustzcash_init_zksnark_params` is called
with the sprout arguments path set to NULL and length set to 0, the
arguments are passed as None to `load_parameters`.
5 years ago
Jack Grigg
59ed258c7f
Make Amount opaque, and use it more
...
This helps to ensure type-safety of values that are required to satisfy
zatoshi range bounds.
5 years ago
Jack Grigg
17f6bbcc67
Pass tx builder RNG to spend_sig()
5 years ago
Jack Grigg
c4e14ad0b1
Address libc deprecations
5 years ago
Jack Grigg
6f9083b5ab
Migrate to rand 0.7
5 years ago
Jack Grigg
b0913afdd7
Migrate remaining crates to rand_core 0.4
5 years ago
Jack Grigg
ccf75c39c1
Migrate remaining crates to rand 0.5
5 years ago
Jack Grigg
bf74915053
Move CommitmentTreeWitness into zcash_primitives
5 years ago
Jack Grigg
785f22ca5a
Move Sapling commitment tree hash into zcash_primitives
5 years ago
Jack Grigg
999dcbfcab
Migrate to blake2b_simd and blake2s_simd crates
...
The primary reason for migrating is that these crates provide APIs for
setting the personalisation string. This enables us to depend solely on
published crates, and thus publish our own crates.
The SIMD implementations are ported from libsodium.
Closes #67 .
5 years ago
Jack Grigg
f25a8a557e
Convert zip32 crate into a module of zcash_primitives
5 years ago
Jack Grigg
060977fe54
Return edwards::Point from sapling_ka_agree
...
This matches how sapling_ka_agree and kdf_sapling are defined in the
protocol spec. kdf_sapling also now takes ownership of dhsecret to
discourage use of the sapling_ka_agree output elsewhere.
5 years ago
Jack Grigg
2b1583d75f
Deduplicate Sapling key agreement logic
6 years ago
Jack Grigg
9ae5a9d624
Make loading of Sprout key optional in zcash_proofs API
6 years ago
Jack Grigg
2d43e3be7c
Move parameter-loading into zcash_proofs
6 years ago
Jack Grigg
09a20aacfe
Make zcash_primitives::JUBJUB the canonical instantiation of JubjubBls12
6 years ago
Jack Grigg
6b43b2d0d6
Refactor Sapling spendAuthSig creation into zcash_primitives::sapling
6 years ago
Jack Grigg
482bef87f0
Add ff and group crates to Cargo workspace
6 years ago
Jack Grigg
07955092f3
Update librustzcash crate to use ff crate
6 years ago
str4d
d5b6b9aa1e
Test note nullifier in key component test vectors
6 years ago
Jack Grigg
1a1c77536d
cargo fmt 1.31.1
6 years ago
Jack Grigg
e378229bdd
Move Sapling proving and binding signature into zcash_proofs crate
6 years ago
Jack Grigg
922ffe6002
Refactor Sapling proving and binding signature
6 years ago
Jack Grigg
e1841806c5
Move Sapling verification checks into zcash_proofs crate
6 years ago
Jack Grigg
eb2db2e667
Refactor Sapling verification checks
6 years ago
Jack Grigg
bbec1b841d
Use slices of native strings to pass parameter paths into Rust
...
On Windows, the slices are [u16] representing UTF-16. On all other
platforms, the slices are [u8] in the native filesystem encoding.
Closes #44 .
6 years ago
Jack Grigg
a9059c9372
Update workspace after pulling in external crates
6 years ago