pub struct Attestation<S: Scheme> {
pub signer: Participant,
pub signature: Lazy<S::Signature>,
}Expand description
A participant’s attestation for a certificate.
Fields§
§signer: ParticipantIndex of the signer inside the participant set.
signature: Lazy<S::Signature>Scheme-specific signature or share produced for a given subject.
Trait Implementations§
Source§impl<S: Scheme> EncodeSize for Attestation<S>
impl<S: Scheme> EncodeSize for Attestation<S>
Source§fn encode_size(&self) -> usize
fn encode_size(&self) -> usize
Returns the encoded size of this value (in bytes).
Source§fn encode_inline_size(&self) -> usize
fn encode_inline_size(&self) -> usize
Returns the encoded size excluding bytes passed to
BufsMut::push
during Write::write_bufs. Used to size the fixed working buffer for
inline writes, so it must not be less than the bytes written inline.
Override alongside Write::write_bufs for types where large
byte fields go via push, or the working buffer will over-allocate.impl<S: Scheme> Eq for Attestation<S>
Source§impl<S: Scheme> Hash for Attestation<S>
impl<S: Scheme> Hash for Attestation<S>
Source§impl<S: Scheme> MaxEncodeSize for Attestation<S>
impl<S: Scheme> MaxEncodeSize for Attestation<S>
Source§const MAX_ENCODE_SIZE: usize
const MAX_ENCODE_SIZE: usize
An upper bound on the encoded size, in bytes.
Source§impl<S: Scheme> PartialEq for Attestation<S>
impl<S: Scheme> PartialEq for Attestation<S>
Source§impl<S: Scheme> Read for Attestation<S>
impl<S: Scheme> Read for Attestation<S>
Source§impl<S: Scheme> Write for Attestation<S>
impl<S: Scheme> Write for Attestation<S>
Source§fn write_bufs(&self, buf: &mut impl BufsMut)
fn write_bufs(&self, buf: &mut impl BufsMut)
Writes to a
BufsMut, allowing existing byte chunks to be
appended via BufsMut::push instead of written inline. Must encode
to the same format as Write::write. Defaults to Write::write.Auto Trait Implementations§
impl<S> !Freeze for Attestation<S>
impl<S> RefUnwindSafe for Attestation<S>
impl<S> Send for Attestation<S>
impl<S> Sync for Attestation<S>
impl<S> Unpin for Attestation<S>
impl<S> UnsafeUnpin for Attestation<S>
impl<S> UnwindSafe for Attestation<S>
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