A canonical, offline source-ownership routing companion for a draft proposal.
This artifact reads only caller-supplied declaration bytes and the exact proposal candidate. Its owner labels are opaque, declared, and unverified; they are routing hints, never identities, permissions, or assignments.
Summary
Functions
Builds routing hints from an exact proposal and direct declaration bytes.
Validates standalone canonical structure and content identity only.
Recomputes routing from the exact proposal and exact declaration bytes.
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 new(term(), binary()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Builds routing hints from an exact proposal and direct declaration bytes.
@spec validate(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Validates standalone canonical structure and content identity only.
@spec validate_with_proposal(term(), term(), binary()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
Recomputes routing from the exact proposal and exact declaration bytes.