pub struct AuthenticatedPeerMessage {
pub message_id: String,
pub sender: String,
pub recipient: String,
pub message_box: String,
pub body: String,
pub authenticated_decrypt: bool,
}Expand description
A live-delivered peer message paired with its authenticated-decrypt provenance.
Client-owned sibling of bsv::remittance::types::PeerMessage (which is an
upstream SDK type we cannot extend). Delivered by
crate::client::MessageBoxClient::listen_for_live_messages_typed so that
provenance-requiring consumers (the MPC transport) can fail-closed on bodies
that did not AEAD-decrypt against sender. The legacy
crate::client::MessageBoxClient::listen_for_live_messages continues to
deliver a bare PeerMessage (this flag dropped) for existing consumers.
Fields§
§message_id: String§sender: String§recipient: String§message_box: String§body: String§authenticated_decrypt: booltrue iff body came from a genuine authenticated (AEAD) decrypt of an
encrypted envelope against sender’s key.
Trait Implementations§
Source§impl Clone for AuthenticatedPeerMessage
impl Clone for AuthenticatedPeerMessage
Source§fn clone(&self) -> AuthenticatedPeerMessage
fn clone(&self) -> AuthenticatedPeerMessage
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 AuthenticatedPeerMessage
impl RefUnwindSafe for AuthenticatedPeerMessage
impl Send for AuthenticatedPeerMessage
impl Sync for AuthenticatedPeerMessage
impl Unpin for AuthenticatedPeerMessage
impl UnsafeUnpin for AuthenticatedPeerMessage
impl UnwindSafe for AuthenticatedPeerMessage
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