Struct noah_api::ristretto::CompressedEdwardsY
source · pub struct CompressedEdwardsY(pub CompressedEdwardsY);Expand description
The wrapped struct for curve25519_dalek::edwards::CompressedEdwardsY
Tuple Fields§
§0: CompressedEdwardsYImplementations§
source§impl CompressedEdwardsY
impl CompressedEdwardsY
sourcepub fn from_slice(bytes: &[u8]) -> CompressedEdwardsY
pub fn from_slice(bytes: &[u8]) -> CompressedEdwardsY
Build a CompressedEdwardsY from slice of bytes
sourcepub fn decompress(&self) -> Option<EdwardsPoint>
pub fn decompress(&self) -> Option<EdwardsPoint>
Recover the point from the CompressedEdwardsY
sourcepub fn scalar_mul_basepoint(s: &RistrettoScalar) -> CompressedEdwardsY
pub fn scalar_mul_basepoint(s: &RistrettoScalar) -> CompressedEdwardsY
Return compressed edwards point of (ED25519_BASEPOINT_POINT ^ s)
Trait Implementations§
source§impl Clone for CompressedEdwardsY
impl Clone for CompressedEdwardsY
source§fn clone(&self) -> CompressedEdwardsY
fn clone(&self) -> CompressedEdwardsY
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 CompressedEdwardsY
impl Debug for CompressedEdwardsY
source§impl Default for CompressedEdwardsY
impl Default for CompressedEdwardsY
source§fn default() -> CompressedEdwardsY
fn default() -> CompressedEdwardsY
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CompressedEdwardsY
impl<'de> Deserialize<'de> for CompressedEdwardsY
source§fn deserialize<D>(
deserializer: D
) -> Result<CompressedEdwardsY, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CompressedEdwardsY, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Mul<&'a RistrettoScalar> for CompressedEdwardsY
impl<'a> Mul<&'a RistrettoScalar> for CompressedEdwardsY
§type Output = CompressedEdwardsY
type Output = CompressedEdwardsY
The resulting type after applying the
* operator.source§fn mul(
self,
rhs: &RistrettoScalar
) -> <CompressedEdwardsY as Mul<&'a RistrettoScalar>>::Output
fn mul(
self,
rhs: &RistrettoScalar
) -> <CompressedEdwardsY as Mul<&'a RistrettoScalar>>::Output
Performs the
* operation. Read moresource§impl NoahFromToBytes for CompressedEdwardsY
impl NoahFromToBytes for CompressedEdwardsY
source§fn noah_from_bytes(
bytes: &[u8]
) -> Result<CompressedEdwardsY, Box<dyn RucError + 'static, Global>>
fn noah_from_bytes(
bytes: &[u8]
) -> Result<CompressedEdwardsY, Box<dyn RucError + 'static, Global>>
reconstruct from bytes
source§impl PartialEq<CompressedEdwardsY> for CompressedEdwardsY
impl PartialEq<CompressedEdwardsY> for CompressedEdwardsY
source§fn eq(&self, other: &CompressedEdwardsY) -> bool
fn eq(&self, other: &CompressedEdwardsY) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CompressedEdwardsY
impl Serialize for CompressedEdwardsY
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 CompressedEdwardsY
impl Eq for CompressedEdwardsY
impl StructuralEq for CompressedEdwardsY
impl StructuralPartialEq for CompressedEdwardsY
Auto Trait Implementations§
impl RefUnwindSafe for CompressedEdwardsY
impl Send for CompressedEdwardsY
impl Sync for CompressedEdwardsY
impl Unpin for CompressedEdwardsY
impl UnwindSafe for CompressedEdwardsY
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