Struct jwtk::eddsa::Ed25519PrivateKey
source · [−]pub struct Ed25519PrivateKey { /* private fields */ }
Implementations
sourceimpl Ed25519PrivateKey
impl Ed25519PrivateKey
pub fn generate() -> Result<Self>
pub fn from_bytes(b: &[u8]) -> Result<Self>
pub fn from_pem(pem: &[u8]) -> Result<Self>
pub fn private_key_bytes(&self) -> Result<[u8; 32]>
pub fn public_key_bytes(&self) -> Result<[u8; 32]>
pub fn private_key_to_pem_pkcs8(&self) -> Result<String>
pub fn public_key_to_pem(&self) -> Result<String>
Trait Implementations
sourceimpl Clone for Ed25519PrivateKey
impl Clone for Ed25519PrivateKey
sourcefn clone(&self) -> Ed25519PrivateKey
fn clone(&self) -> Ed25519PrivateKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Ed25519PrivateKey
impl Debug for Ed25519PrivateKey
sourceimpl From<Ed25519PrivateKey> for SomePrivateKey
impl From<Ed25519PrivateKey> for SomePrivateKey
sourcefn from(k: Ed25519PrivateKey) -> SomePrivateKey
fn from(k: Ed25519PrivateKey) -> SomePrivateKey
Converts to this type from the input type.
sourceimpl PrivateKeyToJwk for Ed25519PrivateKey
impl PrivateKeyToJwk for Ed25519PrivateKey
fn private_key_to_jwk(&self) -> Result<Jwk>
sourceimpl PublicKeyToJwk for Ed25519PrivateKey
impl PublicKeyToJwk for Ed25519PrivateKey
fn public_key_to_jwk(&self) -> Result<Jwk>
sourceimpl SigningKey for Ed25519PrivateKey
impl SigningKey for Ed25519PrivateKey
Auto Trait Implementations
impl RefUnwindSafe for Ed25519PrivateKey
impl Send for Ed25519PrivateKey
impl Sync for Ed25519PrivateKey
impl Unpin for Ed25519PrivateKey
impl UnwindSafe for Ed25519PrivateKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more