pub struct HandshakeMessage {
pub epoch: EpochNumber,
pub sender: MemberId,
pub content: Vec<u8>,
pub signature: DebugMlDsaSignature,
}Expand description
Handshake message for group operations
Fields§
§epoch: EpochNumber§sender: MemberId§content: Vec<u8>§signature: DebugMlDsaSignatureImplementations§
Source§impl HandshakeMessage
impl HandshakeMessage
Sourcepub fn new_signed(
epoch: EpochNumber,
sender: MemberId,
content: Vec<u8>,
signing_key: &MlDsaSecretKey,
suite: CipherSuite,
) -> Result<Self>
pub fn new_signed( epoch: EpochNumber, sender: MemberId, content: Vec<u8>, signing_key: &MlDsaSecretKey, suite: CipherSuite, ) -> Result<Self>
Create a signed handshake message for the given content
Sourcepub fn verify_signature(
&self,
verifying_key: &MlDsaPublicKey,
suite: CipherSuite,
) -> Result<bool>
pub fn verify_signature( &self, verifying_key: &MlDsaPublicKey, suite: CipherSuite, ) -> Result<bool>
Verify the handshake message signature using the provided suite
Trait Implementations§
Source§impl Clone for HandshakeMessage
impl Clone for HandshakeMessage
Source§impl Debug for HandshakeMessage
impl Debug for HandshakeMessage
Source§impl<'de> Deserialize<'de> for HandshakeMessage
impl<'de> Deserialize<'de> for HandshakeMessage
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 HandshakeMessage
impl RefUnwindSafe for HandshakeMessage
impl Send for HandshakeMessage
impl Sync for HandshakeMessage
impl Unpin for HandshakeMessage
impl UnsafeUnpin for HandshakeMessage
impl UnwindSafe for HandshakeMessage
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