egulu CLI reference / egulu ledgers

egulu ledgers verify-receipt

Verify a ledger receipt offline with the public keys you pinned (ADR-0388)

egulu ledgers verify-receipt <FILE> [options]

Arguments

NameRequiredDescription
FILEyesPath to the receipt JSON an append or an entry read returned (the receipt object)

Options

OptionTakesRequiredDescription
--keysvalueyesPath to the pinned public keys: {"keys":[{"kid","alg":"ES256","spki"}]}
--ledgervaluenoThe ledger the receipt must be for, as projects/{project}/locations/{location}/ledgers/{ledger}
--payloadvaluenoOptional path to the entry's payload, to check it against the hash the platform signed

The global options apply too.