attest Docs

API reference

Retrieve the signing key

Returns the public key that currently signs receipts, with its SHA-256 fingerprint; no API key is required.

GET/.well-known/attest-signing-key

Overview #

Returns the public key that currently signs receipts, with its SHA-256 fingerprint; no API key is required.

No API key is required.

Request · cURL
curl https://attestinfra.com/.well-known/attest-signing-key
Request · JavaScript
const response = await fetch("https://attestinfra.com/.well-known/attest-signing-key");
console.log(response.status, await response.json());
Request · Python
import json, urllib.request
request = urllib.request.Request(
    "https://attestinfra.com/.well-known/attest-signing-key",
)
with urllib.request.urlopen(request) as response:
    print(response.status, json.loads(response.read()))

Parameters #

This endpoint takes no parameters.

Response #

200 The current signer.

Response fields #

FieldTypeDescription
public_keystringPEM-encoded SPKI public key.
fingerprintstringsha256: followed by the SHA-256 of the DER-encoded key.
fingerprint_algorithmsha256-spki-derHow the fingerprint is computed.
signature_schemeRSA-SHA256Signature algorithm.
truststringInstruction for establishing trust in the key.
statuscurrent_keyThis is the key signing new receipts.
historical_keysstringHow to obtain earlier keys.
Response · 200
{
  "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAunPmbxD3V6ArXURVlF+6\n...\n-----END PUBLIC KEY-----\n",
  "fingerprint": "sha256:552054128c0ca6f3fe6b6ef38e062f22593705e2e10a648a20418434f53b5e12",
  "fingerprint_algorithm": "sha256-spki-der",
  "signature_scheme": "RSA-SHA256",
  "trust": "Confirm this fingerprint through a separately authenticated channel before trusting signer provenance.",
  "status": "current_key",
  "historical_keys": "Request historical signer keys through support when a receipt does not verify under this key."
}

Errors #

This endpoint returns no documented error responses.