Struct c509_certificate::signing::PublicKey
source · pub struct PublicKey(VerifyingKey);
Expand description
Ed25519 public key instance.
Wrapper over ed25519_dalek::VerifyingKey
.
Tuple Fields§
§0: VerifyingKey
Implementations§
source§impl PublicKey
impl PublicKey
sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
Create new public key from file decoded in PEM format.
§Errors
Returns an error if the file cannot be opened or read.
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create new public key from raw bytes.
§Errors
Returns an error if the provided bytes are not a valid public key.
Trait Implementations§
source§impl FromWasmAbi for PublicKey
impl FromWasmAbi for PublicKey
source§impl IntoWasmAbi for PublicKey
impl IntoWasmAbi for PublicKey
source§impl LongRefFromWasmAbi for PublicKey
impl LongRefFromWasmAbi for PublicKey
source§impl OptionFromWasmAbi for PublicKey
impl OptionFromWasmAbi for PublicKey
source§impl OptionIntoWasmAbi for PublicKey
impl OptionIntoWasmAbi for PublicKey
source§impl RefFromWasmAbi for PublicKey
impl RefFromWasmAbi for PublicKey
source§impl RefMutFromWasmAbi for PublicKey
impl RefMutFromWasmAbi for PublicKey
source§impl TryFromJsValue for PublicKey
impl TryFromJsValue for PublicKey
source§impl VectorFromWasmAbi for PublicKey
impl VectorFromWasmAbi for PublicKey
source§impl VectorIntoJsValue for PublicKey
impl VectorIntoJsValue for PublicKey
source§impl VectorIntoWasmAbi for PublicKey
impl VectorIntoWasmAbi for PublicKey
source§impl WasmDescribeVector for PublicKey
impl WasmDescribeVector for PublicKey
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.