CharterAgreementProtocol.Chain (Charter Agreement Protocol v0.2.0)

Copy Markdown View Source

CAP never authorizes.

Pure set-level charter verification and view-relative governing computation.

Set verification re-verifies every artifact and reports signed conflicts as facts. Governing computation uses only verified facts plus a caller-supplied UTC instant; it never reads a clock and never tie-breaks a contested view.

Summary

Functions

Compute the unique governing revision in this verified view at one UTC instant.

Verify a complete caller-supplied charter artifact view.

Functions

governing_revision(facts, at)

@spec governing_revision(term(), term()) ::
  {:ok, binary() | :contested | :none}
  | {:error, CharterAgreementProtocol.Error.t()}

Compute the unique governing revision in this verified view at one UTC instant.

verify(revisions, acceptances, descriptors, terminations, limits)

Verify a complete caller-supplied charter artifact view.