pub struct SignatureBox<'s> { /* private fields */ }Expand description
A SignatureBox represents a minisign signature.
also can be output to a string and parse from a str.
§Security
This does not mean trusted_comment is verified.
must verify the signature by PublicKeyBox.
Implementations§
Source§impl<'s> SignatureBox<'s>
impl<'s> SignatureBox<'s>
pub fn is_prehashed(&self) -> bool
pub fn untrusted_comment(&self) -> Option<&'s str>
pub fn trusted_comment(&self) -> Option<&'s str>
pub fn key_id(&self) -> &[u8; 8]
pub fn from_str(s: &str) -> Result<SignatureBox<'_>>
Trait Implementations§
Source§impl<'s> Clone for SignatureBox<'s>
impl<'s> Clone for SignatureBox<'s>
Source§fn clone(&self) -> SignatureBox<'s>
fn clone(&self) -> SignatureBox<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'s> Debug for SignatureBox<'s>
impl<'s> Debug for SignatureBox<'s>
Auto Trait Implementations§
impl<'s> Freeze for SignatureBox<'s>
impl<'s> RefUnwindSafe for SignatureBox<'s>
impl<'s> Send for SignatureBox<'s>
impl<'s> Sync for SignatureBox<'s>
impl<'s> Unpin for SignatureBox<'s>
impl<'s> UnsafeUnpin for SignatureBox<'s>
impl<'s> UnwindSafe for SignatureBox<'s>
Blanket Implementations§
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