Commit Graph

240 Commits

Author SHA1 Message Date
Jack Grigg b76e7e2509 sapling-crypto 0.1.0 2024-01-26 19:30:42 +00:00
str4d a41c00227d
Merge pull request #119 from zcash/fix-doc-comments
Replace Orchard references in `Anchor` doc comments
2024-01-26 05:26:06 +00:00
Jack Grigg 8505af6e48 Replace Orchard references in `Anchor` doc comments 2024-01-26 03:01:16 +00:00
str4d b693e2e479
Merge pull request #117 from rex4539/typos
Fix typos
2024-01-19 16:43:20 +00:00
Dimitris Apostolou 296868d32d
Fix typos 2024-01-05 12:53:54 +02:00
str4d 4ec6a48daa
Merge pull request #116 from zcash/feature-flag-updates
Feature flag updates
2024-01-03 19:40:26 +00:00
Jack Grigg 49dfc22fde Enable `multicore` feature flag by default
This matches the `orchard` crate.
2024-01-03 18:22:51 +00:00
Jack Grigg 314930e92d Document feature flags 2024-01-03 18:22:44 +00:00
str4d 71711b9e4b
Merge pull request #114 from zcash/sapling_builder_cleanup
A few minor cleanups for consistency with the `orchard` builder API
2024-01-02 19:21:12 +00:00
Kris Nuttycombe 93d369fd0a Apply suggestions from code review
Co-authored-by: str4d <jack@electriccoin.co>
2024-01-02 12:11:51 -07:00
Kris Nuttycombe a3ce3b7628 Make `Bundle::try_map_authorization` work the same as `Bundle::map_authorization` 2024-01-02 12:11:36 -07:00
Kris Nuttycombe ef43105017 Strengthen bounds on `map_authorization` arguments. 2024-01-02 12:11:21 -07:00
Kris Nuttycombe 5c84c14786 Add a dummy spend to the bundle if the bundle is required to be present. 2024-01-02 12:11:05 -07:00
Kris Nuttycombe 6f02b62c8e Add the capability to generate dummy spends (internal to the Builder) 2024-01-02 12:09:50 -07:00
Kris Nuttycombe 954a27ee9b Add `Anchor` type for symmetry with Orchard. 2024-01-02 12:09:34 -07:00
Kris Nuttycombe 43d4133af4 Modify `BundleType` to exclude the anchor & allow no bundle to be produced.
This adds a flag to `BundleType` that, when set, requires a dummy
outputs to be produced even if no outputs are added to the builder, and
when unset results in standard padding.
2024-01-02 12:09:32 -07:00
Kris Nuttycombe 485966bc81 Rename `SaplingBuilder` to `Builder` for consitency with the Orchard API. 2023-12-19 20:39:56 -07:00
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