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

Generating non-deterministic addreses not supported by HD wallet in create_addresses method #112

Open
ghost opened this issue Jan 25, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 25, 2021

When I try to restore an address using a secret_spend_keys in create_addresses method I get the this error. How can I restore only an address in a wallet using a secret key? How can I restore my addres with my secret key?

{
  "jsonrpc": "2.0",
  "id": "0",
  "method": "create_addresses",
  "params": {"secret_spend_keys": ["MY_SECRET_KEY"] }
}

it returns

{
  "error": {
    "code": -32603,
    "data": {
    },
    "message": "Generating non-deterministic addreses not supported by HD wallet"
  },
  "id": "0",
  "jsonrpc": "2.0"
}
@ghost
Copy link
Author

ghost commented Jan 26, 2021

What is the meaning of this condition? WalletHD.cpp#L227
Is it not posibble to get the addres if "secret_spend_keys" is not empty? Is this ok or it is a bug?

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

No branches or pull requests

0 participants