[−][src]Struct bbs::pok_sig::PoKOfSignatureProof
The actual proof that is sent from prover to verifier.
Contains the proof of 2 discrete log relations.
Implementations
impl PoKOfSignatureProof
[src]
pub fn get_bytes_for_challenge(
&self,
revealed_msg_indices: BTreeSet<usize>,
vk: &PublicKey
) -> Vec<u8>
[src]
&self,
revealed_msg_indices: BTreeSet<usize>,
vk: &PublicKey
) -> Vec<u8>
Return bytes that need to be hashed for generating challenge. Takes self.a_bar
,
self.a_prime
and self.d
and commitment and instance data of the two proof of knowledge protocols.
pub fn get_resp_for_message(
&self,
msg_idx: usize
) -> Result<SignatureMessage, BBSError>
[src]
&self,
msg_idx: usize
) -> Result<SignatureMessage, BBSError>
Get the response from post-challenge phase of the Sigma protocol for the given message index msg_idx
.
Used when comparing message equality
pub fn verify(
&self,
vk: &PublicKey,
revealed_msgs: &BTreeMap<usize, SignatureMessage>,
challenge: &ProofChallenge
) -> Result<PoKOfSignatureProofStatus, BBSError>
[src]
&self,
vk: &PublicKey,
revealed_msgs: &BTreeMap<usize, SignatureMessage>,
challenge: &ProofChallenge
) -> Result<PoKOfSignatureProofStatus, BBSError>
Validate the proof
Trait Implementations
impl Clone for PoKOfSignatureProof
[src]
fn clone(&self) -> PoKOfSignatureProof
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PoKOfSignatureProof
[src]
impl Default for PoKOfSignatureProof
[src]
impl<'a> Deserialize<'a> for PoKOfSignatureProof
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl From<Box<[u8]>> for PoKOfSignatureProof
[src]
impl Into<Box<[u8]>> for PoKOfSignatureProof
[src]
impl Serialize for PoKOfSignatureProof
[src]
impl ToVariableLengthBytes for PoKOfSignatureProof
[src]
type Output = PoKOfSignatureProof
The type that implements this trait
type Error = BBSError
The type of error to return
fn to_bytes_compressed_form(&self) -> Vec<u8>
[src]
Convert the proof to a compressed raw bytes form.
fn from_bytes_compressed_form<I: AsRef<[u8]>>(data: I) -> Result<Self, BBSError>
[src]
Convert compressed byte slice into a proof
fn to_bytes_uncompressed_form(&self) -> Vec<u8>
[src]
fn from_bytes_uncompressed_form<I: AsRef<[u8]>>(
data: I
) -> Result<Self::Output, Self::Error>
[src]
data: I
) -> Result<Self::Output, Self::Error>
impl<'_> TryFrom<&'_ [u8]> for PoKOfSignatureProof
[src]
type Error = BBSError
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 PoKOfSignatureProof
[src]
Auto Trait Implementations
impl RefUnwindSafe for PoKOfSignatureProof
impl Send for PoKOfSignatureProof
impl Sync for PoKOfSignatureProof
impl Unpin for PoKOfSignatureProof
impl UnwindSafe for PoKOfSignatureProof
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>,