Resources
Downloads
The machine-readable contracts, test vectors and examples behind these docs. They’re published together, in the versions the pages describe.
Contracts
| File | Contents | Version |
|---|---|---|
| operator-api.v1.yaml | The Operator API your backend calls. OpenAPI 3.1.2, YAML. | 1.0.0-draft.8 |
| wallet-api.v1.yaml | The Wallet API your Wallet implements. OpenAPI 3.1.2 in JSON syntax, which YAML parsers read as well. | 1.0.0-draft.1 |
The OpenAPI documents are the source of truth for fields and status codes. The Operator API document lists the transport errors that any operation can return, such as 413, 503 service_overloaded and 504, once, in its x-http-transport-policy extension, not in each operation’s responses; see Conventions. They describe the token and signature headers but can’t express the signature profile itself, so a generated client still needs a signer such as ours. Their examples use reserved example.com domains and fictional values.
Signing test vectors
| File | Contents |
|---|---|
| operator-request-vectors-v1.json | A signed GET and a signed POST of the Operator API: inputs, signature base, Signature-Input and expected Signature. See Test vectors. |
| wallet-request-vectors-v1.json | A signed GET and a signed POST of the Wallet API, as your Wallet receives them from us. |
Both files are signed with a published test key whose seed is the byte sequence 00 to 1f. Never trust that key, or the fictional tokens in the files, outside your tests.
Code examples
| File | Contents |
|---|---|
| operator-request-signer.mjs | Signs Operator API requests, as a module or from the command line. Node.js 22 or later, no dependencies. |
| wallet-request-verifier.mjs | Verifies our requests to your Wallet, with a development-only replay registry. Node.js 22 or later, no dependencies. |
Both examples reproduce the vectors above in our test suite. Use them as references for your own stack, and review them like any code you adopt.