[−][src]Struct bbs::pok_vc::ProofG1
A proof of knowledge of a signature and hidden messages
Implementations
impl ProofG1
[src]
pub fn get_challenge_contribution(
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge
) -> Result<GeneratorG1, PoKVCError>
[src]
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge
) -> Result<GeneratorG1, PoKVCError>
Computes the piece that goes into verifying the overall proof component by computing the c == H(U || \widehat{U} || nonce) This returns the \widehat{U} commitment is U
pub fn verify(
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge
) -> Result<bool, PoKVCError>
[src]
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge
) -> Result<bool, PoKVCError>
Verify that bases[0]^responses[0] * bases[0]^responses[0] * ... bases[i]^responses[i] * commitment^challenge == random_commitment
pub fn verify_complete_proof(
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge,
nonce: &[u8]
) -> Result<bool, PoKVCError>
[src]
&self,
bases: &[GeneratorG1],
commitment: &Commitment,
challenge: &ProofChallenge,
nonce: &[u8]
) -> Result<bool, PoKVCError>
Assumes this is the entire proof and is not a sub proof Used primarily during 2-PC signature creation
Trait Implementations
impl Clone for ProofG1
[src]
impl Debug for ProofG1
[src]
impl Default for ProofG1
[src]
impl<'a> Deserialize<'a> for ProofG1
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl From<Box<[u8]>> for ProofG1
[src]
impl Into<Box<[u8]>> for ProofG1
[src]
impl Serialize for ProofG1
[src]
impl ToVariableLengthBytes for ProofG1
[src]
type Output = ProofG1
The type that implements this trait
type Error = PoKVCError
The type of error to return
fn to_bytes_compressed_form(&self) -> Vec<u8>
[src]
fn from_bytes_compressed_form<I: AsRef<[u8]>>(
data: I
) -> Result<Self, PoKVCError>
[src]
data: I
) -> Result<Self, PoKVCError>
fn to_bytes_uncompressed_form(&self) -> Vec<u8>
[src]
fn from_bytes_uncompressed_form<I: AsRef<[u8]>>(
data: I
) -> Result<Self, PoKVCError>
[src]
data: I
) -> Result<Self, PoKVCError>
impl<'_> TryFrom<&'_ [u8]> for ProofG1
[src]
type Error = PoKVCError
The type returned in the event of a conversion error.
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<Vec<u8>> for ProofG1
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProofG1
impl Send for ProofG1
impl Sync for ProofG1
impl Unpin for ProofG1
impl UnwindSafe for ProofG1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,