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

get public spend and view keys from wallet rpc #9363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

woodser
Copy link
Contributor

@woodser woodser commented Jun 11, 2024

No description provided.

@@ -2146,6 +2146,21 @@ namespace tools
epee::wipeable_string key = epee::to_hex::wipeable_string(m_wallet->get_account().get_keys().m_spend_secret_key);
res.key = std::string(key.data(), key.size());
}
else if(req.key_type.compare("public_view_key") == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can compute both of these public keys from the secret keys. I guess these new choices prevent copying of secret material over RPC ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clients might want the public keys, but wouldn't be expected to compute them themselves. monero-wallet-rpc doesn't provide a conversion utility that I know of, hence these new calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants