Commit Graph

256 Commits

Author SHA1 Message Date
Kris Nuttycombe d23547f0d3
Merge pull request #135 from zcash/release-0.1.3
sapling-crypto release version 0.1.3
2024-03-24 20:33:13 -06:00
Kris Nuttycombe 14c042eda9 sapling-crypto release version 0.1.3 2024-03-24 19:19:30 -06:00
Kris Nuttycombe 54fc7d3d9c
Merge pull request #134 from nuttycom/nullifier_ord
Derive `{PartialOrd, Ord}` for `note::Nullifier`
2024-03-20 13:40:08 -06:00
Kris Nuttycombe 827534329f Derive `{PartialOrd, Ord}` for `note::Nullifier` 2024-03-20 11:39:06 -06:00
Kris Nuttycombe 22412ae076
Merge pull request #131 from nuttycom/node_random_dist
Add `Node::random` and `Distribution<Node> for Standard` for testing.
2024-03-18 08:53:34 -06:00
Kris Nuttycombe dee71eee99 Add `Node::random` and `Distribution<Node> for Standard` for testing. 2024-03-16 08:54:13 -06:00
str4d 2122dbed71
Merge pull request #129 from zcash/release-0.1.2
Release 0.1.2
2024-03-08 20:07:09 +00:00
Jack Grigg 291a1ac1c2 sapling-crypto 0.1.2 2024-03-08 19:57:52 +00:00
Jack Grigg b221f35f15 Add tests for `IncomingViewingKey` encoding 2024-03-08 19:57:34 +00:00
str4d f2219462ae
Merge pull request #128 from nuttycom/sapling_divk
Add `DiversifiableIncomingViewingKey`
2024-03-08 19:49:29 +00:00
Kris Nuttycombe 48ba51dc78 Add diversifiable `IncomingViewingKey` type. 2024-03-08 12:45:34 -07:00
str4d 953d28204f
Merge pull request #126 from zcash/release-0.1.1
Release 0.1.1
2024-02-15 19:58:23 +00:00
Jack Grigg 4efe3334ee sapling-crypto 0.1.1 2024-02-15 19:42:19 +00:00
Kris Nuttycombe 346a650741
Merge pull request #124 from zcash/121-pad-outputs-if-spends
Fix regression in output padding
2024-02-15 12:36:34 -07:00
Jack Grigg c7d5913a90 Fix regression in output padding
Closes zcash/sapling-crypto#121.
2024-02-12 20:18:01 +00:00
str4d ab3aea55c0
Merge pull request #120 from zcash/release-0.1.0
Release 0.1.0
2024-01-26 20:50:18 +00:00
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