Latch.DID (latch v0.1.0)

Copy Markdown

DID syntax validation per the atproto DID spec.

Validates syntax only. did:web is additionally required to be hostname-only (no path or port), per atproto.

Summary

Functions

Validates atproto DID syntax. For did:web, also requires the method-specific identifier to be a bare hostname.

Functions

valid?(did)

@spec valid?(String.t()) :: boolean()

Validates atproto DID syntax. For did:web, also requires the method-specific identifier to be a bare hostname.