Struct noah_api::ristretto::CompressedRistretto
source · pub struct CompressedRistretto(pub CompressedRistretto);Expand description
The wrapped struct for curve25519_dalek::ristretto::CompressedRistretto
Tuple Fields§
§0: CompressedRistrettoImplementations§
source§impl CompressedRistretto
impl CompressedRistretto
sourcepub fn decompress(&self) -> Option<RistrettoPoint>
pub fn decompress(&self) -> Option<RistrettoPoint>
Recover the point from the CompressedRistretto
sourcepub fn identity() -> CompressedRistretto
pub fn identity() -> CompressedRistretto
Return the CompressedRistretto for the identity point
Trait Implementations§
source§impl Clone for CompressedRistretto
impl Clone for CompressedRistretto
source§fn clone(&self) -> CompressedRistretto
fn clone(&self) -> CompressedRistretto
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CompressedRistretto
impl Debug for CompressedRistretto
source§impl Default for CompressedRistretto
impl Default for CompressedRistretto
source§fn default() -> CompressedRistretto
fn default() -> CompressedRistretto
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CompressedRistretto
impl<'de> Deserialize<'de> for CompressedRistretto
source§fn deserialize<D>(
deserializer: D
) -> Result<CompressedRistretto, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CompressedRistretto, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl NoahFromToBytes for CompressedRistretto
impl NoahFromToBytes for CompressedRistretto
source§fn noah_from_bytes(
bytes: &[u8]
) -> Result<CompressedRistretto, Box<dyn RucError + 'static, Global>>
fn noah_from_bytes(
bytes: &[u8]
) -> Result<CompressedRistretto, Box<dyn RucError + 'static, Global>>
reconstruct from bytes
source§impl PartialEq<CompressedRistretto> for CompressedRistretto
impl PartialEq<CompressedRistretto> for CompressedRistretto
source§fn eq(&self, other: &CompressedRistretto) -> bool
fn eq(&self, other: &CompressedRistretto) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CompressedRistretto
impl Serialize for CompressedRistretto
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CompressedRistretto
impl Eq for CompressedRistretto
impl StructuralEq for CompressedRistretto
impl StructuralPartialEq for CompressedRistretto
Auto Trait Implementations§
impl RefUnwindSafe for CompressedRistretto
impl Send for CompressedRistretto
impl Sync for CompressedRistretto
impl Unpin for CompressedRistretto
impl UnwindSafe for CompressedRistretto
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more