Skip to content
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

feat: add CachedFfiTransaction::transparent_output_address() #3668

Closed
wants to merge 8 commits into from

Conversation

conradoplg
Copy link
Collaborator

Motivation

For lightwalletd support we need to be able to get an address from a transparent output. This requires changing zcash_script which was done in ZcashFoundation/zcash_script#29 and exposing the functionality in zebra_script, which is this ticket.

Specifications

Designs

Solution

Add a CachedFfiTransaction::transparent_output_address() method.

Closes #3149

Review

Not urgent but blocks four other tasks from the lightwalletd epic.

This is a draft since it's blocked on ZcashFoundation/zcash_script#29 merging. But it should be complete and can be reviewed if desired.

Anyone can review, but whoever reviews ZcashFoundation/zcash_script#29 will probably be able to review this quickly.

Reviewer Checklist

  • Code implements Specs and Designs
  • Tests for Expected Behaviour
  • Tests for Errors

Follow Up Work

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #3668 (5338bc1) into main (6b31f5b) will increase coverage by 0.01%.
The diff coverage is 89.33%.

@@            Coverage Diff             @@
##             main    #3668      +/-   ##
==========================================
+ Coverage   80.05%   80.07%   +0.01%     
==========================================
  Files         290      290              
  Lines       32795    32866      +71     
==========================================
+ Hits        26255    26318      +63     
- Misses       6540     6548       +8     

@teor2345

This comment was marked as resolved.

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I just have some minor suggested tweaks.

teor2345
teor2345 previously approved these changes Mar 2, 2022
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@conradoplg
Copy link
Collaborator Author

Still WIP because it may be no longer needed, see Discord. I'll confirm it

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving these changes in case we need them.

@conradoplg
Copy link
Collaborator Author

I'll close this for now, I haven't yet confirmed if zcash_primitives will work for us but that's pretty likely. I'll leave the branch and we can reopen this if needed.

@conradoplg conradoplg closed this Mar 7, 2022
@teor2345 teor2345 deleted the get-address-from-output branch March 21, 2022 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get addresses from transparent outputs
2 participants