-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 [email protected] 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: