pub struct Signature { /* private fields */ }Expand description
A Signature is a single signature found in a note.
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn new(name: String, id: u32, sig: Vec<u8>) -> Result<Self, NoteError>
pub fn new(name: String, id: u32, sig: Vec<u8>) -> Result<Self, NoteError>
Returns a new signature from the given name and base64-encoded signature string.
§Errors
Returns NoteError::MalformedNote if the name is invalid according to is_key_name_valid.
Sourcepub fn from_bytes(line: &[u8]) -> Result<Self, NoteError>
pub fn from_bytes(line: &[u8]) -> Result<Self, NoteError>
Trait Implementations§
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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