Jack Grigg
33b0758f4f
Merge commit '56da51f3ce79fa4e6144af5f986d3bb9e0838590' into jubjub-subtree-update
2020-08-22 02:03:05 +01:00
Jack Grigg
56da51f3ce
Squashed 'jubjub/' changes from ec85333e..38d38af3
...
38d38af3 Merge pull request #32 from kevaundray/patch-1
af5598da Merge pull request #33 from ZcashFoundation/scalar
109ec40d Add public Scalar type alias for Fr
8e9c5fe6 typo in Fr.rs
8e9337ee Merge pull request #30 from rex4539/typos
5f4374c8 Fix typo
git-subtree-dir: jubjub
git-subtree-split: 38d38af3b792d2c55d815d214a7cd157dc8f71ad
2020-08-22 02:03:05 +01:00
Daira Hopwood
74abb88dce
Fix some comments.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-22 01:28:13 +01:00
Daira Hopwood
9e0041c497
Consistently use (u, v) for affine-ctEdwards coordinates.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-22 01:28:13 +01:00
Daira Hopwood
cfed47c176
Rename ValueCommitment.cm() to .commitment() (because it's confusing to have cm referring to both note and value commitments).
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-22 01:28:13 +01:00
Daira Hopwood
20c5096793
Fix remaining cases of cm -> cmu.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-22 01:28:13 +01:00
Daira Hopwood
ee6c21f95b
Scripted diff:
...
```
find . -not -path '*/.git/*' -a -type f -exec sed -i -e 's/hash_x/hash_u/g' {} \;
find . -not -path '*/.git/*' -a -type f -exec sed -i -e 's/hash_y/hash_v/g' {} \;
```
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-22 01:28:13 +01:00
str4d
984d31dc52
Merge pull request #272 from str4d/migrate-to-bls12_381-jubjub-crates
...
Migrate to bls12_381 and jubjub crates
2020-08-22 12:16:55 +12:00
Jack Grigg
24c61f9417
zcash_proofs: Remove unnecessary comment
...
Likely left over from the Sapling audit.
2020-08-21 18:37:51 +01:00
Jack Grigg
d15acf8acc
zcash_primitives: Rename Note::cm to Note::cmu
2020-08-21 18:35:04 +01:00
Jack Grigg
7a6223202e
zcash_primitives: Remove redundant TODO
...
The primitives are no longer generic over a curve; we hard-code Jubjub,
so we know that the smallest u-coordinate that is not on the curve is 1.
2020-08-21 18:27:09 +01:00
Jack Grigg
ca5bc6b0ae
zcash_primitives: Fix names of some test vector macros
2020-08-21 18:25:30 +01:00
Jack Grigg
ed3489a111
zcash_primitives: Explicitly type zero-initialised arrays
2020-08-21 18:22:29 +01:00
str4d
87475b9812
Merge pull request #250 from str4d/equihash-tests
...
Equihash tests
2020-08-20 23:03:33 +12:00
Jack Grigg
f735e8b83b
pairing: Remove BLS12-381 implementation
...
It is replaced by the bls12_381 crate.
2020-08-19 23:08:19 +01:00
Jack Grigg
b9a8e1e415
zcash_primitives: Remove Jubjub implementation
...
We now use the jubjub crate for this.
2020-08-19 23:08:19 +01:00
Jack Grigg
fdf06032e3
s/{pairing::bls12_381, zcash_primitives::jubjub}/{bls12_381, jubjub}
...
FINALLY.
2020-08-19 23:08:19 +01:00
Jack Grigg
315f00d6d4
zcash_proofs: Define generator constants using new crates
...
Includes tests to ensure that the new generator constants match the
current zcash_primitives::JUBJUB generators.
2020-08-19 23:08:19 +01:00
Jack Grigg
10c571f2cd
zcash_primitives: Define generator constants using new crates
...
Includes tests to ensure that the new generator constants match the
current zcash_primitives::JUBJUB generators.
2020-08-19 23:08:19 +01:00
str4d
544d593aa6
Merge pull request #245 from str4d/impl-group-pairing-traits
...
Implement group and pairing traits for bls12_381 and jubjub crates
2020-08-20 10:07:20 +12:00
Matthew Fors
b86558c63a
Decrypt sapling output description given OCK ( #271 )
...
* decrypt sapling outputs directly with ock
* make prf_ock public
* unit tests for ock sapling output decryption
2020-08-19 06:38:09 +12:00
str4d
3983243207
Merge pull request #247 from str4d/update-deps
...
Update dependencies
2020-08-19 02:01:38 +12:00
Jack Grigg
3200ffc256
group: GroupEncoding::Repr: Default is not required to be a valid element
2020-08-18 14:52:10 +01:00
Jack Grigg
3a72f081df
group: Exclude identity element from output of Group::random
2020-08-17 23:40:15 +01:00
Jack Grigg
4b4a4ee8dc
bls12_381: Implement pairing traits
2020-08-17 23:40:15 +01:00
Jack Grigg
eae5df0fb9
jubjub: Implement group traits
2020-08-17 23:40:15 +01:00
Jack Grigg
d11b60030f
bls12_381: Implement group traits
2020-08-17 23:40:15 +01:00
Jack Grigg
45a7861720
zcash_primitives: fpe 0.3
2020-08-16 11:16:23 +01:00
Jack Grigg
7f9ee9db21
ff_derive: addchain 0.2
2020-08-15 00:40:20 +01:00
Jack Grigg
3cc7d2b89a
Remove unused import
2020-08-14 17:44:17 +01:00
Jack Grigg
e210a80350
zcash_proofs: directories 3
2020-08-14 17:44:17 +01:00
Jack Grigg
f8e74af56c
zcash_history: quickcheck 0.9
2020-08-14 17:44:17 +01:00
Jack Grigg
751ddad17d
zcash_primitives: crypto_api_chachapoly 0.4
2020-08-14 17:44:17 +01:00
Jack Grigg
9ced89a1b0
zcash_primitives: secp256k1 0.17
2020-08-14 17:44:17 +01:00
Jack Grigg
bc8a839c61
Migrate to hex 0.4
2020-08-14 17:44:17 +01:00
Jack Grigg
5fe2d6a57c
zcash_primitives: ripemd160 0.9 and sha2 0.9
2020-08-14 17:44:17 +01:00
Jack Grigg
0db22b1838
bellman: Migrate to bit-vec 0.6
2020-08-14 17:44:17 +01:00
Jack Grigg
af9f5f2cf6
bellman: Migrate to sha2 0.9
2020-08-14 17:44:17 +01:00
str4d
964532ec9f
Merge pull request #268 from str4d/refactor-fixes
...
Refactor fixes
2020-08-14 06:41:59 +12:00
Jack Grigg
7eaf6493e8
pairing: Require G1 and G2 to be PrimeCurve
...
Pairings require that G1, G2, and GT are groups of prime order.
2020-08-13 18:17:29 +01:00
Jack Grigg
a6f2172b20
bls12_381: Replace Choice::unwrap_u8 with bool::from
...
The latter is clearer and the intended route for un-CT-ing Choices.
2020-08-13 18:17:29 +01:00
Jack Grigg
7a2235ad03
jubjub: Replace Choice::unwrap_u8 with bool::from
...
The latter is clearer and the intended route for un-CT-ing Choices.
2020-08-13 18:17:27 +01:00
str4d
6b1281e8e0
Merge pull request #266 from str4d/group-trait-updates
...
Updates to group traits
2020-08-13 11:11:04 +12:00
Jack Grigg
9e9bec826c
group: Fix documentation of CofactorGroup::clear_cofactor
...
Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2020-08-13 00:09:27 +01:00
str4d
6831d5991a
Merge pull request #267 from str4d/bls12_381-subtree-update
...
Update bls12_381 subtree
2020-08-13 10:56:35 +12:00
Jack Grigg
636db2aca3
Merge commit 'a5a6f57c5abcf47387d1c9e1ea2ee8ab01925734' into bls12_381-subtree-update
2020-08-12 18:25:52 +01:00
Jack Grigg
a5a6f57c5a
Squashed 'bls12_381/' changes from 1a2e9f3..d0ea5d4
...
d0ea5d4 Merge pull request #32 from narodnik/sum
24aa1a4
Merge pull request #31 from zkcrypto/release-0.1.1
fb7c4cb add cargo fmt for sum traits (code we added)
ccef392 add sum iterator implementations
82e14ed
Release 0.1.1
a3608d4
Put endo optimizations behind endo crate feature.
e32494e
Merge pull request #18 from mmaker/master
948b199
Fix typo in comment.
b3d1fe1
Merge pull request #27 from rex4539/fix-typos
253f681
Merge pull request #25 from mmaker/fix/sage-script
c55f88f
Fix typos
14b5e16
No need to define a polynomial ring in notes/design.rs.
c9d17f6
Make sage script in notes/design.rs work with sage 3.9.
af9ec4d
Minor changes to comments documenting `clear_cofactor`
7dc6f31
Add clear_cofactor.
git-subtree-dir: bls12_381
git-subtree-split: d0ea5d4958cae999dea1800207704171aa07a9ef
2020-08-12 18:25:52 +01:00
Daira Hopwood
81c3b54b24
Merge pull request #258 from therealyingtong/zip212-esk-plaintext-impl
...
ZIP212 implementation
2020-08-12 10:19:08 +01:00
str4d
0e9b6e6d73
Merge pull request #158 from zcash/codecov-tweaks
...
Code coverage tweaks
2020-08-12 20:11:42 +12:00
Jack Grigg
418cba0e85
group: Document that Group::random is non-deterministic
2020-08-12 08:18:45 +01:00