-
Notifications
You must be signed in to change notification settings - Fork 251
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
Generalize Sapling note encryption to allow reuse with Orchard notes. #358
Conversation
b39c005
to
c03de6c
Compare
Codecov Report
@@ Coverage Diff @@
## master #358 +/- ##
==========================================
- Coverage 64.83% 64.46% -0.38%
==========================================
Files 73 73
Lines 7161 7232 +71
==========================================
+ Hits 4643 4662 +19
- Misses 2518 2570 +52
Continue to review full report at Codecov.
|
e68d57b
to
2b1362b
Compare
bd378d9
to
3805a6d
Compare
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 mod comments.
rand_core = "0.5.1" | ||
|
||
[dev-dependencies] | ||
zcash_primitives = { version = "0.5", path = "../../zcash_primitives" } |
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.
These not-quite-circular dependencies make publishing a pain. I dealt with it for zcash_client_backend <-> zcash_client_sqlite
for the 0.5 release by specifying a version range per rust-lang/cargo#4242 but it would be good to formalize this in the repo. Non-blocking, we can sort this out later.
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.
With the zcash_client_backend issue, I'm planning to address that by making the tests just run against the in-memory backend once that's complete, and move the sqlite tests back to the sqlite crate. Here, I'm not sure what the best approach is; I guess we could move these tests to zcash_primitives and implement a set of tests here that just relies upon the note-encryption functionality without using Sapling.
This commit introduces a `Domain` trait which defines the types and operations that are shared between Sapling and Orchard note encryption and decryption processes.
Co-authored-by: str4d <[email protected]>
ba9718b
to
879eea8
Compare
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.
Flushing comments.
b74d9d1
to
f34e878
Compare
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 12cb826
0763d2b
to
4c8ffd7
Compare
4c8ffd7
to
00d04de
Compare
2fee78d
to
b2b3efd
Compare
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 modulo one remaining comment (now resolved).
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 dc0f6e7
This builds upon #348, #351, and #357.