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

I have a question about the secp256k1 algorithm #424

Open
monwazchh opened this issue Nov 1, 2024 · 4 comments
Open

I have a question about the secp256k1 algorithm #424

monwazchh opened this issue Nov 1, 2024 · 4 comments

Comments

@monwazchh
Copy link

Hi there. i am trying to convert a private key to public key using only GPU power. i have already done this with some code running on CPU. but this is insufficient for me. Because CPU codes have a processing power of around 640 thousand per second. So I need an algorithm that only runs on the GPU.
I'm wondering, in this project, does the public key generation from the private key work on the GPU or on the CPU?
Can anyone help me with this? I don't know much about C++.

@wisammechano
Copy link

This code repo does what you are referring to both on CPU and GPU. Relevant code for this on GPU can be found in cudaMath part of the project.

@monwazchh
Copy link
Author

This code repo does what you are referring to both on CPU and GPU. Relevant code for this on GPU can be found in cudaMath part of the project.

Obviously I had already found the right codes by rummaging through the folders. However, I couldn't figure out how to use them. When I examined the project step by step, I saw that the public key generation from the private key takes place entirely on the CPU. However, there are GPU codes for public key generation in the project files. I am very confused.
The only thing I need is an algorithm that runs only on the GPU and will convert any private key into a public key.

Can you help me with this?
Normally I know C# but this project is in C++ and it is very confusing for me.

@nassssro0444
Copy link

This code repo does what you are referring to both on CPU and GPU. Relevant code for this on GPU can be found in cudaMath part of the project.

Obviously I had already found the right codes by rummaging through the folders. However, I couldn't figure out how to use them. When I examined the project step by step, I saw that the public key generation from the private key takes place entirely on the CPU. However, there are GPU codes for public key generation in the project files. I am very confused. The only thing I need is an algorithm that runs only on the GPU and will convert any private key into a public key.

Can you help me with this? Normally I know C# but this project is in C++ and it is very confusing for me.

i m using an amd gpu and i had the same problem plz if u find any solution notify me

@monwazchh
Copy link
Author

This code repo does what you are referring to both on CPU and GPU. Relevant code for this on GPU can be found in cudaMath part of the project.

Obviously I had already found the right codes by rummaging through the folders. However, I couldn't figure out how to use them. When I examined the project step by step, I saw that the public key generation from the private key takes place entirely on the CPU. However, there are GPU codes for public key generation in the project files. I am very confused. The only thing I need is an algorithm that runs only on the GPU and will convert any private key into a public key.
Can you help me with this? Normally I know C# but this project is in C++ and it is very confusing for me.

i m using an amd gpu and i had the same problem plz if u find any solution notify me

Of course, if I find a solution, I will let you know here. Please let me know if you find a solution.

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

3 participants