I created Ethereum private network with chainID 10 (networkID in genesis.json). I have to create raw transaction and sign on it manually too. How to calculate v in signature ?
According to this document (https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md), v must be CHAIN_ID * 2 + 35 or CHAIN_ID * 2 + 36.
According to this code (https://github.com/ethereumbook/ethereumbook/blob/develop/code/web3js/raw_tx/raw_tx_demo.js), v(chain id) is 0x1c(28). 1 in genesis.config is for Ethereum mainnet. but how is v calculated?