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

Technical question: how to sign a Tx when I only have the XRP 32-byte private key #801

Open
loupiote opened this issue Feb 2, 2025 · 8 comments

Comments

@loupiote
Copy link

loupiote commented Feb 2, 2025

I just have the 32-byte value that is the private key for an XRP address (that has a balance).

Is there a way to create a wallet object that will allow me to do a "send" transaction from the XRP address corresponding to this private key?

I looked at the wallet API and could not find an obvious answer...

@loupiote loupiote changed the title Technical question Technical question about how to sign a Tx when I only have the XRP 32-byte private key Feb 2, 2025
@loupiote loupiote changed the title Technical question about how to sign a Tx when I only have the XRP 32-byte private key Technical question: how to sign a Tx when I only have the XRP 32-byte private key Feb 2, 2025
@XRPLF XRPLF deleted a comment from loupiote Feb 3, 2025
@ckeshava
Copy link
Collaborator

May I ask how you generated the public-private keys? If you used the xrpl.js (or) xrpl-py client library, then this task becomes easier.

The Wallet class accepts the public, private key pair in its constructor:

def __init__(

Furthermore, you can specify seed, master_key_pair options in the constructor.

Please read the documentation of Wallet class and Cryptographic-key-pairs in XRPL to securely handle your private key material.

@loupiote
Copy link
Author

loupiote commented Feb 11, 2025

Thanks for your comments

May I ask how you generated the public-private keys?

It is really completely irrelevant. In that particular case, it was derived from a bip39 seed phrase that has been since lost.

So basically we have a 32-byte XRP private key, that's all we have.

The Wallet class accepts the public, private key pair in its constructor:

So I would have calculate the XRP public key (not an issue, as it can be calculated from the XRP private key) and modify the code. to create a "wallet" from the private key.

It would be really nice to have an option to create an XRP wallet from a 32-byte private key (without having to modify the code).

So maybe this could be seen as a feature request.

@ckeshava
Copy link
Collaborator

How are you generating the public-key from the private key? Can you point me to the documentation which details this process?

This issue hasn't been faced by many users. Unfortunately, we cannot prioritize it in the near future. However, if you submit a PR, we can review it.

@mvadari
Copy link
Collaborator

mvadari commented Feb 11, 2025

I recommend looking at the raw signing functions at https://xrpl-py.readthedocs.io/en/stable/source/xrpl.core.keypairs.html

@loupiote
Copy link
Author

loupiote commented Feb 12, 2025

How are you generating the public-key from the private key? Can you point me to the documentation which details this process?

This issue hasn't been faced by many users. Unfortunately, we cannot prioritize it in the near future. However, if you submit a PR, we can review it.

you can just ask CharGPT:

https://chatgpt.com/share/67ad8c18-a398-8013-a494-f4242b56ba79

@ckeshava
Copy link
Collaborator

@loupiote

How are you generating the public-key from the private key? Can you point me to the documentation which details this process?
This issue hasn't been faced by many users. Unfortunately, we cannot prioritize it in the near future. However, if you submit a PR, we can review it.

you can just ask CharGPT:

https://chatgpt.com/c/67abf307-7f08-8013-99d8-deb023fc8570

I'm not able to access that link. I get this error message from ChatGPT: Unable to load conversation 67abf307-7f08-8013-99d8-deb023fc8570

@loupiote
Copy link
Author

@loupiote

How are you generating the public-key from the private key? Can you point me to the documentation which details this process?
This issue hasn't been faced by many users. Unfortunately, we cannot prioritize it in the near future. However, if you submit a PR, we can review it.

you can just ask CharGPT:
https://chatgpt.com/c/67abf307-7f08-8013-99d8-deb023fc8570

I'm not able to access that link. I get this error message from ChatGPT: Unable to load conversation 67abf307-7f08-8013-99d8-deb023fc8570

this link should work:

https://chatgpt.com/share/67ad8c18-a398-8013-a494-f4242b56ba79

@ckeshava ckeshava reopened this Feb 24, 2025
@ckeshava
Copy link
Collaborator

@loupiote Let me know if you have any further questions regarding this issue

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

4 participants
@mvadari @ckeshava @loupiote and others