pub struct SignedDelivery {
pub signed_payload: Vec<u8>,
pub candidates: Vec<Vec<u8>>,
pub timestamp: Option<i64>,
}Expand description
What a SignatureScheme read out of one delivery: the bytes the
provider signed, the candidate signatures to compare, the timestamp the
replay tolerance runs on.
Fields§
§signed_payload: Vec<u8>Exactly the bytes the scheme’s MAC ran over — the raw body, or a
{timestamp}.{body} / {id}.{timestamp}.{body} layout. Empty for a
shared-token scheme, which signs nothing.
candidates: Vec<Vec<u8>>Every candidate the delivery carried, decoded; empty refuses.
timestamp: Option<i64>The Unix seconds the provider says it sent the delivery. None
skips the replay tolerance — the scheme is then only as replay-safe
as the provider makes it.
Trait Implementations§
Source§impl Clone for SignedDelivery
impl Clone for SignedDelivery
Source§impl Debug for SignedDelivery
impl Debug for SignedDelivery
impl Eq for SignedDelivery
Source§impl PartialEq for SignedDelivery
impl PartialEq for SignedDelivery
impl StructuralPartialEq for SignedDelivery
Auto Trait Implementations§
impl Freeze for SignedDelivery
impl RefUnwindSafe for SignedDelivery
impl Send for SignedDelivery
impl Sync for SignedDelivery
impl Unpin for SignedDelivery
impl UnsafeUnpin for SignedDelivery
impl UnwindSafe for SignedDelivery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.