pub struct VerificationKeyAuth { /* private fields */ }Implementations§
Source§impl VerificationKeyAuth
impl VerificationKeyAuth
pub fn aggregate( sigs: &[VerificationKeyAuth], indices: Option<&[u64]>, ) -> Result<VerificationKeyAuth, CompactEcashError>
pub fn alpha(&self) -> &G2Projective
pub fn beta_g1(&self) -> &Vec<G1Projective>
pub fn beta_g2(&self) -> &Vec<G2Projective>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes( bytes: &[u8], ) -> Result<VerificationKeyAuth, CompactEcashError>
Trait Implementations§
Source§impl<'b> Add<&'b VerificationKeyAuth> for VerificationKeyAuth
impl<'b> Add<&'b VerificationKeyAuth> for VerificationKeyAuth
Source§type Output = VerificationKeyAuth
type Output = VerificationKeyAuth
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b VerificationKeyAuth) -> VerificationKeyAuth
fn add(self, rhs: &'b VerificationKeyAuth) -> VerificationKeyAuth
Performs the
+ operation. Read moreSource§impl Base58 for VerificationKeyAuth
impl Base58 for VerificationKeyAuth
Source§impl Bytable for VerificationKeyAuth
impl Bytable for VerificationKeyAuth
fn to_byte_vec(&self) -> Vec<u8> ⓘ
fn try_from_byte_slice( slice: &[u8], ) -> Result<VerificationKeyAuth, CompactEcashError>
Source§impl Clone for VerificationKeyAuth
impl Clone for VerificationKeyAuth
Source§fn clone(&self) -> VerificationKeyAuth
fn clone(&self) -> VerificationKeyAuth
Returns a duplicate 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 Debug for VerificationKeyAuth
impl Debug for VerificationKeyAuth
Source§impl<'de> Deserialize<'de> for VerificationKeyAuth
impl<'de> Deserialize<'de> for VerificationKeyAuth
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerificationKeyAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerificationKeyAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Mul<Scalar> for &VerificationKeyAuth
impl Mul<Scalar> for &VerificationKeyAuth
Source§impl PartialEq for VerificationKeyAuth
impl PartialEq for VerificationKeyAuth
Source§impl PemStorableKey for VerificationKeyAuth
impl PemStorableKey for VerificationKeyAuth
type Error = CompactEcashError
fn pem_type() -> &'static str
fn to_bytes(&self) -> Vec<u8> ⓘ
fn from_bytes( bytes: &[u8], ) -> Result<VerificationKeyAuth, <VerificationKeyAuth as PemStorableKey>::Error>
Source§impl Serialize for VerificationKeyAuth
impl Serialize for VerificationKeyAuth
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Sum<T> for VerificationKeyAuthwhere
T: Borrow<VerificationKeyAuth>,
impl<T> Sum<T> for VerificationKeyAuthwhere
T: Borrow<VerificationKeyAuth>,
Source§fn sum<I>(iter: I) -> VerificationKeyAuthwhere
I: Iterator<Item = T>,
fn sum<I>(iter: I) -> VerificationKeyAuthwhere
I: Iterator<Item = T>,
Takes an iterator and generates
Self from the elements by “summing up”
the items.Source§impl TryFrom<&[u8]> for VerificationKeyAuth
impl TryFrom<&[u8]> for VerificationKeyAuth
Source§type Error = CompactEcashError
type Error = CompactEcashError
The type returned in the event of a conversion error.
Source§fn try_from(bytes: &[u8]) -> Result<VerificationKeyAuth, CompactEcashError>
fn try_from(bytes: &[u8]) -> Result<VerificationKeyAuth, CompactEcashError>
Performs the conversion.
impl StructuralPartialEq for VerificationKeyAuth
Auto Trait Implementations§
impl Freeze for VerificationKeyAuth
impl RefUnwindSafe for VerificationKeyAuth
impl Send for VerificationKeyAuth
impl Sync for VerificationKeyAuth
impl Unpin for VerificationKeyAuth
impl UnsafeUnpin for VerificationKeyAuth
impl UnwindSafe for VerificationKeyAuth
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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