pub struct QSig {
pub version: u8,
pub alg: String,
pub digest: Vec<u8>,
pub sig: Vec<u8>,
pub co_sig: Vec<ByteBuf>,
pub tst: Option<ByteBuf>,
pub tlog: Option<Transparency>,
pub signer: Signer,
pub time_unix: i64,
pub domain_sep: String,
pub meta: Option<ByteBuf>,
}Expand description
Canonical .qsig representation. All fields have a fixed position.
Fields§
§version: u8§alg: String§digest: Vec<u8>§sig: Vec<u8>§co_sig: Vec<ByteBuf>§tst: Option<ByteBuf>§tlog: Option<Transparency>§signer: Signer§time_unix: i64§domain_sep: String§meta: Option<ByteBuf>Implementations§
Source§impl QSig
impl QSig
Sourcepub fn new(
version: u8,
alg: String,
digest: Vec<u8>,
sig: Vec<u8>,
co_sig: Vec<Vec<u8>>,
tst: Option<Vec<u8>>,
tlog: Option<Transparency>,
signer: Signer,
time_unix: i64,
domain_sep: String,
meta: Option<Vec<u8>>,
) -> Self
pub fn new( version: u8, alg: String, digest: Vec<u8>, sig: Vec<u8>, co_sig: Vec<Vec<u8>>, tst: Option<Vec<u8>>, tlog: Option<Transparency>, signer: Signer, time_unix: i64, domain_sep: String, meta: Option<Vec<u8>>, ) -> Self
Convenience constructor from raw field values.
Sourcepub fn co_signatures(&self) -> impl Iterator<Item = &[u8]>
pub fn co_signatures(&self) -> impl Iterator<Item = &[u8]>
Iterate over co-signature blobs as raw byte slices.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QSig
impl<'de> Deserialize<'de> for QSig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QSig
impl StructuralPartialEq for QSig
Auto Trait Implementations§
impl Freeze for QSig
impl RefUnwindSafe for QSig
impl Send for QSig
impl Sync for QSig
impl Unpin for QSig
impl UnwindSafe for QSig
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