pub struct C2spSignature {
pub key_name: String,
pub key_id: [u8; 4],
pub signature: Vec<u8>,
}Expand description
A signature parsed in the standard C2SP signed-note wire layout:
base64(key_id[4] || signature), with NO leading algorithm byte. Sigstore
Rekor and every C2SP-conformant witness emit this layout. (Contrast
NoteSignature, whose leading algorithm byte is an auths-internal extension
produced by build_signature_line — using that parser on a standard note
misaligns the key ID and signature by one byte.)
Fields§
§key_name: StringThe signer’s key name (text after — , before the first space).
key_id: [u8; 4]4-byte key ID (big-endian uint32) identifying the signer’s key.
signature: Vec<u8>Raw signature bytes (for ECDSA: the ASN.1 DER ECDSA-Sig-Value).
Trait Implementations§
Source§impl Clone for C2spSignature
impl Clone for C2spSignature
Source§fn clone(&self) -> C2spSignature
fn clone(&self) -> C2spSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for C2spSignature
impl RefUnwindSafe for C2spSignature
impl Send for C2spSignature
impl Sync for C2spSignature
impl Unpin for C2spSignature
impl UnsafeUnpin for C2spSignature
impl UnwindSafe for C2spSignature
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