Skip to main content

canonical_example_06

Function canonical_example_06 

Source
pub fn canonical_example_06() -> Result<String>
Expand description

Emits the canonical example instance for the 0.6 profile, pretty-printed.

Same construction as canonical_example but starts from the 0.5 minimal vector with spec changed to wilder.pser/0.6. Uses Payload::from_json_for_production so the chain.hash is recomputed for the 0.6 JCS form rather than inherited from the 0.5 vector.

ยงErrors

Returns an error if the 0.6 payload fails validation (including the timestamp containment check) or cannot be serialized.