Struct ipfs_embed::identity::ecdsa::SecretKey
[−]pub struct SecretKey(_);
Expand description
An ECDSA secret key.
Implementations
impl SecretKey
impl SecretKey
pub fn sign(&self, msg: &[u8]) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn sign(&self, msg: &[u8]) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Sign a message with this secret key, producing a DER-encoded ECDSA signature.
pub fn to_bytes(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn to_bytes(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encode a secret key into a byte buffer.
pub fn from_bytes(buf: &[u8]) -> Result<SecretKey, DecodingError>
pub fn from_bytes(buf: &[u8]) -> Result<SecretKey, DecodingError>
Decode a secret key from a byte buffer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more