Sigstore signing and verification for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

mdx: switch doc-example printers from Format/Printf to Fmt

Repo convention is to use the `fmt` library's Fmt.pr / Fmt.epr / etc.
in code, and the recently added mdx examples drifted to
Format.eprintf / Printf.eprintf out of habit. Brought them back into
line so a reader copy-pasting the example doesn't pick up the
wrong style.

Touches the {[ ... ]} blocks in:
- ocaml-collision/lib/collision.mli
- ocaml-cose/lib/cose.mli
- ocaml-delegation/lib/delegation.mli
- ocaml-gdocs/lib/gdocs.mli (also added fmt to the mdx libraries)
- ocaml-runc/lib/runc.mli (also added fmt to the mdx libraries; \n
format escapes became @. for consistency)
- ocaml-sigstore/lib/sigstore.mli

+3 -3
+3 -3
lib/sigstore.mli
··· 29 29 Sigstore.sign session ~now ~id_token 30 30 ~artifact:(Sigstore.Artifact.of_string "hello world") 31 31 with 32 - | Error e -> Format.eprintf "Signing failed: %a@." Sigstore.pp_error e 32 + | Error e -> Fmt.epr "Signing failed: %a@." Sigstore.pp_error e 33 33 | Ok bundle -> ( 34 34 (* Verify *) 35 35 match Sigstore.verify session ~now bundle with 36 - | Ok identity -> Format.printf "Signed by %s@." identity.email 36 + | Ok identity -> Fmt.pr "Signed by %s@." identity.email 37 37 | Error e -> 38 - Format.eprintf "Verification failed: %a@." Sigstore.pp_error e) 38 + Fmt.epr "Verification failed: %a@." Sigstore.pp_error e) 39 39 ]} *) 40 40 41 41 (** {1 Hash Algorithms}