pub struct DoubleSignature<E: EngineBLS>(pub E::SignatureGroup, _);
Expand description
Detached BLS Signature containing DLEQ
Tuple Fields§
§0: E::SignatureGroup
Implementations§
Source§impl<E: EngineBLS> DoubleSignature<E>
impl<E: EngineBLS> DoubleSignature<E>
Sourcepub fn verify(&self, message: &Message, publickey: &DoublePublicKey<E>) -> bool
pub fn verify(&self, message: &Message, publickey: &DoublePublicKey<E>) -> bool
Verify a single BLS signature using DLEQ proof
Trait Implementations§
Source§impl<E: EngineBLS> CanonicalDeserialize for DoubleSignature<E>
impl<E: EngineBLS> CanonicalDeserialize for DoubleSignature<E>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<E: EngineBLS> CanonicalSerialize for DoubleSignature<E>
impl<E: EngineBLS> CanonicalSerialize for DoubleSignature<E>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<E: Clone + EngineBLS> Clone for DoubleSignature<E>where
E::SignatureGroup: Clone,
impl<E: Clone + EngineBLS> Clone for DoubleSignature<E>where
E::SignatureGroup: Clone,
Source§fn clone(&self) -> DoubleSignature<E>
fn clone(&self) -> DoubleSignature<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug + EngineBLS> Debug for DoubleSignature<E>where
E::SignatureGroup: Debug,
impl<E: Debug + EngineBLS> Debug for DoubleSignature<E>where
E::SignatureGroup: Debug,
Source§impl<E: EngineBLS> SerializableToBytes for DoubleSignature<E>
impl<E: EngineBLS> SerializableToBytes for DoubleSignature<E>
Serialization for DoubleSignature
const SERIALIZED_BYTES_SIZE: usize = _
fn to_bytes(&self) -> Vec<u8>
fn from_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
Source§impl<E: EngineBLS> Valid for DoubleSignature<E>
impl<E: EngineBLS> Valid for DoubleSignature<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Auto Trait Implementations§
impl<E> Freeze for DoubleSignature<E>
impl<E> RefUnwindSafe for DoubleSignature<E>
impl<E> Send for DoubleSignature<E>
impl<E> Sync for DoubleSignature<E>
impl<E> Unpin for DoubleSignature<E>
impl<E> UnwindSafe for DoubleSignature<E>
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> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self,
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more