at_identifier library
Functions
-
ensureValidDid(
String did) → void - Human-readable constraints:
-
ensureValidHandle(
String handle) → void - Handle constraints, in English:
-
isValidHandle(
String handle) → bool -
Returns true if
handle
is valid, otherwise false. -
normalizeAndEnsureValidHandle(
String handle) → String -
Returns the lower cased
handle
after validation by ensureValidHandle. -
normalizeHandle(
String handle) → String -
Returns the lower cased
handle
.
Exceptions / Errors
- InvalidDidError
- Thrown to indicate that DID didn't valid.
- InvalidHandleError
- Thrown to indicate that handle didn't valid.