pub struct Ed25519ExtendedKey(/* private fields */);Expand description
A Extended ED25519 Secret key
It can turns into a Ed25519PublicKey by using the .to_public() method
Implementations§
Source§impl Ed25519ExtendedKey
impl Ed25519ExtendedKey
pub fn sign(&self, data: &[u8]) -> Ed25519Signature
pub fn to_public(&self) -> Ed25519PublicKey
pub fn to_witness(&self, hash: &TxHash) -> VkeyWitness
pub fn from_bytes(key: &[u8; 64]) -> Self
pub fn to_bytes(&self) -> [u8; 64]
Trait Implementations§
Source§impl Clone for Ed25519ExtendedKey
impl Clone for Ed25519ExtendedKey
Source§fn clone(&self) -> Ed25519ExtendedKey
fn clone(&self) -> Ed25519ExtendedKey
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Ed25519ExtendedKey
impl RefUnwindSafe for Ed25519ExtendedKey
impl Send for Ed25519ExtendedKey
impl Sync for Ed25519ExtendedKey
impl Unpin for Ed25519ExtendedKey
impl UnwindSafe for Ed25519ExtendedKey
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