This repository has been archived by the owner on May 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Incorrect PublicKey and Address for Bitcoin #18
Comments
Hey @Ikloo thanks for reporting. Fixing. |
alejandro-isaza
added a commit
that referenced
this issue
Aug 3, 2018
alejandro-isaza
added a commit
that referenced
this issue
Aug 3, 2018
@alejandro-isaza awesome, thank you! |
@alejandro-isaza but
Problem there: |
Private key is always 32 bytes. How are you running into this problem? |
@alejandro-isaza Sorry, I misunderstood this logic. 😅 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
I try to create HDWallet with private and public keys
Code I use:
But
publicKey.address.description
return incorrect address, I researched with other services for validating that and came to the conclusion that publicKey is incorrect.Check please publicKey data generation. I think the problem is somewhere at data compression (33 bytes or 65 bytes length)
If change method at file
Crypto.m
all works as expected for BTC, but incorrect for ETH:(Use 33 bytes length instead 65 and
ecdsa_get_public_key33
insteadecdsa_get_public_key65
)Please fix this or add examples of correct library work(ex. wallet creation and etc.). Maybe I make something incorrect.
Thank!
The text was updated successfully, but these errors were encountered: