Skip to content

Struct crypto::voice::SignedSenderKeys

zaun_community_protocol::crypto::voice::SignedSenderKeys · Struct

pub struct SignedSenderKeys(…)

A sender-keys message whose signature was made here or verified.

pub const fn keys(&self) -> &SenderKeys

The statement.

pub const fn wrap_context(&self) -> WrapContext

The HPKE context of this epoch.

pub fn entry_for(&self, own: &SignedKeyPackage, wrapped: &WrappedKey) -> Result<&RecipientEntry, VoiceError>

The entry for own, after checking that wrapped is the key the sender signed for it.

VoiceError::NotARecipient or VoiceError::WrappedHash.

pub fn to_wire(&self) -> Result<Vec<u8>, VoiceError>

The wire form: u32 length ‖ canonical bytes ‖ signature.

VoiceError::Encode (never expected: the bytes were checked when made).

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page