Enum substrate_stellar_sdk::PublicKey [−][src]
pub enum PublicKey { PublicKeyTypeEd25519(Uint256), }
Expand description
Autogenerated definition for type PublicKey
Variants
PublicKeyTypeEd25519(Uint256)
Implementations
The public key of an Ed25519 signing key pair
This type is also used for Stellar account ids.
let public = "GBIVKYSF6RP4U57KPZ524X47NGTQYYPZAZ4UX5ZFYAYBJWRFXHKHDQVL"; let public_key = substrate_stellar_sdk::types::PublicKey::from_encoding(public); assert!(public_key.is_ok()); let public_key = public_key.unwrap(); assert_eq!(&public_key.to_encoding().as_slice(), &public.as_bytes());
Turn into the raw binary key
Return the key encoding as an ASCII string (given as Vec<u8>
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
pub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,