-
Notifications
You must be signed in to change notification settings - Fork 427
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
question about ECkey with golang #227
Comments
private to pub uses the
|
Have you had any luck in sorting this out? I'm trying to sort out how to issue an address via Go as well but having little luck getting the private key generated to match the private key. I believe my logic of pulling, adding, hashing, and adding more bytes is all correct but the initial pub/priv key generation is where I'm struggling. |
@derekneely
|
@zychappy thank you for the replay. would you have a little more context on this with regards to how your generating those priv/public keys? I think that is ultimately where i'm getting stuck. And I think I understand what 'paddedAppend' is doing but that is a function of your own correct? Thank you again for your response and helping me work through this. |
@zychappy thank you so much for you guidance. I took what you gave and was able to work with it. I was so close in my initial implementation. The missing key (no pun intended), for me, was the 'NewLegacyKecak256'. Attached below is the code I wound up with lined up against your code (should anyone else run across this) along with a bunch of logging so you can see what is going on along the way. Thanks again.
|
@derekneely
|
a priv-pub keypairs generated with "crypto/elliptic" (golang) ,
but this private key in ECkeyDemo.java is used to produce a different pubkey
golang:
how can i fix it?
The text was updated successfully, but these errors were encountered: