[][src]Struct bbs::Commitment

pub struct Commitment(_);

The type for creating commitments to messages that are hidden during issuance.

Implementations

impl Commitment[src]

pub fn new<B: AsRef<[G1]>, S: AsRef<[Fr]>>(bases: B, scalars: S) -> Self[src]

Compute a new commitment from multiple points and scalars

pub fn to_bytes_compressed_form(&self) -> [u8; 48][src]

Convert to raw bytes compressed form

pub fn to_bytes_uncompressed_form(&self) -> [u8; 96][src]

Convert to raw bytes uncompressed form

Trait Implementations

impl AsRef<G1> for Commitment[src]

impl Clone for Commitment[src]

impl Copy for Commitment[src]

impl Debug for Commitment[src]

impl<'a> Deserialize<'a> for Commitment[src]

impl Display for Commitment[src]

impl Eq for Commitment[src]

impl<'_> From<&'_ [u8; 48]> for Commitment[src]

impl<'_> From<&'_ [u8; 96]> for Commitment[src]

impl<'_> From<&'_ G1> for Commitment[src]

impl From<[u8; 48]> for Commitment[src]

impl From<[u8; 96]> for Commitment[src]

impl From<G1> for Commitment[src]

impl HashElem for Commitment[src]

type Output = Commitment

The type that implements this trait

impl PartialEq<Commitment> for Commitment[src]

impl Serialize for Commitment[src]

impl StructuralEq for Commitment[src]

impl StructuralPartialEq for Commitment[src]

impl<'_> TryFrom<&'_ [u8]> for Commitment[src]

type Error = BBSError

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for Commitment[src]

type Error = BBSError

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,