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

Add support for zcash_script_transparent_output_address() #29

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

conradoplg
Copy link
Contributor

@conradoplg conradoplg commented Feb 25, 2022

For ZcashFoundation/zebra#3148 we need a function to get an address from an output.

This PR:

(We don't need to add a new function since bindgen automatically creates it, and zcash_script is a thin wrapper)

This uses unsafe (though it's fairly straightforward) so it would be nice to have two reviews.

@conradoplg conradoplg requested review from jvff and teor2345 February 25, 2022 19:55
@conradoplg conradoplg force-pushed the get-address-from-output branch 2 times, most recently from f56a5bb to f2404ee Compare February 28, 2022 17:21
@conradoplg conradoplg marked this pull request as draft February 28, 2022 17:23
@conradoplg
Copy link
Contributor Author

Back to draft until recent changes in ZcashFoundation/zcashd#2 are reviewed

@conradoplg
Copy link
Contributor Author

Ready again for review!

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 for all the tests!

@conradoplg
Copy link
Contributor Author

I realized the unsafe is just in a test, so a single review should be fine. I'll merge this

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.

2 participants