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

what format is public key? #16

Open
cloudkeychain opened this issue Jul 2, 2022 · 1 comment
Open

what format is public key? #16

cloudkeychain opened this issue Jul 2, 2022 · 1 comment

Comments

@cloudkeychain
Copy link

What format is the public key in the sample input file?

@pikachunakapika
Copy link

pikachunakapika commented Jul 2, 2022

Format is hex(x)[2:].zfill(64)+hex(y)[2:].zfill(64):

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

Where

X = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Y = ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

No leading 03 or 04 from bitcoin encoded format.
Make sure you leftpad X, Y with zeros to fill 64 characters

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

2 participants