Skip to main content

USAGE

Constant USAGE 

Source
pub const USAGE: &str = "\
proof-cli — Proof Engine command line (V1.0)

Exit codes: 0 = PASS/valid, 1 = FAIL/INDETERMINATE verdict, 2 = usage or engine error.
All commands accept --quiet to suppress progress output on stderr.

Creation commands (write JSON artifact files wrapping canonical CBOR bytes):
  create-event --type <event.type> --subject <id> --effective-at <u64>
               --payload-hex <64 hex> [--meta k=v,...] --out <file>
  attest       --seed <test|64hex> --subject <id> --claim-type <t> [--claim k=v,...]
               --issued-at <u64> [--expires-at <u64>] [--evidence-ref <id>] --out <file>
  add-evidence --kind <kind> --digest-hex <64 hex> [--attestation-ref <id>] [--hint <t>]
               --out <file>
  relate       --from <id> --type <TYPE> --to <id> [--evidence-ref <id>]
               [--attestation-ref <id>] --out <file>
  build        --kind <t> --subject <s> --predicate <p> [--object <o>] [--at-time <u64>]
               [--context k=v,...] --created-at <u64> --events <f[,f…]>
               --attestations <f[,f…]> --evidence <f[,f…]> --relationships <f[,f…]>
               --out <file>
  revoke       --seed <test|64hex> --target <id> [--reason <t>] --at <u64> --out <file>
  supersede    --seed <test|64hex> --old <id> --new <id> --at <u64> --out <file>

Verification commands:
  verify       --proof <file> --clock <u64> [--skew <u64=300>]
               [--revocations-known-at <u64>] [--status <file>]… [--authority <keyref>]…
  evaluate     --proof <file> --policy <file> --clock <u64> [--skew <u64=300>]
               [--trusted <keyref>]… [--revoked <id,id,…>] [--revocations-known-at <u64>]
                [--json] — machine-readable policy_outcome + report JSON on stdout
  explain      (same flags as evaluate; prints the full explanation)

  demo         [--out <dir>=demo/out] — deterministic end-to-end killer use-case
  help         — this text

Artifacts are JSON wrappers around canonical CBOR bytes (hex); bytes are
re-verified on every load — ids recomputed, signatures checked. Seeds are for
demos/tests only; production key handling is out of scope for V1.0.
Prefer --seed-file <path> over --seed <hex>: raw key material in argv is
visible to ps(1) and shell history; the two flags never combine.";