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§
Source§impl Clone for SigningMessage
impl Clone for SigningMessage
Source§fn clone(&self) -> SigningMessage
fn clone(&self) -> SigningMessage
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 moreAuto Trait Implementations§
impl Freeze 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