-
Notifications
You must be signed in to change notification settings - Fork 293
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
dcrjson: Implement xpub import from other wallet and use for address generation #1217
Conversation
3fccd09
to
0f46229
Compare
dcrjson/dcrwalletextcmds.go
Outdated
@@ -248,6 +248,27 @@ func NewImportScriptCmd(hex string, rescan *bool, scanFrom *int) *ImportScriptCm | |||
return &ImportScriptCmd{hex, rescan, scanFrom} | |||
} | |||
|
|||
// CreateVotingAccountCmd is a type for handling custom marshaling and | |||
// unmarshaling of createvotingaccount JSON wallet extension commands. |
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.
JSON-RPC, and there's no need to comment that this is an "extension". We're a different API from bitcoin core at this point.
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.
Looks good overall.
func NewCreateVotingAccountCmd(name, pubKey string, childIndex *uint32) *CreateVotingAccountCmd { | ||
return &CreateVotingAccountCmd{name, pubKey, childIndex} | ||
} | ||
|
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.
Missing the function comment for godoc and consistency. It'll fail linters as well for that reason.
Looks good. Will approve after squash. |
methods help to import and drop xpub key to generate addresses on behalf of another wallet
9f478ec
to
569f703
Compare
rpcclient: expose the Node command for RPC API.
this is corresponding dcrd PR for task
decred/dcrwallet#990
decred/dcrwallet#1137