Struct proof_system::statement::bddt16_kvac::PoKOfMACFullVerifier
source · pub struct PoKOfMACFullVerifier<G: AffineRepr> {
pub revealed_messages: BTreeMap<usize, G::ScalarField>,
pub mac_params: Option<MACParams<G>>,
pub mac_params_ref: Option<usize>,
pub secret_key: SecretKey<G::ScalarField>,
}
Fields§
§revealed_messages: BTreeMap<usize, G::ScalarField>
Messages being revealed.
mac_params: Option<MACParams<G>>
§mac_params_ref: Option<usize>
§secret_key: SecretKey<G::ScalarField>
Implementations§
source§impl<G: AffineRepr> PoKOfMACFullVerifier<G>
impl<G: AffineRepr> PoKOfMACFullVerifier<G>
pub fn new_statement_from_params<E: Pairing<G1Affine = G>>( secret_key: SecretKey<G::ScalarField>, params: MACParams<G>, revealed_messages: BTreeMap<usize, G::ScalarField> ) -> Statement<E>
pub fn new_statement_from_params_ref<E: Pairing<G1Affine = G>>( secret_key: SecretKey<G::ScalarField>, params_ref: usize, revealed_messages: BTreeMap<usize, G::ScalarField> ) -> Statement<E>
pub fn get_params<'a, E: Pairing<G1Affine = G>>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize ) -> Result<&'a MACParams<G>, ProofSystemError>
Trait Implementations§
source§impl<G: AffineRepr> CanonicalDeserialize for PoKOfMACFullVerifier<G>
impl<G: AffineRepr> CanonicalDeserialize for PoKOfMACFullVerifier<G>
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<G: AffineRepr> CanonicalSerialize for PoKOfMACFullVerifier<G>
impl<G: AffineRepr> CanonicalSerialize for PoKOfMACFullVerifier<G>
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<G: Clone + AffineRepr> Clone for PoKOfMACFullVerifier<G>where
G::ScalarField: Clone,
impl<G: Clone + AffineRepr> Clone for PoKOfMACFullVerifier<G>where
G::ScalarField: Clone,
source§fn clone(&self) -> PoKOfMACFullVerifier<G>
fn clone(&self) -> PoKOfMACFullVerifier<G>
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<G: Debug + AffineRepr> Debug for PoKOfMACFullVerifier<G>where
G::ScalarField: Debug,
impl<G: Debug + AffineRepr> Debug for PoKOfMACFullVerifier<G>where
G::ScalarField: Debug,
source§impl<'de, G: AffineRepr> Deserialize<'de> for PoKOfMACFullVerifier<G>
impl<'de, G: AffineRepr> Deserialize<'de> for PoKOfMACFullVerifier<G>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<G: PartialEq + AffineRepr> PartialEq for PoKOfMACFullVerifier<G>where
G::ScalarField: PartialEq,
impl<G: PartialEq + AffineRepr> PartialEq for PoKOfMACFullVerifier<G>where
G::ScalarField: PartialEq,
source§fn eq(&self, other: &PoKOfMACFullVerifier<G>) -> bool
fn eq(&self, other: &PoKOfMACFullVerifier<G>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<G: AffineRepr> Serialize for PoKOfMACFullVerifier<G>
impl<G: AffineRepr> Serialize for PoKOfMACFullVerifier<G>
source§impl<G: AffineRepr> Valid for PoKOfMACFullVerifier<G>
impl<G: AffineRepr> Valid for PoKOfMACFullVerifier<G>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl<G: Eq + AffineRepr> Eq for PoKOfMACFullVerifier<G>where
G::ScalarField: Eq,
impl<G: AffineRepr> StructuralPartialEq for PoKOfMACFullVerifier<G>
Auto Trait Implementations§
impl<G> Freeze for PoKOfMACFullVerifier<G>
impl<G> RefUnwindSafe for PoKOfMACFullVerifier<G>
impl<G> Send for PoKOfMACFullVerifier<G>
impl<G> Sync for PoKOfMACFullVerifier<G>
impl<G> Unpin for PoKOfMACFullVerifier<G>
impl<G> UnwindSafe for PoKOfMACFullVerifier<G>
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moresource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref