pub struct DefaultPrivateKey { /* private fields */ }
Implementations§
source§impl DefaultPrivateKey
impl DefaultPrivateKey
pub fn generate() -> Self
pub fn sign(&self, msg: [u8; 32]) -> DefaultSignature
pub fn pub_key(&self) -> DefaultPublicKey
pub fn as_hex(&self) -> String
pub fn from_hex( hex: &str ) -> Result<Self, DefaultPrivateKeyHexDeserializationError>
pub fn default_address(&self) -> Address
Auto Trait Implementations§
impl RefUnwindSafe for DefaultPrivateKey
impl Send for DefaultPrivateKey
impl Sync for DefaultPrivateKey
impl Unpin for DefaultPrivateKey
impl UnwindSafe for DefaultPrivateKey
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