@ethereumjs/util / fromRPCSig
fromRPCSig(
sig
):object
Defined in: packages/util/src/signature.ts:116
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.
`0x${string}`
object
r:
Uint8Array
s:
Uint8Array
v:
bigint