r
, s
, and y_parity
.
#[derive(Copy, Drop, Debug, PartialEq, Serde, Hash)]
pub struct Signature {
pub r: u256,
pub s: u256,
pub y_parity: bool,
}
pub r: u256
pub s: u256
r
.
y_parity == true
means that the y coordinate is odd.
Some places use non boolean v
instead of y_parity
.
In that case, signature_from_vrs
should be used.
pub y_parity: bool