Struct monero::util::key::PublicKey [−][src]
Monero public key
Fields
point: CompressedEdwardsY
The actual Ed25519 point
Implementations
impl PublicKey
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Serialize a public key as bytes
pub fn to_bytes(&self) -> [u8; 32]
[src]
Serialize a public key to bytes
pub fn from_slice(data: &[u8]) -> Result<PublicKey, Error>
[src]
Deserialize a public key from a slice
pub fn from_private_key(privkey: &PrivateKey) -> PublicKey
[src]
Generate a public key from the private key
Trait Implementations
impl<'a, 'b> Add<&'b PublicKey> for &'a PublicKey
[src]
type Output = PublicKey
The resulting type after applying the +
operator.
fn add(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'b> Add<&'b PublicKey> for PublicKey
[src]
type Output = PublicKey
The resulting type after applying the +
operator.
fn add(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'a> Add<PublicKey> for &'a PublicKey
[src]
type Output = PublicKey
The resulting type after applying the +
operator.
fn add(self, other: PublicKey) -> Self::Output
[src]
impl Add<PublicKey> for PublicKey
[src]
type Output = PublicKey
The resulting type after applying the +
operator.
fn add(self, other: PublicKey) -> Self::Output
[src]
impl Clone for PublicKey
[src]
impl Copy for PublicKey
[src]
impl Debug for PublicKey
[src]
impl Decodable for PublicKey
[src]
impl<'de> Deserialize<'de> for PublicKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for PublicKey
[src]
impl Encodable for PublicKey
[src]
impl Eq for PublicKey
[src]
impl FromStr for PublicKey
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for PublicKey
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Hashable for PublicKey
[src]
fn hash(&self) -> Hash
[src]
fn hash_to_scalar(&self) -> PrivateKey
[src]
impl Index<RangeFull> for PublicKey
[src]
impl<'b> Mul<&'b PrivateKey> for PublicKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PrivateKey) -> Self::Output
[src]
impl<'b> Mul<&'b PublicKey> for PrivateKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'a, 'b> Mul<&'b PublicKey> for &'a PrivateKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PublicKey) -> Self::Output
[src]
impl PartialEq<PublicKey> for PublicKey
[src]
impl Serialize for PublicKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StrictDecode for PublicKey
[src]
strict_encoding_support
only.fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for PublicKey
[src]
strict_encoding_support
only.fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for PublicKey
[src]
impl StructuralPartialEq for PublicKey
[src]
impl<'a, 'b> Sub<&'b PublicKey> for &'a PublicKey
[src]
type Output = PublicKey
The resulting type after applying the -
operator.
fn sub(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'b> Sub<&'b PublicKey> for PublicKey
[src]
type Output = PublicKey
The resulting type after applying the -
operator.
fn sub(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'a> Sub<PublicKey> for &'a PublicKey
[src]
type Output = PublicKey
The resulting type after applying the -
operator.
fn sub(self, other: PublicKey) -> Self::Output
[src]
impl Sub<PublicKey> for PublicKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,