pub struct SignedSenderKeys(/* private fields */);Expand description
A sender-keys message whose signature was made here or verified.
Implementations§
Source§impl SignedSenderKeys
impl SignedSenderKeys
Sourcepub const fn keys(&self) -> &SenderKeys
pub const fn keys(&self) -> &SenderKeys
The statement.
Sourcepub const fn wrap_context(&self) -> WrapContext
pub const fn wrap_context(&self) -> WrapContext
The HPKE context of this epoch.
Sourcepub fn entry_for(
&self,
own: &SignedKeyPackage,
wrapped: &WrappedKey,
) -> Result<&RecipientEntry, VoiceError>
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
Sourcepub fn to_wire(&self) -> Result<Vec<u8>, VoiceError>
pub fn to_wire(&self) -> Result<Vec<u8>, VoiceError>
The wire form: u32 length ‖ canonical bytes ‖ signature.
§Errors
VoiceError::Encode (never expected: the bytes were checked when made).
Trait Implementations§
Source§impl Clone for SignedSenderKeys
impl Clone for SignedSenderKeys
Source§fn clone(&self) -> SignedSenderKeys
fn clone(&self) -> SignedSenderKeys
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedSenderKeys
impl Debug for SignedSenderKeys
impl Eq for SignedSenderKeys
Source§impl PartialEq for SignedSenderKeys
impl PartialEq for SignedSenderKeys
impl StructuralPartialEq for SignedSenderKeys
Auto Trait Implementations§
impl Freeze for SignedSenderKeys
impl RefUnwindSafe for SignedSenderKeys
impl Send for SignedSenderKeys
impl Sync for SignedSenderKeys
impl Unpin for SignedSenderKeys
impl UnsafeUnpin for SignedSenderKeys
impl UnwindSafe for SignedSenderKeys
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