Struct signature_bbs_plus::PokSignatureProof[][src]

pub struct PokSignatureProof { /* fields omitted */ }

The actual proof that is sent from prover to verifier.

Contains the proof of 2 discrete log relations.

Implementations

impl PokSignatureProof[src]

pub fn to_bytes(&self, buffer: &mut [u8])[src]

Store the proof as a sequence of bytes Each point is compressed to big-endian format Needs (N + 2) * 32 + 48 * 3 space otherwise it will panic where N is the number of hidden messages

pub fn from_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self>[src]

Convert a byte sequence into the blind signature context Expected size is (N + 1) * 32 + 48 bytes

pub fn add_challenge_contribution(
    &self,
    generators: &MessageGenerators,
    rvl_msgs: &[(usize, Message)],
    challenge: Challenge,
    hasher: &mut impl Update
)
[src]

Convert the committed values to bytes for the fiat-shamir challenge

pub fn verify(&self, public_key: PublicKey) -> bool[src]

Validate the proof, only checks the signature proof the selective disclosure proof is checked by verifying self.challenge == computed_challenge

Trait Implementations

impl Clone for PokSignatureProof[src]

impl Debug for PokSignatureProof[src]

impl<'de> Deserialize<'de> for PokSignatureProof[src]

impl Serialize for PokSignatureProof[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.