[−][src]Struct minisign::PublicKey
A PublicKey
is used to verify signatures.
Methods
impl PublicKey
[src]
pub fn from_bytes(buf: &[u8]) -> Result<PublicKey>
[src]
Deserialize a PublicKey
.
For storage, a PublicKeyBox
is usually what you need instead.
pub fn to_bytes(&self) -> Vec<u8>
[src]
Serialize a PublicKey
.
For storage, a PublicKeyBox
is usually what you want to use instead.
pub fn from_box(pk_box: PublicKeyBox) -> Result<PublicKey>
[src]
Convert a PublicKeyBox
to a PublicKey
.
pub fn to_box(&self) -> Result<PublicKeyBox>
[src]
Convert a PublicKey
to a PublicKeyBox
.
pub fn from_base64(pk_string: &str) -> Result<PublicKey>
[src]
Create a minimal public key from a base64-encoded string.
pub fn to_base64(&self) -> String
[src]
Encode a public key as a base64-encoded string.
pub fn from_file<P>(pk_path: P) -> Result<PublicKey> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Load a PublicKeyBox
from a file, and returns a PublicKey
from it.
Trait Implementations
impl Into<PublicKey> for PublicKeyBox
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<PublicKey> for PublicKey
[src]
fn eq(&self, other: &PublicKey) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for PublicKey
[src]
impl Debug for PublicKey
[src]
Auto Trait Implementations
impl Unpin for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self