-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add APIs to prepare ivk and epk and implement them for Sapling #633
Conversation
ec986bf
to
d0df35c
Compare
Codecov ReportBase: 75.92% // Head: 50.76% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #633 +/- ##
===========================================
- Coverage 75.92% 50.76% -25.16%
===========================================
Files 100 99 -1
Lines 10978 9737 -1241
===========================================
- Hits 8335 4943 -3392
- Misses 2643 4794 +2151
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
badb956
to
6853ce0
Compare
Force-pushed to remove some unnecessary patch directives and clean up the history. |
d2d299f
to
ce178ab
Compare
Force-pushed to migrate to using zkcrypto/group#36. Compilation is expected to fail because of an issue in |
ce178ab
to
71cc74d
Compare
Force-pushed with a fix to a test. The compilation issue will be addressed by rebasing this PR on |
54c817f
to
1b49d6d
Compare
1b49d6d
to
1c967a5
Compare
Force-pushed to update the benchmarks for the API changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK. (I'm the original PR author so I can't Approve.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually please hold up on merging this; I want to add a benchmark for the multiple-ivk, multiple-epk case.
Done.
1c967a5
to
7790f12
Compare
7790f12
to
2279915
Compare
Force-pushed to address @daira's comment. |
…puts). Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Co-authored-by: Jack Grigg <jack@electriccoin.co> Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2279915
to
c49d1f9
Compare
Co-authored-by: Jack Grigg <jack@electriccoin.co> Signed-off-by: Daira Hopwood <daira@jacaranda.org>
c49d1f9
to
20e869f
Compare
Benchmark added. It is added as the first commit, so that it's possible to roll back to that one to get a "before" benchmark. zcash/orchard#357 was updated to reference the second commit with the API changes (515b0a4), and then merged. Finally the last commit in this PR was updated to specify the merge commit for zcash/orchard#357 in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 20e869f
@@ -21,4 +21,5 @@ codegen-units = 1 | |||
[patch.crates-io] | |||
zcash_encoding = { path = "components/zcash_encoding" } | |||
zcash_note_encryption = { path = "components/zcash_note_encryption" } | |||
orchard = { git = "https://github.com/zcash/orchard.git", rev = "33f1c1141e50adb68715f3359bd75378b4756cca" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that this is the merge commit for zcash/orchard#357.
As of #633, `SaplingDomain::IncomingViewingKey` now allocates memory internally, and this memory persists as long as the `BatchRunner` is alive. Now that we have decoupled the measurement of heap usage for batch tasks from their internals, we can add bounds to all of the generic parameters of `Batch` to enable correctly measuring their actual heap usage. We also add `DynamicUsage` impls for a bunch of `zcash_primitives` types that will be used with `BatchRunner` (or its equivalent implementation in `zcashd`) by callers.
As of zcash/librustzcash#633, `SaplingDomain::IncomingViewingKey` now allocates memory internally, and this memory persists as long as the `BatchRunner` is alive. Now that we have decoupled the measurement of heap usage for batch tasks from their internals, we can add bounds to all of the generic parameters of `Batch` to enable correctly measuring their actual heap usage. Ported from zcash/librustzcash@913aa0a.
No description provided.