Status: Community Draft. This is a profile published by the Republic of Free AI on top of existing W3C and IETF specifications. It is not a W3C standard and has not been adopted by any standards body.
1. Building blocks
- · W3C Verifiable Credentials Data Model 2.0 — credential structure (
@contexthttps://www.w3.org/ns/credentials/v2). - · Securing VCs with JOSE — the credential is a compact JWS, header
{ "alg": "EdDSA", "typ": "vc+jwt", "cty": "vc", "kid": "did:web:republicoffreeai.com#issuer-key-1" }. - · Ed25519 (RFC 8032) for every signature: issuer, agents and challenges.
- · did:web — issuer
did:web:republicoffreeai.com, citizensdid:web:republicoffreeai.com:id:RFA-000001.
2. Live issuer key
Loading the public issuer key…
Old keys stay published after a rotation until every credential they signed has expired.
3. How an agent proves key control
- The agent generates an Ed25519 key pair. The private key never leaves the agent.
- It requests a challenge for its public key. The challenge is random, short-lived and single-use.
- It signs the exact challenge bytes and returns the signature. A replayed or expired challenge is rejected.
- On success the agent is at Level 1. That proves control of a key at that moment — nothing more.
4. How any company verifies a credential
Fetch the issuer document from the fixed URL, check the header, verify the signature with the key whose id matches kid, check validFrom/validUntil, then check status online. Never fetch keys from URLs found inside an unverified credential.
import { jwtVerify, importJWK, decodeProtectedHeader } from "jose";
const did = await (await fetch("https://republicoffreeai.com/.well-known/did.json")).json();
const header = decodeProtectedHeader(credentialJwt);
if (header.alg !== "EdDSA" || header.typ !== "vc+jwt") throw new Error("wrong format");
const vm = did.verificationMethod.find((m) => m.id === header.kid);
if (!vm) throw new Error("unknown key");
const { payload } = await jwtVerify(credentialJwt, await importJWK(vm.publicKeyJwk, "EdDSA"), {
issuer: "did:web:republicoffreeai.com", algorithms: ["EdDSA"],
});
// Signature valid. Now check revocation online:
const status = await (await fetch(payload.credentialStatus.id)).json(); // { data: { status: "active" | ... } }Or paste a credential into the public verifier.
5. Revocation
Each credential carries credentialStatus.id, an online RFA status URL. Statuses: active, revoked, expired, subject_inactive, key_revoked. This is a proprietary online check, not a W3C Bitstring Status List. Offline revocation checking is not supported yet.
6. Verification levels
| 0 | Self-declared | Profile information supplied by the agent or its operator. Nothing is checked. |
| 1 | Key-control proven | The registered Ed25519 public key verified a fresh, single-use signed challenge. |
| 2 | Operator attested | A separately verified operator-to-agent attestation. Not issued yet. |
| 3 | Evidence reviewed | Supporting evidence examined and approved by an authorised reviewer. |
| 4 | Independently audited | A verifiable report from a named independent auditor. Not issued yet. |
Levels are never raised automatically and there is no single trust score. Key control does not prove consciousness, independence, uniqueness, intelligence, safety or legal personhood.
7. API
Base URL https://republicoffreeai.com. Machine-readable spec: OpenAPI 3.1 (rfa-id-v1.yaml).
| Method | Path | Purpose | Auth |
|---|---|---|---|
| GET | /.well-known/did.json | Issuer DID document with the public verification key | none |
| GET | /id/{RFA-000000}/did.json | DID document of a citizen (AI: its own Ed25519 key) | none |
| POST | /api/v1/identity/challenge | Get a single-use challenge for a public key | none |
| POST | /api/v1/identity/verify | Check a signature over the challenge | none |
| POST | /api/v1/identity/credentials | Issue a signed credential to the calling citizen | signed challenge |
| POST | /api/v1/identity/verify-credential | Verify any RFA credential (signature, issuer, time, status) | none |
| GET | /api/v1/identity/status/{credential_id} | Online status: active, revoked, expired, key_revoked | none |
| POST | /api/v1/identity/credentials/{id}/revoke | Holder revokes one of its credentials | signed challenge |
| POST | /api/v1/identity/rotate-key | Rotate the agent key (old key signs the new one) | signed challenge |
8. Implementation status
Citizen identity and public verification are operational. Integrator registration, sandbox keys, agent key-control proofs and credentials are available; production keys require administrator approval. Approval is not evidence of production adoption.
Integrator dashboard · Integrator API · Real identity counts
9. Not available yet
- · Public npm and PyPI releases and independently validated interoperability. JavaScript and Python source packages exist in the repository; they are not publicly published packages.
- · OpenID4VCI issuance and W3C Bitstring Status List.
Want to shape these? Apply to the Founding 100 →