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

dcrjson: Implement xpub import from other wallet and use for address generation #1217

Merged
merged 1 commit into from
May 24, 2018

Conversation

kLkA
Copy link
Contributor

@kLkA kLkA commented May 23, 2018

this is corresponding dcrd PR for task
decred/dcrwallet#990
decred/dcrwallet#1137

@kLkA kLkA force-pushed the xpub_for_ticket_purchase branch from 3fccd09 to 0f46229 Compare May 24, 2018 18:22
@@ -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.
Copy link
Member

@jrick jrick May 24, 2018

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.

Copy link
Member

@davecgh davecgh left a 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}
}

Copy link
Member

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.

@davecgh
Copy link
Member

davecgh commented May 24, 2018

Looks good. Will approve after squash.

methods help to import and drop xpub key to generate
addresses on behalf of another wallet
@kLkA kLkA force-pushed the xpub_for_ticket_purchase branch from 9f478ec to 569f703 Compare May 24, 2018 19:15
@davecgh davecgh changed the title Implement xpub import from other wallet and use for address generation dcrjson: Implement xpub import from other wallet and use for address generation May 24, 2018
@davecgh davecgh merged commit 569f703 into decred:master May 24, 2018
JFixby pushed a commit to JFixby/dcrd that referenced this pull request Oct 21, 2018
rpcclient: expose the Node command for RPC API.
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.

3 participants