pub struct Siger { /* private fields */ }Expand description
Cigar is Matter subclass holding a nonindexed signature with verfer property. From Matter .raw is signature and .code is signature cipher suite Adds .verfer property to hold Verfer instance of associated verifier public key Verfer’s .raw as verifier key and .code is verifier cipher suite.
Implementations§
Source§impl Siger
impl Siger
pub fn new( raw: Option<&[u8]>, code: Option<&str>, index: Option<u32>, ondex: Option<u32>, verfer: Option<Verfer>, ) -> Result<Self, MatterError>
pub fn from_raw( raw: Option<&[u8]>, verfer: Option<Verfer>, ) -> Result<Self, MatterError>
pub fn from_qb64( qb64: &str, verfer: Option<Verfer>, ) -> Result<Self, MatterError>
pub fn verfer(&self) -> Option<Verfer>
pub fn set_verfer(&mut self, verfer: Verfer)
Trait Implementations§
Source§impl Matter for Siger
impl Matter for Siger
Source§fn is_transferable(&self) -> bool
fn is_transferable(&self) -> bool
Returns whether the derivation code is transferable
Source§fn is_digestive(&self) -> bool
fn is_digestive(&self) -> bool
Returns whether the code represents a digest
Source§fn is_prefixive(&self) -> bool
fn is_prefixive(&self) -> bool
Returns whether the code represents a prefix
Source§fn is_special(&self) -> bool
fn is_special(&self) -> bool
Returns whether the code represents a prefix
fn as_any(&self) -> &dyn Any
Auto Trait Implementations§
impl Freeze for Siger
impl RefUnwindSafe for Siger
impl Send for Siger
impl Sync for Siger
impl Unpin for Siger
impl UnsafeUnpin for Siger
impl UnwindSafe for Siger
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