Expand description
C2SP signed note format.
Structs§
- C2sp
Signature - 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. (ContrastNoteSignature, whose leading algorithm byte is an auths-internal extension produced bybuild_signature_line— using that parser on a standard note misaligns the key ID and signature by one byte.) - Note
Signature - 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.