mykeels.com

OEEP RFC 0003: Decentralised Identity, Authentication and Trust

How OEEP knows who sent a piece of electoral evidence, without a central authentication server.

OEEP RFC 0003: Decentralised Identity, Authentication and Trust

RFC 0002 defined what a piece of evidence looks like. Now the question is: who sent it?

In a typical app, users log in and a central server checks their credentials. But if every agent in the country has to authenticate against one OEEP server before uploading, we've just built another central point of failure. That's the exact thing OEEP is meant to avoid.

So OEEP avoids a central authentication service altogether, and uses public-key cryptography and federated credentials instead.

Public-key identities and device registration

Before the election:

  1. The party agent installs an OEEP-compatible app.
  2. The app generates a public/private key pair.
  3. The private key is stored in the device's secure keystore, preferably hardware-backed (e.g. Android Keystore).
  4. The app shares the public key with the party or observer organisation.
  5. The organisation verifies the agent's identity and polling unit assignment.
  6. The organisation issues a signed credential that binds the agent's public key to that assignment.

From then on, the app signs every submission with its private key. Anyone holding the public key can verify that the submission came from that device, and that it hasn't been changed.

Ed25519 or ECDSA (P-256) work very well for signatures. Avoid RSA: its keys and signatures are much larger, which matters for bandwidth and for QR-code transport.

One practical note: hardware-backed keystores on many Android devices (especially StrongBox) only support ECDSA P-256. So ECDSA P-256 is the safer default for device keys, while Ed25519 is a good fit for issuers and repositories.

Federated credential issuance

A simplified credential issued by an OEEP server run by an organisation looks like this:

{
  "credentialId": "cred_01",
  "issuer": "party-a",
  "subject": "agent_82931",
  "publicKey": "...",
  "role": "party_agent",
  "electionId": "ng-2027-general",
  "scope": {
    "pollingUnits": ["PU-EXAMPLE-001"],
    "permissions": ["result:submit"]
  },
  "validFrom": "...",
  "validUntil": "..."
}

The credential is signed with the issuer's (usually the party or observer organisation) private key. It could be encoded as a signed JWT or a COSE structure.

Each political party and recognised observer organisation runs its own credential issuer. Nobody needs OEEP's permission to issue credentials.

Federated trust: each organisation issues its own credentials

Authentication without central servers

Because credentials are signed, any repository can verify them using the issuer's published public key. There is no need to call the party's authentication server on election day. If that server goes down, previously issued credentials still work.

Repositories get issuer keys from a trust directory, downloaded before the election. It contains:

  • Approved issuers and their public keys.
  • The roles each issuer is permitted to grant.
  • Election identifiers and polling unit information.
  • Validity periods.

The trust directory itself must be versioned, signed, replicated and available in advance. Changes should require transparent governance, not unilateral approval by the protocol developer.

Authorization and polling unit assignments

The credential's scope limits what a reporter can submit, and where. OEEP isn't limited to party agents:

ReporterPermissionsEvidential status
Registered party agentSubmit for assigned polling unitVerified affiliation
Accredited observerSubmit within assigned areaVerified affiliation
JournalistSubmit within authorised scopeVerified affiliation
Ordinary citizenSubmit public observationsUnverified witness
Repository operatorReceive and replicate evidenceCustodian
Independent reviewerPublish verification assessmentsReviewer

A citizen should be able to contribute evidence, but it won't automatically be treated as an authenticated result.

And the most important line in this post:

A credential proves who is accountable for a submission. It does not prove the submission is correct.

An authenticated agent can still lie.

Organisational endorsements and local trust policies

Repositories don't have to trust the same issuers. One media house might accept credentials from all registered parties and accredited observers. Another might only accept observer organisations.

That's fine, as long as each repository publishes its trust policy, so people understand why a submission was accepted or rejected.

Organisations can also endorse other issuers, e.g. a well-known observer group vouching for a smaller local one. Endorsements are signals that feed into a repository's policy. They are not automatic trust.

Key rotation, revocation and compromise recovery

Phones get stolen and keys get leaked. OEEP needs to handle this:

  • Rotation: agents and issuers can move to a new key and publish the change.
  • Revocation: issuers publish signed revocation lists.
  • Short-lived credentials: election credentials should expire soon after the election.
  • Protected issuer keys: issuer signing keys should be hardware-protected, with threshold (multi-person) approval for critical key changes.

The hard question is what happens to evidence signed before a credential was revoked.

Revoking a credential must not automatically erase everything it signed. If the exact time of compromise is known, submissions after that time can be treated as suspect. If it isn't known, the affected submissions should be flagged for further verification, not deleted.

There's a catch: capturedAt is set by the device, so an attacker holding a stolen key can simply backdate it. "Before the compromise" has to be proven with timestamps the attacker doesn't control, such as a repository's signed receipt or the submission's inclusion in a published Merkle checkpoint (RFC 0005).

Sybil resistance and witness independence

What stops a party from issuing 10,000 credentials to fake agents who all submit the same fabricated result?

This is a Sybil attack: one organisation creating many identities to manufacture an apparent majority.

OEEP's answer is to measure corroboration by independently governed organisations, not by the number of accounts.

100 credentials issued by one organisation are not 100 independent sources.

If a Party A agent, a Party B agent and an independent observer all report the same figures, that's strong corroboration, because they have competing interests. If 100 Party A agents agree with each other and nobody else does, that's weak.

Other mitigations:

  • Issuers publish credential issuance commitments before the election (e.g. how many credentials they issued, per area), so unusual spikes stand out.
  • Unusual issuance and assignment patterns get flagged, like 50 agents assigned to one polling unit.
  • The influence of any single issuer is capped.
  • Verification methodology is publicly documented.

Security considerations and trade-offs

  • A compromised issuer key is serious. Every credential from that issuer comes into doubt. Other issuers are unaffected, which is the point of federation.
  • Offline verification means revocations propagate slowly. A revoked credential may still be accepted by a repository that hasn't seen the latest revocation list.
  • Federation means disagreement. Two repositories might reach different conclusions because they trust different issuers. That's acceptable if policies are public.

Open questions

  • Who decides which issuers go into the first trust directory?
  • Should a citizen's unverified submission ever gain weight if it matches corroborated evidence?
  • How should issuers protect the mapping between a pseudonymous credential and a real person?

In RFC 0004, we'll look at how clients discover repositories without a central registry. Let me know your thoughts in the comments below.

Related Articles

Tags