Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.66 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.66 KB

Attestation Result Command

arc (attestation result command) allows:

  • synthesising attestation results in EAR (EAT Attestation Result) format,
  • cryptographically verifying and displaying the contents of an EAR

Create

The create sub-command is used to synthesise an EAR given the full claims-set.

arc create \
    [--claims <file>] \
    [--skey <signing key>] \
    [--alg <alg>] \
    <jwt-file>

Parameters

parameter meaning
--claims EAR claims-set in JSON (default to ${PWD}/ear-claims.json)
--skey signing key in JWK format (default to ${PWD}/skey.json)
--alg JWS algorithm
<jwt-file> the signed EAR claims-set in JWT format

Output

A one-liner saying success status and path of the JWT file that was created.

Verify

The verify sub-command is used to cryptographically verify and pretty-print the contents of a EAR, including the trustworthiness vector.

arc verify \
    [--pkey <file>] \
    [--alg <alg>] \
    [--verbose] \
    [--color] \
    <jwt-file>

Parameters

parameter meaning
--pkey verification key in JWK format (default to ${PWD}/pkey.json)
--alg JWS algorithm
--verbose trustworthiness vector detailed report (default is brief)
--color trustworthiness vector report colourises the tiers (default is B&W)
<jwt-file> a JWT wrapping an EAR claims-set

Output

  • Validation status of the cryptographic signature.

If successful:

  • The EAR claims-set is printed to stdout.
  • If present, the decoded trust vector is also printed to stdout (the exact format depends on --verbose and --color).