pub struct Signature {
pub r: [u8; 32],
pub s: [u8; 32],
pub v: u8,
}Expand description
A 65-byte EIP-712 signature: r (32) || s (32) || v (1).
v ∈ {27, 28} follows the “legacy” Ethereum-style recovery id. The MTF
node’s signature verifier expects this layout.
Fields§
§r: [u8; 32]First 32 bytes of the signature.
s: [u8; 32]Second 32 bytes of the signature.
v: u8Recovery id, encoded as 27 + parity (matches Ethereum legacy txs).
Implementations§
Trait Implementations§
impl Copy for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more