pub struct SigningMessage { /* private fields */ }Expand description
An opaque, frozen transaction signing message: the exact bytes M an
external signer signs (48 bytes), the fee-payer key the signature must verify
under (derived from the body, never independent caller input), and an
immutable snapshot of the body so attach_signature can emit a self-consistent
signed wire even if the caller later mutates its original buffer.
Implementations§
Source§impl SigningMessage
impl SigningMessage
Sourcepub fn expected_pubkey(&self) -> &[u8; 32]
pub fn expected_pubkey(&self) -> &[u8; 32]
The public key the signature must verify under: the fee-payer taken from the transaction body, so it cannot disagree with what the chain checks.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SigningMessage
impl Freeze for SigningMessage
impl Move for SigningMessage
impl RefUnwindSafe for SigningMessage
impl Send for SigningMessage
impl Sync for SigningMessage
impl Unpin for SigningMessage
impl UnsafeUnpin for SigningMessage
impl UnwindSafe for SigningMessage
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