pub struct PoKBBSSignature23G1Verifier<E: Pairing> {
pub revealed_messages: BTreeMap<usize, E::ScalarField>,
pub signature_params: Option<SignatureParams23G1<E>>,
pub public_key: Option<PublicKeyG2<E>>,
pub signature_params_ref: Option<usize>,
pub public_key_ref: Option<usize>,
}Fields§
§revealed_messages: BTreeMap<usize, E::ScalarField>Messages being revealed.
signature_params: Option<SignatureParams23G1<E>>If the statement was created by passing the signature params directly, then it will not be None
public_key: Option<PublicKeyG2<E>>If the statement was created by passing the public key params directly, then it will not be None
signature_params_ref: Option<usize>If the statement was created by passing the index of signature params in SetupParams, then it will not be None
public_key_ref: Option<usize>If the statement was created by passing the index of public key in SetupParams, then it will not be None
Implementations§
Source§impl<E: Pairing> PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> PoKBBSSignature23G1Verifier<E>
Sourcepub fn new_statement_from_params(
signature_params: SignatureParams23G1<E>,
public_key: PublicKeyG2<E>,
revealed_messages: BTreeMap<usize, E::ScalarField>,
) -> Statement<E>
pub fn new_statement_from_params( signature_params: SignatureParams23G1<E>, public_key: PublicKeyG2<E>, revealed_messages: BTreeMap<usize, E::ScalarField>, ) -> Statement<E>
Create a statement by passing the signature parameters and public key directly.
Sourcepub fn new_statement_from_params_ref(
signature_params_ref: usize,
public_key_ref: usize,
revealed_messages: BTreeMap<usize, E::ScalarField>,
) -> Statement<E>
pub fn new_statement_from_params_ref( signature_params_ref: usize, public_key_ref: usize, revealed_messages: BTreeMap<usize, E::ScalarField>, ) -> Statement<E>
Create a statement by passing the indices of signature parameters and public key in SetupParams.
Sourcepub fn get_params<'a>(
&'a self,
setup_params: &'a [SetupParams<E>],
st_idx: usize,
) -> Result<&'a SignatureParams23G1<E>, ProofSystemError>
pub fn get_params<'a>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, ) -> Result<&'a SignatureParams23G1<E>, ProofSystemError>
Get signature params for the statement index s_idx either from self or from given setup_params.
Sourcepub fn get_public_key<'a>(
&'a self,
setup_params: &'a [SetupParams<E>],
st_idx: usize,
) -> Result<&'a PublicKeyG2<E>, ProofSystemError>
pub fn get_public_key<'a>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, ) -> Result<&'a PublicKeyG2<E>, ProofSystemError>
Get public key for the statement index s_idx either from self or from given setup_params.
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> CanonicalDeserialize for PoKBBSSignature23G1Verifier<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>
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: Pairing> CanonicalSerialize for PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> CanonicalSerialize for PoKBBSSignature23G1Verifier<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>
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 + Pairing> Clone for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: Clone,
impl<E: Clone + Pairing> Clone for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: Clone,
Source§fn clone(&self) -> PoKBBSSignature23G1Verifier<E>
fn clone(&self) -> PoKBBSSignature23G1Verifier<E>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<E: Debug + Pairing> Debug for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: Debug,
impl<E: Debug + Pairing> Debug for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: Debug,
Source§impl<'de, E: Pairing> Deserialize<'de> for PoKBBSSignature23G1Verifier<E>
impl<'de, E: Pairing> Deserialize<'de> for PoKBBSSignature23G1Verifier<E>
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>,
impl<E: Eq + Pairing> Eq for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: Eq,
Source§impl<E: PartialEq + Pairing> PartialEq for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: PartialEq,
impl<E: PartialEq + Pairing> PartialEq for PoKBBSSignature23G1Verifier<E>where
E::ScalarField: PartialEq,
Source§fn eq(&self, other: &PoKBBSSignature23G1Verifier<E>) -> bool
fn eq(&self, other: &PoKBBSSignature23G1Verifier<E>) -> bool
self and other values to be equal, and is used by ==.Source§impl<E: Pairing> Serialize for PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> Serialize for PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> StructuralPartialEq for PoKBBSSignature23G1Verifier<E>
Source§impl<E: Pairing> Valid for PoKBBSSignature23G1Verifier<E>
impl<E: Pairing> Valid for PoKBBSSignature23G1Verifier<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 PoKBBSSignature23G1Verifier<E>
impl<E> RefUnwindSafe for PoKBBSSignature23G1Verifier<E>where
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::G2Affine: RefUnwindSafe,
<E as Pairing>::ScalarField: RefUnwindSafe,
impl<E> Send for PoKBBSSignature23G1Verifier<E>
impl<E> Sync for PoKBBSSignature23G1Verifier<E>
impl<E> Unpin for PoKBBSSignature23G1Verifier<E>
impl<E> UnsafeUnpin for PoKBBSSignature23G1Verifier<E>
impl<E> UnwindSafe for PoKBBSSignature23G1Verifier<E>where
<E as Pairing>::ScalarField: RefUnwindSafe,
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::G2Affine: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<T> CanonicalSerDe for Twhere
T: CanonicalDeserialize + CanonicalSerialize,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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
key and return true if they are equal.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> 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>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.