pub struct PublicKey(/* private fields */);Expand description
A cryptographic public key representing a public identity
Trait Implementations§
Source§impl AsRef<RistrettoPoint> for &PublicKey
impl AsRef<RistrettoPoint> for &PublicKey
Source§fn as_ref(&self) -> &RistrettoPoint
fn as_ref(&self) -> &RistrettoPoint
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PublicKey> for RistrettoPoint
impl From<PublicKey> for RistrettoPoint
Source§impl From<RistrettoPoint> for PublicKey
impl From<RistrettoPoint> for PublicKey
Source§fn from(point: RistrettoPoint) -> Self
fn from(point: RistrettoPoint) -> Self
Converts to this type from the input type.
Source§impl From<Scalar> for PublicKey
impl From<Scalar> for PublicKey
Source§fn from(key: PrivateKey) -> Self
fn from(key: PrivateKey) -> Self
Converts to this type from the input type.
Source§impl TryFrom<IdentityTag> for PublicKey
impl TryFrom<IdentityTag> for PublicKey
Source§type Error = NotAPublicKey
type Error = NotAPublicKey
The type returned in the event of a conversion error.
impl Copy for PublicKey
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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