-
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
Add UnifiedIncomingViewingKey
struct
#1245
Conversation
@nuttycom Why is |
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.
This looks great, it looks to me like the hdwallet AddressGenerationError and keeping the decode
and encode
convenience methods (to limit API breakage slightly) are the only blocking issues.
Also, add tests that verify against https://github.com/zcash/zcash-test-vectors/blob/master/test-vectors/rust/unified_incoming_viewing_keys.rs |
Oh, yeah, we should definitely remove that and have both of these publicly documented. |
Unblocking for others to review, since I don't have time at the moment. @daira?
Also update sqlite to utilize the new struct
Co-authored-by: Kris Nuttycombe <[email protected]>
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.
One minor naming fix, otherwise looks good!
04798e4
to
f3fb7db
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 4d9927b
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 b4171ca
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.
re-utACK 25045b3
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.
re-utACK 6102e83
@@ -206,7 +206,7 @@ impl Account { | |||
) -> Result<(UnifiedAddress, DiversifierIndex), AddressGenerationError> { |
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.
This method can be public. (It will need a changelog entry.)
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.
In general we would like to avoid encouraging users to use the default_address
method. In any case, this is not a change that should be made in this PR.
let _encoded_no_t = "uivk1020vq9j5zeqxh303sxa0zv2hn9wm9fev8x0p8yqxdwyzde9r4c90fcglc63usj0ycl2scy8zxuhtser0qrq356xfy8x3vyuxu7f6gas75svl9v9m3ctuazsu0ar8e8crtx7x6zgh4kw8xm3q4rlkpm9er2wefxhhf9pn547gpuz9vw27gsdp6c03nwlrxgzhr2g6xek0x8l5avrx9ue9lf032tr7kmhqf3nfdxg7ldfgx6yf09g"; | ||
|
||
// We test the full roundtrip only with the `sapling` and `orchard` features enabled, | ||
// because we will not generate these parts of the encoding if the UIVK does not have an |
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.
// because we will not generate these parts of the encoding if the UIVK does not have an | |
// because we will not generate these parts of the encoding if the UIVK does not have |
Non-blocking.
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
Consider adding ZIP-316 rev. 1 support to both UFVK and UIVK types.