ecashaddr/validation library

Functions

validate(bool condition, String message) → void
Validates a given condition, throwing a ValidationError if the given condition does not hold.

Exceptions / Errors

ValidationError
Error thrown when encoding or decoding fail due to invalid input.