//! Shared client-side input validators.
use crateError;
/// Validate that a string is a 64-character lowercase hex SHA-256 digest.
///
/// Returns a [`ValidationError`](crate::error::ApiErrorKind::Validation) with a
/// helpful message when it isn't. Applied to `document_hash`, `payload_hash`,
/// and `content_hash` before they are sent to the API.
pub