pub struct DetachedAccumulatorMembershipProver<E: Pairing> {
pub accumulator_value: E::G1Affine,
pub params: Option<SetupParams<E>>,
pub public_key: Option<PublicKey<E>>,
pub proving_key: Option<MembershipProvingKey<E::G1Affine>>,
pub params_ref: Option<usize>,
pub public_key_ref: Option<usize>,
pub proving_key_ref: Option<usize>,
}Fields§
§accumulator_value: E::G1Affine§params: Option<SetupParams<E>>§public_key: Option<PublicKey<E>>§proving_key: Option<MembershipProvingKey<E::G1Affine>>§params_ref: Option<usize>§public_key_ref: Option<usize>§proving_key_ref: Option<usize>Implementations§
Source§impl<E: Pairing> DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> DetachedAccumulatorMembershipProver<E>
Sourcepub fn new_statement_from_params(
params: AccumParams<E>,
public_key: PublicKey<E>,
proving_key: MembershipProvingKey<E::G1Affine>,
accumulator_value: E::G1Affine,
) -> Statement<E>
pub fn new_statement_from_params( params: AccumParams<E>, public_key: PublicKey<E>, proving_key: MembershipProvingKey<E::G1Affine>, accumulator_value: E::G1Affine, ) -> Statement<E>
Create a statement by passing the accumulator params, public key and proving key directly.
Sourcepub fn new_statement_from_params_ref(
params_ref: usize,
public_key_ref: usize,
proving_key_ref: usize,
accumulator_value: E::G1Affine,
) -> Statement<E>
pub fn new_statement_from_params_ref( params_ref: usize, public_key_ref: usize, proving_key_ref: usize, accumulator_value: E::G1Affine, ) -> Statement<E>
Create a statement by passing the indices of accumulator params, public key and proving key in SetupParams.
Sourcepub fn get_params<'a>(
&'a self,
setup_params: &'a [SetupParams<E>],
st_idx: usize,
) -> Result<&'a AccumParams<E>, ProofSystemError>
pub fn get_params<'a>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, ) -> Result<&'a AccumParams<E>, ProofSystemError>
Get accumulator 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 PublicKey<E>, ProofSystemError>
pub fn get_public_key<'a>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, ) -> Result<&'a PublicKey<E>, ProofSystemError>
Get public key for the statement index s_idx either from self or from given setup_params
Sourcepub fn get_proving_key<'a>(
&'a self,
setup_params: &'a [SetupParams<E>],
st_idx: usize,
) -> Result<&'a MembershipProvingKey<E::G1Affine>, ProofSystemError>
pub fn get_proving_key<'a>( &'a self, setup_params: &'a [SetupParams<E>], st_idx: usize, ) -> Result<&'a MembershipProvingKey<E::G1Affine>, ProofSystemError>
Get membership proving key for the statement index s_idx either from self or from given setup_params
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> CanonicalDeserialize for DetachedAccumulatorMembershipProver<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: Pairing> CanonicalSerialize for DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> CanonicalSerialize for DetachedAccumulatorMembershipProver<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 + Pairing> Clone for DetachedAccumulatorMembershipProver<E>
impl<E: Clone + Pairing> Clone for DetachedAccumulatorMembershipProver<E>
Source§fn clone(&self) -> DetachedAccumulatorMembershipProver<E>
fn clone(&self) -> DetachedAccumulatorMembershipProver<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, E: Pairing> Deserialize<'de> for DetachedAccumulatorMembershipProver<E>
impl<'de, E: Pairing> Deserialize<'de> for DetachedAccumulatorMembershipProver<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>,
Deserialize this value from the given Serde deserializer. Read more
impl<E: Eq + Pairing> Eq for DetachedAccumulatorMembershipProver<E>
Source§impl<E: PartialEq + Pairing> PartialEq for DetachedAccumulatorMembershipProver<E>
impl<E: PartialEq + Pairing> PartialEq for DetachedAccumulatorMembershipProver<E>
Source§fn eq(&self, other: &DetachedAccumulatorMembershipProver<E>) -> bool
fn eq(&self, other: &DetachedAccumulatorMembershipProver<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<E: Pairing> Serialize for DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> Serialize for DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> StructuralPartialEq for DetachedAccumulatorMembershipProver<E>
Source§impl<E: Pairing> Valid for DetachedAccumulatorMembershipProver<E>
impl<E: Pairing> Valid for DetachedAccumulatorMembershipProver<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 DetachedAccumulatorMembershipProver<E>
impl<E> RefUnwindSafe for DetachedAccumulatorMembershipProver<E>
impl<E> Send for DetachedAccumulatorMembershipProver<E>
impl<E> Sync for DetachedAccumulatorMembershipProver<E>
impl<E> Unpin for DetachedAccumulatorMembershipProver<E>
impl<E> UnsafeUnpin for DetachedAccumulatorMembershipProver<E>
impl<E> UnwindSafe for DetachedAccumulatorMembershipProver<E>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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
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
Compare self to
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>
Returns the layout of the type.
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
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SendIfParallel for Twhere
T: Send,
impl<T> SyncIfParallel for Twhere
T: Sync,
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