sdcreceipt

v4.5.0
io.github.SemanticDataCharter/sdcreceipt Checked 2 days ago Published 16 days ago

Verify and settle VSL Settlement Receipts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

verify_receipt

Verify a VSL Settlement Receipt. Runs every check and reports all of them, including the ones that passed, rather than stopping at the first failure. Requires no network and no account: the issuer key document is supplied by the caller. Use this to decide whether a Receipt you were sent is trustworthy before acting on it.

ParameterTypeDescription
issuer_keys *objectThe issuer's published key document, as JSON. Either the key-set shape with a `keys` array, or a did:web DID document.
receipt *objectThe Settlement Receipt document to verify.
chainarrayOptional. Earlier Receipts you hold. When given, previous_hash is followed back to the head and every Receipt on the way runs the full procedure; an empty array is still a chain, with nothing held. Ne…
governance_receiptobjectOptional. The governance Receipt, if held.
party_keysobject | arrayOptional. A party key document, or an array of them (one per party; links in one chain can have different parties), to verify triggers. A key_id two documents claim is refused. Omitting it skips the t…