pub struct WelcomeMessage {
pub epoch: EpochNumber,
pub sender: MemberId,
pub cipher_suite: CipherSuite,
pub group_info: Vec<u8>,
pub secrets: Vec<EncryptedGroupSecrets>,
pub signature: DebugMlDsaSignature,
}Expand description
Welcome message for new members
Fields§
§epoch: EpochNumber§sender: MemberId§cipher_suite: CipherSuite§group_info: Vec<u8>§secrets: Vec<EncryptedGroupSecrets>§signature: DebugMlDsaSignatureImplementations§
Source§impl WelcomeMessage
impl WelcomeMessage
Sourcepub fn verify_signature(&self, verifying_key: &MlDsaPublicKey) -> Result<bool>
pub fn verify_signature(&self, verifying_key: &MlDsaPublicKey) -> Result<bool>
Verify the welcome message signature against the creator’s public key
Trait Implementations§
Source§impl Clone for WelcomeMessage
impl Clone for WelcomeMessage
Source§impl Debug for WelcomeMessage
impl Debug for WelcomeMessage
Source§impl<'de> Deserialize<'de> for WelcomeMessage
impl<'de> Deserialize<'de> for WelcomeMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WelcomeMessage
impl RefUnwindSafe for WelcomeMessage
impl Send for WelcomeMessage
impl Sync for WelcomeMessage
impl Unpin for WelcomeMessage
impl UnsafeUnpin for WelcomeMessage
impl UnwindSafe for WelcomeMessage
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