Skip to main content
ClaudeWave

Verify and settle VSL Settlement Receipts. Verification needs no account, no network, and nothing from the issuer.

ToolsRegistry oficial0 estrellas0 forksPythonApache-2.0Actualizado today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Last scanned: 9/17/2026
Get started
Method: Clone
Terminal
git clone https://github.com/SemanticDataCharter/sdcreceipt
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Casos de uso

Resumen de Tools

# sdcreceipt

<!-- mcp-name: io.github.SemanticDataCharter/sdcreceipt -->

Verify and settle VSL Settlement Receipts.

**Verification needs no account, no network, and nothing from the issuer.**
That is the point of the tool: a claim that anyone can check a Receipt
independently is worth exactly as much as the ability to do it.

Apache-2.0.

```bash
pip install sdcreceipt
```

## Four verbs

```bash
# Check a Receipt you were sent. Offline.
sdcreceipt verify receipt.json --keys issuer-keys.json

# Set yourself up as a party: keypair + the document to publish.
sdcreceipt init --key-id https://vendor.example/.well-known/vsl-key.json

# Authorize a settlement you are a party to.
sdcreceipt trigger receipt.json --key vsl-party.pem \
    --key-id https://vendor.example/.well-known/vsl-key.json

# Ask an issuer for a Receipt. The one verb that needs an account.
sdcreceipt settle payload.xml \
    --party https://vendor.example/.well-known/vsl-key.json \
    --party did:web:partner.example
```

`settle` prompts for anything it needs and was not given. Two of its fields are
not guessable and never were: the release condition is hashed by the issuer and
never stored, and `current_state`/`target_state` come from a governance workflow
defined in a schema the issuer holds, not you.

If the issuer refuses the transition it answers with the ones it would have
accepted, and `settle` prints them:

```
Governance evaluation produced no Receipt. Decision was DENY

From 'draft' you can go to: review

This model's workflow:
  standard: draft -> review -> published
```

It exits 2 there, and 1 on a real failure, so a script can tell "ask again
differently" from "something is broken".

`verify` exits 0 only if every check passed, so it composes in a shell without
anyone parsing output.

That is the whole surface. This is a client, not a product, and its value is in
being small enough to read.

## Try it without reading anything

```bash
python examples/settle.py
```

One settlement end to end: two parties, two signatures, verified offline. No
account, no network, no API key. See [`examples/`](examples/).

## For an agent

Three of the four verbs over MCP, in the same package:

```bash
sdcreceipt-mcp --key vsl-party.pem \
    --key-id https://vendor.example/.well-known/vsl-key.json
```

Exposes `verify_receipt`, `sign_trigger` and `settle`. Each is advertised only
when the server has what it needs, so a tool is never offered whose every call
would fail.

Two deliberate omissions, and they are the security posture rather than an
oversight (see also [SECURITY.md](SECURITY.md)):

- **No key generation.** A private key generated inside an agent session has no
  clear custody story. `init` stays a human act at a terminal.
- **No submission.** `sign_trigger` returns a signed trigger for you to submit.
  Submitting takes a destination from the caller, and a signed trigger plus an
  arbitrary host is the combination worth refusing.

`settle` is available when the server is started with `--endpoint` and a token,
and it is the only tool that reaches the network. The endpoint is fixed at
start-up exactly like the key, so a caller can never redirect where a payload
goes. **No tool takes a URL**, and that is the invariant to keep if this ever
grows another one.

The signing key is given at start-up, never in a tool call, so it does not
travel through the conversation.

---

## If you were sent a Receipt

You do not need an account with anyone. You need the issuer's published key
document and, for a settled Receipt, each party's. The Receipt names the
parties by the URIs they publish their keys at; the issuer's key document is at
a fixed well-known path.

```bash
pip install sdcreceipt
curl -O https://sdcstudio.axius-sdc.com/.well-known/sdcstudio-signing-keys.json
curl -o vendor-keys.json  https://vendor.example/.well-known/vsl-key.json
curl -o partner-keys.json https://partner.example/.well-known/did.json
sdcreceipt verify receipt.json \
    --keys sdcstudio-signing-keys.json --keys vendor-keys.json --keys partner-keys.json
```

Every check is reported, not just the first failure:

```
PASS  receipt_hash: matches the canonical content
PASS  signature[sdcstudio-signing-key-v1]: verifies over receipt_hash
PASS  trigger[https://vendor.example/.well-known/vsl-key.json]: verifies over {condition_hash, receipt_id}
PASS  trigger[did:web:partner.example]: verifies over {condition_hash, receipt_id}
PASS  triggers.unique: one trigger per party
PASS  settlement.complete: every listed party has triggered

VERIFIED
```

With only the issuer's document, the issuer signature and the hashes are
checked and `settlement.complete` is recorded as unestablished, so the Receipt
does **not** verify: whether every party triggered is a claim about
authorization, and no trigger signature was checked. That is the correct
answer, not a defect. Pass `--schema settlement-receipt-1.0.schema.json` as
well to check the shape first (`pip install 'sdcreceipt[schema]'`).

A Receipt carries **hash commitments, never the payload**. So verification
tells you a conformant, authorized, dual-triggered exchange occurred, without
anyone having to disclose what was exchanged. If you also hold the payload or
the governance Receipt, pass them and those get checked too:

```bash
sdcreceipt verify receipt.json --keys keys.json \
    --payload manifest.xml --governance governance-receipt.json
```

## If you need to become a party

A settlement identifies each party by a `key_id` that **you** control. That is
deliberate: it means verifying your signature does not route through the
issuer, so nobody has to stay alive for your old signatures to keep meaning
something.

```bash
sdcreceipt init --key-id https://vendor.example/.well-known/vsl-key.json
```

That writes a private key (mode `0600`) and a key document, and tells you the
exact URL the document must be reachable at. Publishing one JSON file is the
whole onboarding requirement.

Then, when you are sent a Receipt to authorize:

```bash
sdcreceipt trigger receipt.json --key vsl-party.pem --key-id <your key_id>
```

It prints a signed trigger and stops. **Signing is inert; submitting is a side
effect**, so you send it yourself, or add `--submit <url>`.

---

## ★ Never take the verification key from the document

> The set of keys you will accept is decided **before** you read the document,
> and the document cannot change it.

`ds:RetrievalMethod` in XML-Signature, `jku` and `x5u` in JOSE, and their
equivalents elsewhere all say *"here is where my key lives."* That pointer was
written by whoever produced the document, so following it asks the document to
nominate the key that will judge it. A forged document nominates the forger's
key and verification "succeeds."

The failure is quiet. A pointer can name a domain that was correct when the
document was signed and has since lapsed; anyone who registers it can serve a
key at that path, and nothing about the document looks wrong — because nothing
about it *is* wrong. The verifier was asked where to look and did as it was
told.

This tool cannot make that mistake: `verify` takes keys as arguments and has
no code path that fetches one. That is a security property, not an
inconvenience.

The same applies to party keys, with a corollary rather than an exemption.
Those `key_id`s *are* URIs the counterparty controls, deliberately. Resolve
them over HTTPS only, only for identifiers already recorded in a Receipt you
trust, and keep a copy — a party who later loses a domain must not be able to
change what their old signatures mean.

Supply them, too. Party keys are optional in the sense that the issuer
signature and the payload hash can be checked without them, and **not** in the
sense that a settled Receipt means anything without them. Whether every party
triggered is a claim about authorization, so with no key to check a signature
against, `settlement.complete` is recorded as unestablished rather than passed
and the Receipt does not verify. Before 4.2.1 it passed on a comparison of
`key_id` strings alone, which reported VERIFIED over fabricated triggers.

---

## Conformance

`tests/conformance/` ships the issuer's published vectors, and the suite runs
this implementation against them.

Eleven vectors. **Every invalid one encodes a defect that was actually made**,
not a hypothetical: a DER signature where ES256 requires P1363, a signature
over the hex text of `receipt_hash` rather than its raw bytes, a governance
binding that does not match the evidence held, a trigger replayed from another
Receipt sharing the same release condition, and so on. Failing one for the
wrong reason does not count — the manifest names the check that must break.

```bash
pytest
```

**On independence, honestly.** Passing these vectors shows this tool agrees
with the issuer's published expectations, and that it never drifted from them.
It is *not* an independent re-derivation: this implementation and the issuer's
share design and history. The vectors are most valuable to someone writing a
verifier from the specification alone, which is what they are published for.

**The canonicalization underneath them is a different case, and it has been
checked against an independent implementation.** Every hash in a Receipt is
taken over RFC 8785 canonical bytes, so agreement on canonicalization is what
the rest of the verification rests on. In September 2026 that agreement was
tested in both directions with the MTCP project (Ahmad Abby), which implements
RFC 8785 using Trail of Bits `rfc8785` rather than `sdcgovernance`:

- MTCP's five published vectors were run against `sdcgovernance.jcs`.
  Byte-for-byte agreement on the canonical string and on SHA-256, for every
  vector. The set is a clean regeneration published 9 September 2026, carrying
  synthetic values in the real schema: `audit_record`, `evaluation_summary`,
  `score_record`, `sensor_calibration` and `arabic_content`. It **supersedes**
  the four-vector set of 1 September, and t

Lo que la gente pregunta sobre sdcreceipt

¿Qué es SemanticDataCharter/sdcreceipt?

+

SemanticDataCharter/sdcreceipt es tools para el ecosistema de Claude AI. Verify and settle VSL Settlement Receipts. Verification needs no account, no network, and nothing from the issuer. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-17.

¿Cómo se instala sdcreceipt?

+

Puedes instalar sdcreceipt clonando el repositorio (https://github.com/SemanticDataCharter/sdcreceipt) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar SemanticDataCharter/sdcreceipt?

+

Nuestro agente de seguridad ha analizado SemanticDataCharter/sdcreceipt y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene SemanticDataCharter/sdcreceipt?

+

SemanticDataCharter/sdcreceipt es mantenido por SemanticDataCharter. La última actividad registrada en GitHub es del 2026-09-17, con 4 issues abiertos.

¿Hay alternativas a sdcreceipt?

+

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

Despliega sdcreceipt en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: SemanticDataCharter/sdcreceipt
[![Featured on ClaudeWave](https://claudewave.com/api/badge/semanticdatacharter-sdcreceipt)](https://claudewave.com/repo/semanticdatacharter-sdcreceipt)
<a href="https://claudewave.com/repo/semanticdatacharter-sdcreceipt"><img src="https://claudewave.com/api/badge/semanticdatacharter-sdcreceipt" alt="Featured on ClaudeWave: SemanticDataCharter/sdcreceipt" width="320" height="64" /></a>

Más Tools

Alternativas a sdcreceipt