Struct stellar_strkey::ed25519::PrivateKey
source · pub struct PrivateKey(pub [u8; 32]);
Tuple Fields§
§0: [u8; 32]
Implementations§
source§impl PrivateKey
impl PrivateKey
pub fn to_string(&self) -> String
pub fn from_payload(payload: &[u8]) -> Result<Self, DecodeError>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrivateKey
impl Debug for PrivateKey
source§impl Display for PrivateKey
impl Display for PrivateKey
source§impl FromStr for PrivateKey
impl FromStr for PrivateKey
source§impl Hash for PrivateKey
impl Hash for PrivateKey
source§impl Ord for PrivateKey
impl Ord for PrivateKey
source§fn cmp(&self, other: &PrivateKey) -> Ordering
fn cmp(&self, other: &PrivateKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PrivateKey
impl PartialEq for PrivateKey
source§impl PartialOrd for PrivateKey
impl PartialOrd for PrivateKey
impl Copy for PrivateKey
impl Eq for PrivateKey
impl StructuralPartialEq for PrivateKey
Auto Trait Implementations§
impl Freeze for PrivateKey
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)