-
Notifications
You must be signed in to change notification settings - Fork 118
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
Get addresses from transparent outputs in zcash_script #3148
Comments
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @gustavovalverde @jvff @oxarbitrage @teor2345 @upbqdn |
@teor2345 could you please add more details to what is required here? What I deduced is that we need to add a new function to |
I expanded the explanation and filled in some example code. I'm hoping we can return a |
Those two PRs mentioned above close this issue. (The |
Motivation
lightwalletd
uses thegetaddresstxids
,getaddressbalance
, andgetaddressutxos
RPCs.These RPCs return the transparent address that receives funds from a transparent output:
zcashd
ImplementationHere is how
zcashd
gets the output addresses usingout.scriptPubKey.AddressHash()
, and builds its address indexes:zcash_script
needs to return the same addresses for:Example Code
The new functions are similar to the SigOps functions in:
zcash/zcash@31bd2ba
Something like:
The text was updated successfully, but these errors were encountered: