pub struct SigningFrameSignatures<'a>(/* private fields */);Expand description
Borrowed RLP view of a signature list in a transaction’s signing preimage.
Each entry is encoded through FrameSignature::as_signing, and the outer RLP list header
reflects the transformed entries’ lengths. Encoding does not allocate or modify the entries.
use alloy_eip8141::{FrameSignature, SigningFrameSignatures};
use alloy_rlp::Encodable;
let entries = [FrameSignature::default()];
let signing = SigningFrameSignatures::new(&entries);
let encoded = alloy_rlp::encode(signing);
assert_eq!(encoded.len(), signing.length());
assert_eq!(encoded, [0xc5, 0xc4, 0x80, 0x80, 0x80, 0x80]);Implementations§
Source§impl<'a> SigningFrameSignatures<'a>
impl<'a> SigningFrameSignatures<'a>
Sourcepub const fn new(signatures: &'a [FrameSignature]) -> SigningFrameSignatures<'a>
pub const fn new(signatures: &'a [FrameSignature]) -> SigningFrameSignatures<'a>
Creates a signing-preimage view of the signature list.
Trait Implementations§
Source§impl<'a> Clone for SigningFrameSignatures<'a>
impl<'a> Clone for SigningFrameSignatures<'a>
Source§fn clone(&self) -> SigningFrameSignatures<'a>
fn clone(&self) -> SigningFrameSignatures<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SigningFrameSignatures<'a>
Source§impl<'a> Debug for SigningFrameSignatures<'a>
impl<'a> Debug for SigningFrameSignatures<'a>
Auto Trait Implementations§
impl<'a> Freeze for SigningFrameSignatures<'a>
impl<'a> RefUnwindSafe for SigningFrameSignatures<'a>
impl<'a> Send for SigningFrameSignatures<'a>
impl<'a> Sync for SigningFrameSignatures<'a>
impl<'a> Unpin for SigningFrameSignatures<'a>
impl<'a> UnsafeUnpin for SigningFrameSignatures<'a>
impl<'a> UnwindSafe for SigningFrameSignatures<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes