-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Invalid signature with web3.eth.accounts.signTransaction on testrpc #1169
Comments
It looks like rlp is broken for signing transaction when chain_id * 2 + 36 > 255 (overflows 1 byte), the workaround for now seems to be using chain_id in 0-109 range. For details you can have a look at #1334 |
I wonder if this is the same issue here #1674 that's affecting sendTransaction under the hood when I use a local wallet |
HI everyone, I am trying to sign transaction using web3.eth.accounts.signTransaction .. tried using Gananche, Local Geth in Light sync mode and Infura .. when I used Infura and geth with ChainId = 3 that time value of v in signature was 41 or 42 but when used ganache which was runing on chain id 4447 then the value of v was very high like 1228 or above .. does the bug still exist .. // Sample Code written // Or When tried using GETH // Or using infura async function startApp() {
} startApp(); Any leads how should I proceed to get correct value? is this problem exist in other function calls as well like |
I'm using web3@1.0.0-beta.24 to replicate the example http://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#id6 on testrpc:
the output I get is:
which is not a valid signature. If I manually specify the mainnet
chainId
then I don't have this problem:The text was updated successfully, but these errors were encountered: