[−][src]Struct stellar_base::crypto::PublicKey
The public key of the account.
Implementations
impl PublicKey[src]
pub fn from_account_id(account_id: &str) -> Result<PublicKey>[src]
Create from account_id, e.g. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA.
pub fn from_slice(data: &[u8]) -> Result<PublicKey>[src]
Create from raw bytes.
pub fn inner(&self) -> &PublicKey[src]
Return the inner key.
pub fn account_id(&self) -> String[src]
pub fn into_muxed_account(self, id: u64) -> MuxedAccount[src]
pub fn to_muxed_account(&self, id: u64) -> MuxedAccount[src]
pub fn to_xdr_uint256(&self) -> Result<Uint256>[src]
pub fn to_xdr_public_key(&self) -> Result<PublicKey>[src]
pub fn to_xdr_account_id(&self) -> Result<AccountId>[src]
pub fn from_xdr_public_key(x: &PublicKey) -> Result<PublicKey>[src]
pub fn from_xdr_account_id(x: &AccountId) -> Result<PublicKey>[src]
pub fn as_bytes(&self) -> &[u8][src]
pub fn to_xdr(&self) -> Result<MuxedAccount>[src]
Trait Implementations
impl Clone for PublicKey[src]
impl Debug for PublicKey[src]
impl Display for PublicKey[src]
impl Eq for PublicKey[src]
impl From<PublicKey> for MuxedAccount[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 PartialEq<PublicKey> for PublicKey[src]
impl StructuralEq for PublicKey[src]
impl StructuralPartialEq 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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
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.
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>,