Convert signature format of the eth_sign RPC method to signature parameters
NOTE: For an extracted v value < 27 (see Geth bug https://github.com/ethereum/go-ethereum/issues/2053)
v + 27 is returned for the v value
NOTE: After EIP1559, v could be 0 or 1 but this function assumes
it’s a signed message (EIP-191 or EIP-712) adding 27 at the end. Remove if needed.
Convert signature format of the
eth_sign
RPC method to signature parametersNOTE: For an extracted
v
value < 27 (see Geth bug https://github.com/ethereum/go-ethereum/issues/2053)v + 27
is returned for thev
value NOTE: After EIP1559,v
could be0
or1
but this function assumes it’s a signed message (EIP-191 or EIP-712) adding27
at the end. Remove if needed.