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

private key should be non-hexed #28

Closed
sarlongda opened this issue Jul 30, 2020 · 3 comments
Closed

private key should be non-hexed #28

sarlongda opened this issue Jul 30, 2020 · 3 comments

Comments

@sarlongda
Copy link

When I use sign function you said the private key should be hexed private key with zero prefixed.
But If I input "0x....." private key, then this returns an error

@sc0Vu
Copy link
Member

sc0Vu commented Sep 21, 2020

@sarlongda

Is this issue related to #27?

@sc0Vu
Copy link
Member

sc0Vu commented Nov 15, 2020

That's weird, the 0x prefixed test passed.

After read through elliptic source code, I think the le mode can break 0x prefixed private.

I'm going to remove the 0x before generate private key.

@newtmex
Copy link

newtmex commented Feb 19, 2021

I got this error: The input type didn't support. at vendor/web3p/rlp/src/RLP.php:223 ...

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