pub struct Siger<'a> { /* private fields */ }Available on crate feature
core only.Expand description
An indexed signature primitive.
Wraps an Indexer (which holds the code, index, ondex, and raw signature
bytes) and optionally carries the Verfer (verification key) associated
with the signer index.
Construct a Siger by first building an Indexer via
IndexerBuilder, then passing it to
Siger::new.
Implementations§
Source§impl<'a> Siger<'a>
impl<'a> Siger<'a>
Sourcepub const fn new(indexer: Indexer<'a>) -> Self
pub const fn new(indexer: Indexer<'a>) -> Self
Creates a new Siger from an Indexer, with no attached verfer.
Sourcepub fn with_verfer(self, verfer: Verfer<'a>) -> Self
pub fn with_verfer(self, verfer: Verfer<'a>) -> Self
Builder method: attaches a Verfer (verification key) to this siger.
Sourcepub const fn code(&self) -> IndexedSigCode
pub const fn code(&self) -> IndexedSigCode
Returns the CESR indexed signature code.
Sourcepub const fn ondex(&self) -> Option<u32>
pub const fn ondex(&self) -> Option<u32>
Returns the “other index” (prior-next key list index), if present.
Sourcepub const fn verfer(&self) -> Option<&Verfer<'a>>
pub const fn verfer(&self) -> Option<&Verfer<'a>>
Returns a reference to the attached verfer, if any.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Siger<'a>
impl<'a> RefUnwindSafe for Siger<'a>
impl<'a> Send for Siger<'a>
impl<'a> Sync for Siger<'a>
impl<'a> Unpin for Siger<'a>
impl<'a> UnsafeUnpin for Siger<'a>
impl<'a> UnwindSafe for Siger<'a>
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