Skip to main content

stave attest sign

Sign a snapshot's assets with an Ed25519 private key

Usage

stave attest sign [flags]

Description

Sign a snapshot's assets array with an Ed25519 private key and produce an attested snapshot with an inline attestation field.

Inputs: --snapshot PATH Path to observation snapshot JSON (required) --key PATH Path to Ed25519 private key PEM (required) --key-id STRING Key identifier embedded in signature --out PATH Write attested snapshot to file (default: stdout)

Outputs: stdout Attested snapshot JSON (unless --out is set)

Exit Codes: 0 Signing succeeded 2 Invalid input

Flags

FlagTypeDescription
--keystringPath to Ed25519 private key PEM (required)
--key-idstringKey identifier for the signature
--outstringWrite attested snapshot to file
--snapshotstringPath to snapshot JSON (required)

Examples

stave attest sign --snapshot obs.json --key private.pem
stave attest sign --snapshot obs.json --key private.pem --out attested.json