I'm trying to generate ethereum raw transactions.
this is keccak hash of my transaction:
after signing it with my private key I obtained this values:
r= 4041e0cf580308bcedc1f0a136029ff5200827f9dacad8c3b4884ab1350c031f s= 0e0a5e601489fbd5a647e0423f0cf84c80b7d14cb3bf61e066184b2d94c7a267
now at the end I must calculate value of v
I found two formulas for it:
# CHAIN_ID=1 1) v = CHAIN_ID * 2 + 35 2) v = CHAIN_ID * 2 + 36
I don't know which formulas must I use.
now exactly how must I detect which formulas must I use ?