pub struct Proof<S: PedersenSuite> { /* private fields */ }Expand description
Pedersen VRF proof.
Zero-knowledge proof with key-hiding properties:
pk_com: Commitment to the public key (Y_b = x·G + b·B)r: Nonce commitment for the generator (R = k·G + k_b·B)ok: Nonce commitment for the input point (O_k = k·I)s: Response scalar for the secret keysb: Response scalar for the blinding factor
Implementations§
Source§impl<S: PedersenSuite> Proof<S>
impl<S: PedersenSuite> Proof<S>
Sourcepub fn key_commitment(&self) -> AffinePoint<S>
pub fn key_commitment(&self) -> AffinePoint<S>
Get public key commitment from proof.
Trait Implementations§
Source§impl<S: PedersenSuite> CanonicalDeserialize for Proof<S>
impl<S: PedersenSuite> CanonicalDeserialize for Proof<S>
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<S: PedersenSuite> CanonicalSerialize for Proof<S>
impl<S: PedersenSuite> CanonicalSerialize for Proof<S>
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<S: PedersenSuite> Valid for Proof<S>
impl<S: PedersenSuite> Valid for Proof<S>
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<S> Freeze for Proof<S>
impl<S> RefUnwindSafe for Proof<S>where
<S as Suite>::Affine: RefUnwindSafe,
<<S as Suite>::Affine as AffineRepr>::ScalarField: RefUnwindSafe,
impl<S> Send for Proof<S>
impl<S> Sync for Proof<S>
impl<S> Unpin for Proof<S>
impl<S> UnwindSafe for Proof<S>where
<S as Suite>::Affine: UnwindSafe,
<<S as Suite>::Affine as AffineRepr>::ScalarField: UnwindSafe,
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§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