pub struct RistrettoPoint(RistrettoPoint);Expand description
A ristretto255 group element.
Tuple Fields§
§0: RistrettoPointImplementations§
Source§impl RistrettoPoint
impl RistrettoPoint
Sourcepub fn from_uniform_bytes(bytes: &[u8; 64]) -> Self
pub fn from_uniform_bytes(bytes: &[u8; 64]) -> Self
Maps 64 uniform bytes to a point (RFC 9496 §4.3.4).
Sourcepub fn decompress(bytes: &[u8]) -> Result<Self, Error>
pub fn decompress(bytes: &[u8]) -> Result<Self, Error>
Decodes a canonical 32-byte encoding.
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Returns whether this is the identity element.
Trait Implementations§
Source§impl Clone for RistrettoPoint
impl Clone for RistrettoPoint
Source§fn clone(&self) -> RistrettoPoint
fn clone(&self) -> RistrettoPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RistrettoPoint
impl Eq for RistrettoPoint
Source§impl PartialEq for RistrettoPoint
impl PartialEq for RistrettoPoint
impl StructuralPartialEq for RistrettoPoint
Auto Trait Implementations§
impl Freeze for RistrettoPoint
impl RefUnwindSafe for RistrettoPoint
impl Send for RistrettoPoint
impl Sync for RistrettoPoint
impl Unpin for RistrettoPoint
impl UnsafeUnpin for RistrettoPoint
impl UnwindSafe for RistrettoPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more