Skip to main content

ash_validate_timestamp_format

Function ash_validate_timestamp_format 

Source
pub fn ash_validate_timestamp_format(timestamp: &str) -> Result<u64, AshError>
Expand description

Validate timestamp format only (not freshness).

§BUG-007 & BUG-012

Validates that timestamp:

  • Contains only ASCII digits (no whitespace, no signs)
  • Has no leading zeros (except “0” itself) - BUG-038
  • Parses as valid u64
  • Is within reasonable bounds

This is used by verification functions to ensure well-formed input. For freshness validation, use ash_validate_timestamp().