A canonical record of one disclosure authority's draft-creation decision.
Standalone validation establishes only the record's content identity. Trusting an approval requires exact recomputation from the payload, provider, authority, and opaque decision reference supplied by the configured authority boundary. SHA-256 provides identity, not authenticity.
Summary
Functions
Validates canonical structure and record identity, not trusted approval.
Recomputes the record from the exact authority-bound inputs.
Types
Functions
@spec canonical_binary(term()) :: {:ok, binary()} | {:error, Insider.Protocol.Error.t()}
@spec decode(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
@spec validate(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Validates canonical structure and record identity, not trusted approval.
@spec validate_with(term(), term(), term(), term(), term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Recomputes the record from the exact authority-bound inputs.