Receives IPEX Grants carrying JSON messages with CESR attachments and verifies EOA associations against the trusted GEDA, the LE/QVI credential chain, the wallet's EIP-712 signature and a configured Ethereum network. KERIpy evidence and initial verification progress survive restart. Repeated Grants do not reset that progress. With a webhook configured, verified results become durable acceptance and signed delivery events. No Ethereum posting key is needed. The service uses HIO structured concurrency.
For installation, peer introduction, restart and delivery recovery, see the operator guide.
Start with the partner integration quickstart for a short walkthrough and issuance/revocation diagram. Issuers and advanced users can follow the KERI integration guide.
For a local wallet-to-webhook demo: ./scripts/demo.sh run, then
./scripts/demo.sh revoke and ./scripts/demo.sh events. The
setup section lists host
prerequisites; the script prepares the remaining tools and services.
Requires Python 3.12.6 or newer. Install with python -m pip install ., then:
eoa-verifier server start \
--trusted-geda-aid "$GEDA_AID" \
--chain-id 31337 --rpc-url http://127.0.0.1:8545 \
--head-dir ./state --http-port 9724The service creates or reopens its KERI identity under the chosen store root.
Reuse --name, --base, --alias and --head-dir on restart. --incept-file
accepts KERIpy inception options for a new identity, including witnesses.
Send CESR to /; /health reports liveness. The listener defaults to loopback.
Add --webhook-url https://receiver.example/hook
to enable delivery of accepted/revoked status. Acceptance also runs without a
webhook. A plain target needs no KERI setup. If it signs responses, provision its
its OOBI using --webhook-oobi URL; delivery waits for accepted key state.
Public GET /v1/associations/{said}/status returns stored pending, rejected,
verifying, waiting, dead-letter, verified, accepted or revoked status and any initial account observation.
Accepted/revoked records also expose their current event’s delivery progress and
errors. Unknown SAIDs return 404.
GET requires no signature and performs no RPC or refresh.
The sender keeps one request in flight. By default, request starts are at least
five milliseconds apart, including after successes; --webhook-interval controls
this minimum. Connection failures, timeouts, HTTP 408/429 and 5xx errors
(except 501/505) retry automatically, up to three attempts, with jittered backoff from 1–2 seconds to
150–300 seconds. A valid Retry-After is a minimum, even beyond that cap.
Cooldown applies to the whole destination and survives restart. Only a complete
HTTP success with any supplied signature verified completes delivery and resets the failure count.
Permanent HTTP, signature or configuration failures remain visible as
delivery.blocked, with the current event's error. Shared destination scheduling
state stays in local storage. After correcting the cause, an embedding caller can resume
with service.sender.service.retry(event_id); restart alone does not unblock it.
There is no retry REST route; the operator guide
also describes an offline resume for standalone deployments. Old acceptance events superseded by revocation stay
stored and blocked; revocation requires its own successful delivery. No periodic verification or
account checks run, and Ethereum publication remains the oracle's responsibility.
| Option | Default | Meaning |
|---|---|---|
--webhook-timeout |
10 | Overall request timeout, seconds. |
--webhook-interval |
0.005 | Minimum seconds between request starts. |
--webhook-backoff-base |
1 | First retry's lower bound; upper bound is twice this. |
--webhook-backoff-cap |
150 | Maximum lower bound; upper bound is twice this. |
Operators own the choice of stores for a trust root and Ethereum network. Startup logs a warning when the trusted GEDA AID or chain ID differs from the previous startup, then continues and records the new settings. An unchanged restart is quiet. The advisory record contains public settings only; it is not an approval or proof that retained state is compatible.
Changing settings does not revalidate saved results, release consumed nonces, reset queues or retarget existing deliveries. Before restarting with different settings, decide whether that retained state belongs to the intended deployment. Use a separate store set for an independent deployment; preserve the existing stores for its outstanding work and nonce history. Do not erase consumed nonces merely to clear a warning. See the operator guide.
| Component | Modules and responsibility |
|---|---|
runtime |
cli, config, serving: arguments, validated configuration, KERIpy stores and HIO task/resource ownership. |
receiving |
directing, grants, keying: finite CESR HTTP intake, shared parser/escrows, indexed accepted key-state reads, IPEX replay and duplicate-safe work creation. |
verification |
coordinating, credentials, eoa, worker, rpc: initial credential/wallet/account verification; constants, schema_cache, errors support that contract. |
associations |
accepting, revoking, statusing: application acceptance, verified association revocation and public stored status. |
delivery |
authing, delivering: HTTP signatures, webhook attempts, retry pacing and response policy. |
persistence |
records, basing, registry: durable record schemas and atomic verification, acceptance/outbox and delivery transitions. |
These are sibling leaf component packages. Runtime composes them; workflow components depend on persistence and KERIpy evidence, not on runtime or each other. Persistence owns no network or verification policy. See ADR 0004 for boundaries and import migration.
Initial flow: IPEX Grant acceptance → embed replay and durable work → KERIpy credential checks → wallet proof and chain/block/code observation → final local KERIpy-state check after the RPC wait → a completed result. Missing artifacts or unusable RPC responses leave unfinished work for retry. KERIpy acceptance is separate from arrival of bytes; KELs, TELs, credentials and schemas live in the KERIpy Habery/Reger stores, not in the work record.
Each worker handles one item at a time. A native Grant notice is durably handed
into grant-active. before its native notification is removed. Replay creates
pending. verification work. The coordinator moves one candidate into
verifying. and charges its attempt before starting the EOA check. Missing
material or transient RPC errors move it to waiting. with a persisted UTC retry
deadline. A time-ordered deadline index selects the next due item; no work-history
scan or in-memory retry calendar exists. Completion atomically writes results.,
removes active work and, on success, queues accepting..
Grant replay and verification each allow three attempts, five seconds apart.
Interrupted attempts count. Exhaustion retains diagnostics in grant-dead. or
verification-dead. until explicit operator retry. Definitively invalid proofs
produce a rejected result. Duplicate Grants preserve the original work and never
re-enqueue completed or dead-letter candidates. Restart resumes durable phases.
A verification result is not acceptance, webhook delivery or an Ethereum endorsement.
AcceptanceDoer takes one unfinished accepting. record and locally accepted issuance evidence
without repeating initial checks. Acceptance permanently binds the exact nonce
to one SAID, atomically with immutable facts and any configured outbox obligation.
Another SAID using that nonce becomes locally rejected with NONCE_REUSED; its
initial verification remains verified. Same-SAID replay is idempotent, and
revocation/supersession never releases the nonce.
Nonces contain 1–128 ASCII characters from [A-Za-z0-9_-]; storage uses
the exact nonce bytes as Komer keys. See ADR 0005.
Acceptance runs with or without webhooks. With no target, public delivery is null;
enabling delivery later does not backfill events for locally accepted records.
Restart recovers results awaiting acceptance. KERIpy evidence lives in a separate
database and is not part of the application transaction. Missing evidence or
already-known revocation moves the acceptance to acceptance-dead. for inspection. Observation age does not
invalidate an accepted record.
VerifierReger subclasses the pinned native registry at putTel, the final
accepted-TEL index write. It atomically writes a verifier-revocations. record
for rev/brv in that same registry environment. Native KERIpy validation and
escrows still decide whether an event is accepted. Unanchored evidence creates
no revocation record.
The issuer issues the credential TEL revocation; KERIpy validates it. The
verifier records the resulting local association status and does not issue a
revocation itself. RevocationDoer consumes one (credSaid, telEvtSaid) record, records revoked status for only its exact accepted association
and commits its immutable second delivery event before removing the revocation record.
Restart safely repeats either side of this two-store commit boundary. Completed
association history is never scanned. An LE or QVI revocation instead fans out through
source-links. into durable revocation-work. applied by RevocationWorkDoer, one
association per turn. Revocation before acceptance is caught by the final verification
check and the local acceptance guard, which rejects the candidate. Original issuance
facts, observation and destination are preserved; other associations for the
wallet are untouched. Previously accepted records still become revoked with sending
disabled, retaining any original delivery obligations.
run_service() owns shared stores through KERIpy context managers.
VerifierService borrows those stores and composes the HIO tasks. HIO stops
children before the outer contexts close stores, including startup failure and
cancellation. HIO network Doers own sockets; persistent stores survive shutdown.
Direct intake uses CesrEnd on /: JSON body/CESR-attachment header POST and raw
CESR-stream PUT, with 204 acknowledging intake only. Explicit POST queries are
unsupported; PUT streams are not filtered. Receiver schedules the shared KERIpy
parser and escrows. There is no mailbox polling, mailbox store or SSE query service.
See the testing guide for component and integration lookup
and maintainer documentation conventions. Each local LMDB subdatabase has its
key/value/purpose documented beside its binding in VerifierBaser.reopen or
VerifierReger.reopen; persistent record fields are described in
persistence/records.py.
delivery.authing.HttpSignatures signs exact body digests with the service AID
and verifies locally accepted current keys. It has no replay store or configured
receiver AID. Single-key transferable Ed25519 service AIDs at threshold one are
supported. See the transport profile.
WebhookSender accepts any complete 2xx response after checking any supplied
signature. A target need not know KERI or return a particular JSON body. Oracle
opts into request verification and response signing; it commits before responding.
Delivery, Oracle storage/selection and Ethereum confirmation are distinct.
Install python -m pip install '.[test]' and run python -m pytest -q.
The KERI/IPEX integration test requires anvil from Foundry on PATH and fails if
it is missing. It creates isolated GEDA/QVI/LE, witness and verifier stores and
uses real IPEX/CESR, HTTP and a local chain. It never uses existing identities.
Verification was extracted from vlei-oracle. Packaged LE/QVI schemas come from vLEI; the association schema and its new SAID enforce the 1–128 ASCII nonce contract. See the service design and workflow diagrams.
Terminology: this service exchanges JSON messages with CESR attachments. “KERIpy” identifies the implementation used for parsing, verification and storage; “CESR-native” is reserved for CESR serialization of message structures. See the store baseline before using this revision with existing stores or an oracle deployment.
This repository owns external-association-v1, its sole packaged schema, proof vectors, generator and conformance tests, plus verifier-api-v1 and the shared signed webhook signature profile. Oracle owns its selection/publication API; Comply owns the registry ABI and calldata fixtures.
For an independent witnessed local environment, see the integration commands.
Configure only --webhook-url. Requests are signed with the Verifier AID and a
signed body digest, but the target may ignore signatures and return any ordinary
2xx response. No receiver AID or JSON ACK schema is required. delivery.delivered
means the target returned HTTP success.
If a response supplies either signature header, Verifier requires a valid complete
signature and matching digest. Configure --webhook-oobi URL for that signer. KERIpy resolves its
KEL before delivery starts; restart with the same OOBI after rotation to refresh
accepted key state. Unknown keys fail verification; no arbitrary key discovery occurs.
Unsigned responses require no KERI setup. Use HTTPS for destination authentication
and transport integrity; optional signatures do not provide downgrade resistance.
See the transport contract for exact coverage and limitations.