-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error: Private key does not satisfy the curve requirements (ie. it is invalid) #12
Comments
Are you using web3 1.0.0 or the old web3? You need to use this package, You might need to make the private keys an array, like:
If that works for you, let me know and I'll update the docs. |
Hi @Cristiano-c, I had this same issue and found your issue. Someone else answered this in: ethereumjs/ethereumjs-wallet#20 suggesting to use This should work for you:
|
Notice that
|
Guys having similar issue any help appreciated
|
Are you wrapping the privateKey in an array? Make sure to do that |
In this code base, the private key should not start with 0x. Remove 0x if present. |
I have an old wallet inherited from family since 2016 which has been backup using keystore Json and password. i have been trying to recover the wallet using various wallet and they keep giving response "private key do not satisfy the curve requirements". the only wallet that was able to import it is 'Math Wallet' on my android phone, but when i want to make transfer out, it request for password and when i input it i give a response "Privatekey error". If i try to copy the private in order to export it .. it gives me back "Privatekey error". please help |
I followed step by step the instruction to import accounts private key using Metamask, but I get:
The strange thing is that in truffle framework I am able to use HDWalletProvider and string private key. Using it in my code doesn't work (nor truffle-hdwallet-provider nor truffle-hdwallet-provider-privkey).
Here is how I use it:
The text was updated successfully, but these errors were encountered: