[−][src]Struct bbs::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]
fn clone(&self) -> Commitment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Commitment
[src]
impl Debug for Commitment
[src]
impl<'a> Deserialize<'a> for Commitment
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
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
fn hash<I: AsRef<[u8]>>(data: I) -> Self::Output
[src]
impl PartialEq<Commitment> for Commitment
[src]
fn eq(&self, other: &Commitment) -> bool
[src]
fn ne(&self, other: &Commitment) -> bool
[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.
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<Vec<u8>> for Commitment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnwindSafe for Commitment
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,