Function hashcash::check_with_params[][src]

pub fn check_with_params(
    stamp: &str,
    resource: Option<&str>,
    bits: Option<u32>,
    expiration: Option<DateTime<Utc>>
) -> Result<bool, HcError>

Check whether a stamp is valid

Optionally, the stamp may be checked for a specific resource, and/or it may require a minimum bit value, and/or it may be checked for expiration, and/or it may be checked for double spending.

If ‘check_expiration’ is specified, it should contain an expiration DateTime

NOTE: Every valid (version 1) stamp must meet its claimed bit value NOTE: Check floor of 4-bit multiples (overly permissive in acceptance) “”“