Commit Graph

223 Commits

Author SHA1 Message Date
Kris Nuttycombe d36cf0371c Remove unused type parameter from `SaplingBuilder::add_output` 2023-12-19 20:37:52 -07:00
str4d fb4856ebfa
Merge pull request #113 from nuttycom/builder_function
Add a Sapling bundle builder function.
2023-12-20 01:24:57 +00:00
Kris Nuttycombe 39c06e7c7a Add a public bundle construction function & use it in the builder. 2023-12-19 17:43:25 -07:00
Kris Nuttycombe 6202084b84
Merge pull request #109 from zcash/builder_explicit_padding
Builder explicit padding
2023-12-15 10:29:37 -07:00
Kris Nuttycombe 2abe3ea8e2 Apply comments from code review.
Co-authored-by: str4d <jack@electriccoin.co>
2023-12-15 10:10:38 -07:00
Kris Nuttycombe b202452c63 Add `builder::BundleType` for explicit control over output padding. 2023-12-15 09:30:32 -07:00
Kris Nuttycombe b0a8838f37
Merge pull request #111 from nuttycom/api_cleanup
Various API cleanups
2023-12-14 13:14:29 -07:00
Kris Nuttycombe 30f31b166c
Merge pull request #112 from zcash/add-missing-feature-flag
Add missing feature flag
2023-12-14 09:54:56 -07:00
Jack Grigg 5267960a76 Add missing feature flag 2023-12-14 13:19:05 +00:00
Kris Nuttycombe bd8f55dbb5 Move an expectation to the site where its invariant is enforced. 2023-12-13 11:32:51 -07:00
str4d dfc24428d0
Merge pull request #110 from zcash/changelog-from-refactor
Add a changelog
2023-12-12 20:05:19 +00:00
Jack Grigg 0ebb750f6a Use full paths for changelog types that remain in `zcash_primitives` 2023-12-12 19:54:27 +00:00
Jack Grigg 146bc59455 Add a changelog
Extracted from the `zcash_primitives` changelog. We only include changes
relative to the `zcash_primitives::sapling` module as of 0.13.0; prior
changes never corresponded to published `sapling-crypto` releases.

Source: https://github.com/zcash/librustzcash
Rev: zcash/librustzcash@6acc64e61c
2023-12-12 18:28:52 +00:00
str4d bea0286f53
Merge pull request #108 from zcash/crate-maintenance
Crate maintenance
2023-12-11 20:00:19 +00:00
Jack Grigg 9adc70dcde Slightly improve crate-level documentation 2023-12-11 19:54:20 +00:00
Jack Grigg 37e574d0aa Fix intra-doc links 2023-12-11 18:52:19 +00:00
Jack Grigg 16c64b4954 Deny unsafe code 2023-12-11 18:45:24 +00:00
Jack Grigg 51cded6900 Move Spend circuit benchmark into benchmarks 2023-12-11 18:45:24 +00:00
Jack Grigg 34cd43a8f2 Fix Pedersen hash benchmark 2023-12-11 18:45:24 +00:00
Jack Grigg b955ff7c7e Fix Spend circuit benchmark 2023-12-11 18:45:24 +00:00
Jack Grigg 1a42fe1c83 Fix dependency feature flags 2023-12-11 18:45:24 +00:00
Jack Grigg 283830bdf4 Set up CI 2023-12-11 18:45:24 +00:00
str4d a1194fe800
Merge pull request #107 from zcash/full-refactor
Bring in refactor of the crate
2023-12-11 17:52:40 +00:00
Jack Grigg df6681c104 Bring in refactor of the crate
This refactor was performed over several years. The crate was previously
focused on the Sapling circuit; it now encompasses the Sapling protocol,
and has types better suited to use in non-circuit contexts. Many of the
circuit helper types were moved into the `bellman` crate, and the Sprout
circuit was left in `zcash_primitives`.

Source: https://github.com/zcash/librustzcash
Rev: zcash/librustzcash@6acc64e61c
2023-12-11 17:17:00 +00:00
Sean Bowe 49017b4e05
Remove outdated notice in README. 2018-11-26 16:15:36 -07:00
ebfull 21084bde20
Merge pull request #81 from ebfull/must_use
Add must_use to operations over Edwards points
2018-07-30 18:40:16 -06:00
Sean Bowe b4d41b689c
Add must_use to operations over Edwards/Montgomery points. 2018-07-30 18:37:01 -06:00
ebfull b70d6e66fc
Merge pull request #79 from ebfull/pedersen-hash-performance
Improve Pedersen hash performance
2018-07-30 18:29:14 -06:00
ebfull 99c03c5708
Merge pull request #80 from ebfull/cofactor-signature-checking
Cofactor signature checking
2018-07-30 11:50:26 -06:00
Sean Bowe 95b498af33
Implement specialized doubling formula for extended twisted edwards coordinates. 2018-07-30 07:30:40 -06:00
Sean Bowe 821810cd82
Change pedersen hash outside the circuit to use window table lookups. 2018-07-30 07:30:40 -06:00
Sean Bowe 9cb8accf09
Fix nits 2018-07-30 07:29:23 -06:00
Sean Bowe a57d2773ab
Add demonstration implementation of batch verification. 2018-07-27 10:54:21 -06:00
Sean Bowe cae9715a8e
Change signature verification equation to permit batch verification. 2018-07-27 10:37:26 -06:00
Sean Bowe 3e43cae526
Add test that torsion doesn't affect signature verification. 2018-07-27 10:28:08 -06:00
ebfull c2862a4382
Merge pull request #78 from gtank/make-privatekey-public
redjubjub: make PrivateKey internal scalar public
2018-07-12 14:01:11 -06:00
George Tankersley df7bfce0be redjubjub: make PrivateKey internal scalar public 2018-07-12 19:58:32 +00:00
ebfull 6abfcca25a
Merge pull request #74 from ebfull/ivk-pub
Make ivk pub
2018-05-18 12:45:38 -06:00
Sean Bowe 89f47ef5c2
Make ivk pub 2018-05-18 12:42:26 -06:00
ebfull eb409fa3cf
Merge pull request #72 from ebfull/little-endian
Switch to little endian
2018-05-17 14:03:43 -06:00
Sean Bowe 2ff318eecb
Use little endian for everything in Sapling. 2018-05-17 13:01:31 -06:00
Sean Bowe f491e02b56
Correctly interpret BLAKE2s inputs and outputs as little endian. 2018-05-17 13:01:31 -06:00
Sean Bowe 87c62e2248
Update to the latest pairing crate version. 2018-05-17 13:01:29 -06:00
ebfull 7beeb52730
Merge pull request #69 from ebfull/make-util-pub
Make util module public
2018-05-07 17:47:31 -06:00
Sean Bowe 36cd38e239
Make util module public. 2018-05-07 17:47:04 -06:00
ebfull 3b8246f3eb
Merge pull request #68 from ebfull/redjubjub-final-work
Make PublicKey inner Point public so that we can use it during zk-SNARK verification
2018-05-07 14:21:49 -06:00
Sean Bowe 5687acfaf8
Make PublicKey inner Point public so that we can use it during zk-SNARK verification. 2018-05-01 15:23:34 -06:00
ebfull 347666705c
Merge pull request #67 from str4d/redjubjub-serialisation
RedJubjub serialisation
2018-04-30 08:50:03 -06:00
Jack Grigg b27dc2914b
Remove redundant signature check
E::Fs guarantees its representation is in the field, implicitly enforcing
that S < order(G).
2018-04-30 13:55:41 +01:00
ebfull 6e08a5a22b
Merge pull request #66 from str4d/fix-spend-nf-comment
Fix comment
2018-04-29 13:08:10 -06:00