Gunnar

nordisk/heimdall

docs/CLI.md

The heimdall command line

Heimdall is a defensive sandbox. Milestone 1 runs wasm jobs only.

heimdall run --job wasm --module <guest.wasm> --trust-root <root.der>... --in <dir> --out <dir>
             [--policy <file>] [--pin-out <file>] [--pin-blake3 <hex>]
             [--job-id <32 hex>] [--nonce <64 hex>] [--param key=value]...
heimdall verify-result <out>/result.signed --key <key file | key record>
             [--files <dir>] [--job-id <32 hex> --nonce <64 hex>]

Exit codes

Coderunverify-result
0the job ran and was Acceptedthe result verified and says Accepted
1—the result did not verify (signature, key, boot, ticket, outputs)
2usage error, or not in milestone 1usage error
3the job could not start (policy, trust roots, guest load, input, out dir, --pin-out)the result or key file could not be read, or the key record is malformed
4the job ran and was Refused (the signed result was written)the result verified and says Refused