web3p / ethereum-tx

Ethereum transaction library in PHP.
https://www.web3p.xyz/ethereumtx.html
MIT License
183 stars 63 forks source link

private key should be non-hexed #28

Closed sarlongda closed 3 years ago

sarlongda commented 4 years ago

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 commented 4 years ago

@sarlongda

Is this issue related to #27?

sc0Vu commented 3 years ago

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 commented 3 years ago

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