Struct shuttle_core::PublicKey
[−]
[src]
pub struct PublicKey { /* fields omitted */ }
The public key of the account.
Methods
impl PublicKey
[src]
fn from_account_id(account_id: &str) -> Result<PublicKey>
[src]
Create from account_id
, e.g. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA
.
fn from_slice(data: &[u8]) -> Result<PublicKey>
[src]
Create from raw bytes.
fn account_id(&self) -> Result<String>
[src]
Return the public key as string, starting with G
.
fn buf(&self) -> &[u8]
[src]
Return the inner key buffer.
fn inner(&self) -> &PublicKey
[src]
Return the inner key.
Trait Implementations
impl Debug for PublicKey
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PublicKey
[src]
fn eq(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for !=
.
impl Eq for PublicKey
[src]
impl ToXdr<PublicKey> for PublicKey
[src]
fn to_xdr(&self) -> Result<PublicKey>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Serialize to the writer w
.
fn to_base64(&self) -> Result<String>
[src]
Serialize to base64.