Pinned source and status
The normative source is SEP-34 at commit0dc4592cb44dda1943341016f076e9326874daed. The standards baseline records its SHA-256 digest, FCP status, and absence of an upstream version.
Every result stores the snapshot commit and digest. The pack may not label a target “SEP-34 compliant,” promote an FCP rule to Active, or imply that a verified token proves transaction success. Upstream status and runtime support are separate fields.
Parties and trust boundary
A frontend-only wallet needs a server-side signer to use SEP-34. The wallet server’s private key never reaches the wallet, anchor, runner, report, or browser artifact. How a wallet authenticates to its server and how another SEP transports the token are outside SEP-34 and must be separately locked by the consuming scenario.
Wallet-server issuance contract
The wallet server must reject issuance unless it has authenticated the wallet request and received all three binding inputs:- the resource or action ID returned by the anchor;
- the user’s full Stellar account address;
- the anchor server’s fully qualified HTTPS home URL.
Compact JWS contract
Use a standards-compliant compact JWS with exactly three base64url segments:
The JWT payload contains:
The runner preserves the compact token only in volatile memory. Evidence contains a SHA-256 digest, header fields, redacted subject fingerprint, resource fingerprint, normalized issuer and audience, issue and expiry times, verification key fingerprint, and decision.
Verification order
The anchor-side oracle performs deterministic checks in this order:- require a single compact JWS with three non-empty segments and size limits;
- decode base64url strictly and parse each JSON object without duplicate keys;
- allow only
typ=JWTandalg=EdDSA; reject unprotected security fields; - validate both
kidvalues as the same Stellar public key; - normalize neither
issnoraud; compare exact locked HTTPS origins; - bind
subandjtito the current account and resource; - validate numeric
iatandexp, clock skew, ordering, and maximum lifetime; - resolve the expected wallet-server key from pinned SEP-1 discovery;
- verify the Ed25519 signature over the original encoded header and payload;
- apply replay and single-resource policy before recording attribution.
Key discovery and rotation
For a known wallet server, use the stored mapping from exact home domain to previously verifiedSIGNING_KEY. For first contact, retrieve that domain’s /.well-known/stellar.toml through the target’s HTTPS and redirect policy, then verify the discovered key equals both kid fields before checking the signature.
When verification fails and the profile permits rotation refresh, fetch from the same previously bound home domain. Do not follow a claim-selected replacement domain. Accept a new key only after valid discovery, record old and new fingerprints and retrieval evidence, then retry verification once. Unknown, removed, malformed, or rapidly changing keys fail closed.
Fixtures cover current key, permitted rotation, old token inside an explicitly documented overlap, old token after retirement, unknown key, wrong domain, DNS or TLS failure, and discovery content that changes between fetches.
Lifetime and reuse
The profile locks maximum token lifetime and allowed clock skew. A token is invalid before its accepted issue window and at or afterexp. Expiry that is too long is a policy failure even when its signature is valid.
Bind replay state to issuer, subject, audience, resource ID, and token digest. Repeating a token for an idempotent read may be accepted only when the consuming contract explicitly permits it; repeating it to create or mutate another resource must fail. A new token cannot transfer an existing resource to a different account, wallet server, or anchor audience.
Fixture corpus
The versioned corpus contains deterministic keypairs and synthetic values only. The valid set covers a canonical token, minimum and maximum allowed lifetime, accepted clock-skew edges, Unicode-free URLs, current and rotated keys, and one token for each supported consuming resource type. The invalid set covers malformed segment count, empty and oversized segments, non-base64url bytes, invalid JSON, duplicate keys, missing or extra security fields,alg=none, wrong algorithm, unprotected header substitution, malformed Stellar key, header/payload key mismatch, bad signature, modified header or payload, wrong issuer, HTTP issuer, wrong audience, wrong account, wrong resource, unknown resource, string timestamps, missing timestamps, future issue time, expiry before issue, expired token, excessive lifetime, replay, another resource type, and unsafe key-discovery redirects.
Each invalid fixture changes one property from a named valid baseline and records the expected failed rule. The generated snapshot stores only sanitized decoded claims and verification results, never secret seed material.
Enablement and gate behavior
The pack is absent from default smoke, regression, scheduled, and release suites. Enablement requires all of:- a scenario-level
sep34opt-in; - an organization policy that permits FCP rules;
- a compatible released backend adapter and schema;
- a target profile naming the consuming request and token transport;
- a pinned standards digest and rule-pack version;
- controlled wallet-server and anchor-server fixtures.
Findings and remediation
Why this is not active coverage
The upstream proposal is not Active, declares no version, and does not define the consuming protocol’s transport. RampSpec also lacks a released adapter, generated schema, stored valid and invalid examples, controlled wallet server, and report snapshots. Documentation alone is not runtime coverage. The exit check becomes available only when every valid token verifies, every single-mutation invalid token produces its expected stable finding, key-rotation cases are deterministic, and default suites prove the pack is absent. Until then the capability catalog and reports must showPlanned, FCP, opt-in, and unavailable.