Function assertHashHex

  • Assert hash hex format or throw.

    Parameters

    • s: string

    Returns asserts s is string

    assertHashHex('be5c7f...') // throws if malformed