string
null
.
null
| bigint
v
for legacy transactions. For non-legacy transactions, this value is null
.
null
| bigint
r
value for a signautre.
This represents the x
coordinate of a “reference” or challenge point, from which the y
can be computed.
string
s
value for a signature.
string
string
v
value for a signature.
Since a given x
value for r
has two possible values for its correspondin y
, the v
indicates which of the
two y
values to use.
It is normalized to the values 27
or 28
for legacy purposes.
27
| 28
yParity
for the signature.
See v
for more details on how this value is used.
0
| 1
yParity
and s
compacted
into a single bytes32
.
string
Signature
JSON.stringify
.
any
sig
is provided, a new Signature is created with default values.
If sig
is a string, it is parsed.
Parameter | Type | Description |
---|---|---|
sig ? | SignatureLike | The signature to create. |
Signature
The new signature.
v
in a legacy EIP-155 transactions.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The v value from the signature. |
bigint
The chain ID.
v
for a chain ID for a legacy EIP-155 transactions.
Legacy transactions which use EIP-155 hijack the v
property to
include the chain ID.
Parameter | Type | Description |
---|---|---|
chainId | BigNumberish | The chain ID. |
v | 27 | 28 | The v value. |
bigint
The v
value.
v
from a yParirty
, a legacy transaction v
or a legacy
EIP-155 transaction.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The v value. |
27
| 28
The normalized v
value.
v
is invalid.