Standardizing Trust-Line Eligibility Verification for Commerce (RLUSD Example) #3219
Replies: 3 comments
|
This looks like a solid direction, and I think the shape is close to something that could become a reusable pattern. I checked the current
So from an implementation standpoint, issuer-aware reads plus deterministic threshold evaluation are very reasonable. The main thing I would standardize is not only the attestation shape, but the policy surface. In practice, merchants will need the verifier to say exactly whether these conditions count as eligible or not:
I would also strongly consider binding If this becomes a reference pattern, my preference would be for the attested payload to commit to:
That would make independent verification much easier and would avoid a lot of ambiguity around RLUSD-style commerce checks. I do think a reference implementation here would be useful. |
|
Thanks — this is exactly the kind of feedback I was hoping for. A few responses: Negative balances: Already handled — only positive balances are attestable. A trust line showing a liability is filtered before evaluation. Frozen trust lines and authorization: You're right that these need explicit treatment. Today the API evaluates balance against threshold without inspecting freeze or auth flags on the trust line. For a commerce eligibility pattern, a frozen trust line with positive balance is arguably not spendable — so the attestation should reflect that. I'll add freeze and authorization awareness to the XRPL evaluation path so the
Canonical fields / policy flags: Each condition result already includes an These are concrete improvements. I'll work through them and update the live demo once shipped. On the reference implementation question — happy to write up how the trust-line evaluation semantics work (input/output contracts, edge case behavior) as a standalone doc if that would be useful for the |
|
Quick update — all three shipped:
Authorization ( Live on the demo if you want to test. |
Uh oh!
There was an error while loading. Please reload this page.
XRPL trust-line tokens like RLUSD introduce an interesting commerce problem: a merchant who wants to verify that a customer holds RLUSD above a threshold cannot use a standard ERC-20 balance check. Trust lines require issuer awareness, currency code normalization, and balance reads against a different data structure than EVM chains.
We built a working implementation that performs issuer-aware trust-line reads, evaluates thresholds deterministically, and returns a signed attestation object that anyone can verify independently.
The technical flow
chainId: "xrpl"ledgerIndex(validated ledger sequence at time of verification)attestedAt/expiresAt(30-minute window)conditionHash(hash of the exact request parameters)kid/.well-known/jwks.jsonfor independent verificationThe result is a boolean — the wallet either meets the threshold or it does not. No raw balances are exposed.
Links
Questions for the community
Would love feedback from anyone building commerce or stablecoin tooling on XRPL.
All reactions