{"id":51045594,"url":"https://github.com/selfradiance/web-attestation","last_synced_at":"2026-06-22T13:32:22.307Z","repository":{"id":364842268,"uuid":"1269402552","full_name":"selfradiance/web-attestation","owner":"selfradiance","description":"Cloudflare Worker that returns Ed25519-signed witness-only byte-observation attestations for HTTPS URLs, gated with x402.","archived":false,"fork":false,"pushed_at":"2026-06-14T18:22:48.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T19:19:48.822Z","etag":null,"topics":["agent-commerce","attestation","base","ed25519","hono","usdc","x402"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selfradiance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-14T17:08:03.000Z","updated_at":"2026-06-14T18:22:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/selfradiance/web-attestation","commit_stats":null,"previous_names":["selfradiance/web-attestation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/selfradiance/web-attestation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfradiance%2Fweb-attestation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfradiance%2Fweb-attestation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfradiance%2Fweb-attestation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfradiance%2Fweb-attestation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfradiance","download_url":"https://codeload.github.com/selfradiance/web-attestation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfradiance%2Fweb-attestation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34651748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-commerce","attestation","base","ed25519","hono","usdc","x402"],"created_at":"2026-06-22T13:32:22.070Z","updated_at":"2026-06-22T13:32:22.299Z","avatar_url":"https://github.com/selfradiance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-attestation\n\nA Cloudflare Worker that fetches a caller-supplied HTTPS URL, hashes the\nresponse body with SHA-256, and returns an Ed25519-signed **witness-only**\nbyte-observation attestation. Payment is gated with x402.\n\nCurrent instance: `https://web-attestation.selfradiance.workers.dev`\n\nPart of the [Self-Radiance Agent Runtime Safety Kit](https://selfradiance.github.io). A dormant, witness-only credibility artifact: it signs observations, not endorsements.\n\n## What it attests\n\nThe signed statement asserts exactly one thing: that this endpoint observed\nspecific response bytes at a specific URL at a specific time. It makes **no\nclaim** about the truth, legitimacy, ownership, or trustworthiness of the\ncontent. The signed payload carries `claims: \"none\"` and a human-readable\nnotice to that effect.\n\nThis is deliberate. A witness statement that asserted legitimacy could be used\nto launder a signature into an endorsement. This service signs observations,\nnot endorsements.\n\n## Endpoints\n\n- `GET /` — free service discovery (JSON).\n- `GET /.well-known/web-attestation-key.json` — free Ed25519 verification key (public JWK).\n- `GET /attest?url=\u003chttps-url\u003e` — x402-gated. Returns the signed attestation on payment.\n\nThe target URL must be HTTPS. The response body is hashed up to a 1 MiB cap;\nbeyond that the attestation reports `truncated: true` and never claims a\ncomplete observation.\n\n## Payment\n\nThe `/attest` route returns HTTP 402 with x402 payment requirements (Base\nmainnet, USDC, `exact` scheme). A paying client retries with a payment\nsignature header and receives the signed attestation. The service holds no\ncustody of buyer funds or keys.\n\n## Signed payload schema\n\n`attestation_type: \"byte_observation.v1\"`, with `kid`, `attestation_id`,\n`observed_at` (ISO 8601 UTC), `canonicalization: \"RFC8785-JCS\"`, the `request`\n(method, url, redirect policy), the `response` (status, ok, content type), the\n`body` (hash algorithm, sha256 hex, bytes hashed, completeness, truncation,\nmax bytes), `claims: \"none\"`, and a `human_notice`. The output object is\n`{ payload, signature, kid }`, where `signature` is base64url Ed25519 over the\nRFC 8785 canonical form of `payload`.\n\n## Verifying an attestation\n\n1. Fetch the public key from `/.well-known/web-attestation-key.json`.\n2. Canonicalize `payload` with RFC 8785 (JCS).\n3. Verify the base64url `signature` over the canonical bytes using the key's `x` value.\n4. Confirm `kid` matches the key.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfradiance%2Fweb-attestation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfradiance%2Fweb-attestation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfradiance%2Fweb-attestation/lists"}