Struct minisign::PublicKeyBox [−][src]
pub struct PublicKeyBox(_);
A public key and its metadata.
A PublicKeyBox
represents a raw public key, along with a key
identifier and an untrusted description.
This is what usually gets exported to disk.
A PublicKeyBox
can be directly converted to/from a single-line string.
Implementations
impl PublicKeyBox
[src]
impl PublicKeyBox
[src]pub fn from_string(s: &str) -> Result<PublicKeyBox>
[src]
Create a new PublicKeyBox
from a string.
pub fn into_string(self) -> String
[src]
Return a PublicKeyBox
for a string, for storage.
pub fn into_public_key(self) -> Result<PublicKey>
[src]
Convert a PublicKeyBox
to a string, for storage.
pub fn to_bytes(&self) -> Vec<u8>
[src]
Return a byte representation of the public key, for storage.
Trait Implementations
impl Clone for PublicKeyBox
[src]
impl Clone for PublicKeyBox
[src]fn clone(&self) -> PublicKeyBox
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicKeyBox
impl RefUnwindSafe for PublicKeyBox
impl Send for PublicKeyBox
impl Send for PublicKeyBox
impl Sync for PublicKeyBox
impl Sync for PublicKeyBox
impl Unpin for PublicKeyBox
impl Unpin for PublicKeyBox
impl UnwindSafe for PublicKeyBox
impl UnwindSafe for PublicKeyBox