ForwardSecureGroupMessage

Trait ForwardSecureGroupMessage 

Source
pub trait ForwardSecureGroupMessage<ID, OP, DGM>
where DGM: AckedGroupMembership<ID, OP>,
{ // Required methods fn id(&self) -> OP; fn sender(&self) -> ID; fn content(&self) -> ForwardSecureMessageContent<ID, OP>; fn direct_messages(&self) -> Vec<DirectMessage<ID, OP, DGM>>; }
Expand description

Interface to express required information from messages following the “message encryption” protocol for groups.

Applications implementing these traits should authenticate the original sender of each message.

Messages, except for the direct ones, need to be broadcast to the whole group.

Required Methods§

Source

fn id(&self) -> OP

Unique identifier of this message.

Source

fn sender(&self) -> ID

Unique identifier of the sender of this message.

Source

fn content(&self) -> ForwardSecureMessageContent<ID, OP>

Returns data required to manage group encryption and receive decrypted application messages.

Source

fn direct_messages(&self) -> Vec<DirectMessage<ID, OP, DGM>>

Returns optional list of direct messages.

Direct messages do not need to be encoded as part of one broadcast message. Applications can also decide to keep control messages and direct messages detached and use ForwardSecureMessage as a way to express which control message belonged to this set of direct messages.

Implementors§