Skip to main content

Module note

Module note 

Source
Expand description

C2SP signed note format.

Structs§

C2spSignature
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.)
NoteSignature
A parsed signature from a signed note.

Functions§

build_signature_line
Build a C2SP signature line: — <key_name> <base64(alg_byte + key_id + signature)>.
compute_ecdsa_key_id
Compute a C2SP key ID for an ECDSA-P256 signer from its DER-encoded SPKI key.
compute_key_id
Compute a C2SP key ID from a key name and Ed25519 public key.
parse_signed_note
Parse a C2SP signed note into its body and signature components.
parse_signed_note_c2sp
Parse a signed note whose signatures use the standard C2SP wire layout.
serialize_signed_note
Serialize a signed note from body text and signatures.