Struct minisign::SignatureBox [−][src]
pub struct SignatureBox { /* fields omitted */ }
A signature, as well as the metadata required to verify it.
Implementations
impl SignatureBox
[src]
impl SignatureBox
[src]pub fn is_prehashed(&self) -> bool
[src]
Returns true
if the signed data was pre-hashed.
pub fn untrusted_comment(&self) -> Result<String>
[src]
The untrusted comment present in the signature.
pub fn trusted_comment(&self) -> Result<String>
[src]
The trusted comment present in the signature.
pub fn keynum(&self) -> &[u8]
[src]
The key identifier used to create the signature.
pub fn from_string(s: &str) -> Result<SignatureBox>
[src]
Create a new SignatureBox
from a string.
pub fn to_string(&self) -> String
[src]
Return a SignatureBox
for a string, for storage.
pub fn into_string(self) -> String
[src]
Convert a SignatureBox
to a string, for storage.
pub fn to_bytes(&self) -> Vec<u8>
[src]
Return a byte representation of the signature, for storage.
pub fn from_file<P>(sig_path: P) -> Result<SignatureBox> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Load a SignatureBox
from a file.
Trait Implementations
impl Clone for SignatureBox
[src]
impl Clone for SignatureBox
[src]fn clone(&self) -> SignatureBox
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Into<SignatureBones> for SignatureBox
[src]
impl Into<SignatureBones> for SignatureBox
[src]fn into(self) -> SignatureBones
[src]
impl Into<SignatureBox> for SignatureBones
[src]
impl Into<SignatureBox> for SignatureBones
[src]fn into(self) -> SignatureBox
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignatureBox
impl RefUnwindSafe for SignatureBox
impl Send for SignatureBox
impl Send for SignatureBox
impl Sync for SignatureBox
impl Sync for SignatureBox
impl Unpin for SignatureBox
impl Unpin for SignatureBox
impl UnwindSafe for SignatureBox
impl UnwindSafe for SignatureBox