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.
Methods
Section titled “Methods”pub const fn keys(&self) -> &SenderKeysThe statement.
wrap_context
Section titled “wrap_context”pub const fn wrap_context(&self) -> WrapContextThe HPKE context of this epoch.
entry_for
Section titled “entry_for”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.
Errors
Section titled “Errors”VoiceError::NotARecipient or VoiceError::WrappedHash.
to_wire
Section titled “to_wire”pub fn to_wire(&self) -> Result<Vec<u8>, VoiceError>The wire form: u32 length ‖ canonical bytes ‖ signature.
Errors
Section titled “Errors”VoiceError::Encode (never expected: the bytes were checked when made).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq