pub fn canonical_example() -> Result<String>Expand description
Emits the canonical example instance, pretty-printed for the document.
The value is parsed and validated as a Payload, re-serialized to its
JCS form, and then indented. Key order is JCS key order; indentation is two
spaces. The output is deterministic.
§Errors
Returns an error if the canonical test vector fails payload validation or cannot be serialized — either of which is a defect in this crate.