pub fn validate_canonical(input: &[u8]) -> Result<()>Expand description
Validates that an input is syntactically valid and canonically encoded.
ยงErrors
Returns syntax/resource errors from parsing or canonical errors with precise source offsets for non-minimal integers and lengths, unsorted keys, or duplicate dictionary keys.