Insider.Sentinel.DraftCreation.Identity (Insider Lab v0.1.0)

Copy Markdown View Source

Validators for the portable provider and disclosure-authority identities used by the draft-creation gate. An identity selects a module only from the host's configured allowlist; it can never resolve a module by itself.

Summary

Types

authority()

@type authority() :: map()

provider()

@type provider() :: map()

Functions

disclosure_authority?(identity)

@spec disclosure_authority?(term()) :: boolean()

provider?(identity)

@spec provider?(term()) :: boolean()

validate_disclosure_authority(identity)

@spec validate_disclosure_authority(term()) ::
  {:ok, authority()} | {:error, Insider.Protocol.Error.t()}

validate_provider(identity)

@spec validate_provider(term()) ::
  {:ok, provider()} | {:error, Insider.Protocol.Error.t()}