Struct shuttle_sdk::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, Error>
[src]
Create from account_id
, e.g. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA
.
fn from_slice(data: &[u8]) -> Result<PublicKey, Error>
[src]
Create from raw bytes.
fn account_id(&self) -> Result<String, Error>
[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 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 Eq for PublicKey
[src]
impl ToXdr<PublicKey> for PublicKey
[src]
fn to_xdr(&self) -> Result<PublicKey, Error>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
Serialize to the writer w
.
fn to_base64(&self) -> Result<String, Error>
[src]
Serialize to base64.
impl PartialEq<PublicKey> for PublicKey
[src]
impl Debug for PublicKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.