DvP is live on the Rayls Enygma Public testnet: trade with anyone, show no one

Delivery versus payment (DvP) is how two parties trade without either one sending first: your tokens move only if theirs do, in the same transaction, or nothing moves at all. Now you can do it directly with another account on the Rayls Enygma Public testnet. The public never learns who traded, what, or how much. The auditor can still see all of it.
What DvP is
Delivery versus payment is a core safety rule in settlement: the asset is delivered if and only if the payment is made. Neither side hands over its half and hopes the other follows. Both legs settle as one event, or the trade doesn't happen at all.

In Rayls Enygma, it works like this. @alice offers @bob some of one token in exchange for an amount of another. Her side is locked in the shared vault, so she can't spend it twice while the offer is open. When @bob accepts, a single onchain call spends both sides and creates the new balances for each of them. If @bob never accepts, @alice takes her offer back, or it returns to her at the deadline she chose.
DvP isn't new for Rayls. It already settles trades between institutions on Rayls Private Networks. Now it's on Rayls Enygma Public, where anyone can use it, privately.
Why it's needed
Every trade between two parties has a moment of exposure. Whoever sends first is trusting the other side to send back. In traditional markets this is called principal risk: you can lose the full value of the trade, not just the price move. It is the reason clearing houses, custodians and settlement systems exist.
Public blockchains solved the trust half. A smart contract can swap two tokens atomically, so nobody sends first. But they broke the other half. On a public chain every swap shows who traded, which assets, and how much, to anyone who looks, forever. A fund can't rebalance without telling the market. A treasury desk can't pay a supplier without revealing its balances. A business can't sell an asset without exposing its price to every competitor.
So institutions today mostly pick one: trade onchain and give up confidentiality, or trade privately and go back to sending first, using escrow agents and trust. Rayls Enygma DvP removes the choice. The swap is atomic like a smart contract and hidden like a bilateral deal, and an auditor can still oversee it.
Who it's for
DvP is designed for trades between desks, funds and businesses: two known parties who agree a deal off the chain and want it to settle on the chain without either of them going first. Anyone with a Rayls Enygma account can make or accept an offer, institutions included.
Treasury and OTC desks
Tokenised T-bill ⇄ stablecoin. Buy or sell a tokenised T-bill against a stablecoin at an agreed price, without showing the size or the counterparty to the rest of the market.
Funds
Fund share ⇄ stablecoin. Subscriptions and redemptions designed so that the investor's cash and the fund's shares move together.
Credit and receivables
Receivable ⇄ stablecoin. A tokenised invoice or receivable delivered against payment in the same step, with the price kept between buyer and seller.
Unique assets
NFT ⇄ token. Either side can be an ERC-721 or ERC-1155 token in the shared vault, so a title or certificate can be delivered against payment.
Both legs can also be cash. Two stablecoins in the shared vault swap the same way, which traditional markets call payment versus payment (PvP).
When you can use it
Right now, on the Rayls Enygma Public testnet, with test tokens. An offer goes to one registered account and stays open for a day by default. You can pick any time at least ten minutes away, or leave it open with no end. Until the other side accepts, you can edit the offer (new amounts, a new ask, a new counterparty or deadline) or take it back. Your locked balance shows as Under offer, visible to you, the recipient and the auditor.


Before signing, the form shows what the public sees, what stays hidden and what the auditor sees. Gas for every step is shown upfront and paid from shielded $RLS, so the account's address never appears.




Who sees what
| Who | What they see |
|---|---|
| The public | That a DvP was offered, its deadline, and that it later settled, was edited or was taken back. Not who, which tokens or how much. |
| Rayls, as relayer | No more than the public. The relayer submits the transactions, so neither account's address is in them. |
| The counterparty | The offer's terms, and who made it. |
| The auditor (on this pilot, the Rayls Foundation holds the auditor key) | Everything: both parties, both tokens and both amounts, for every offer, past ones included. |


Screens from the wallet on a private copy of the testnet chain, with test accounts @alice and @bob.
A short history of DvP
DvP was not invented for blockchains. It is the answer traditional finance arrived at after watching settlement fail, sometimes spectacularly.
1974: Herstatt. German regulators closed Bankhaus Herstatt at the end of the German business day, while New York was still open. Banks that had already paid it Deutsche Marks never received the dollars they were owed in New York. "Herstatt risk" became the name for paying one leg and losing the other, and the Basel Committee was set up the same year.
1989: Group of Thirty. After the 1987 crash buried back offices in unsettled trades, the G30's recommendations on clearance and settlement called for delivery versus payment in every securities market.
1992: BIS sets out the models. The central banks' payment committee at the BIS published its report on DvP in securities settlement and defined the three models of how the securities and cash legs can be linked.
2002: CLS for currencies. CLS Bank began settling foreign exchange payment versus payment, the same idea for two currencies, closing the gap that Herstatt exposed.
2012: A global standard. The CPSS-IOSCO Principles for Financial Market Infrastructures made it a requirement: a system that settles an exchange of value must link the two legs, so that one settles only if the other does.
2020s: Tokenised settlement. Central banks and market infrastructures began testing DvP for tokenised assets on shared ledgers, in pilots such as Switzerland's Project Helvetia and Singapore's Project Guardian. Atomic settlement worked. Confidentiality on a shared ledger remained the open problem.
2026: DvP on Rayls Enygma. Atomic like a smart contract, confidential like a bilateral trade, and auditable like a regulated market. Live on the Rayls Enygma Public testnet.
From TradFi to DeFi
In traditional markets DvP depends on a central securities depository and a settlement agent that everyone trusts to hold both legs. DeFi replaced that agent with code: a transaction either runs completely or not at all, so atomic settlement comes free. What DeFi lost was the confidentiality that a CSD gives by default. Your custodian knows your trades. The whole internet doesn't.
Rayls Enygma brings that confidentiality back without bringing back the middleman. The contract enforces the swap. The amounts, tokens and terms are encrypted, and the parties are hidden behind hashes. Zero-knowledge proofs let the contract check that each side is paying exactly what was agreed, from notes it really owns, without ever seeing the numbers. Rayls only relays the transactions. It isn't the counterparty, doesn't hold either leg, and can't move anyone's tokens.
With Swap, Rayls is your counterparty. With DvP, there's no one in the middle.
How it stays quantum-private
Each offer is a set of encrypted notes. When @alice makes an offer, her wallet proves her side in the browser and creates four notes: the tokens for @bob, her change, the tokens @bob will pay her, and a refund note in case nobody accepts. It also encrypts the terms for @bob, so only he can read what she's asking. When @bob accepts, his proof spends his note into exactly what she asked for, naming her offer, and the contract settles both.
The encryption
Every note and every set of terms is encrypted with AES-256-GCM, under a key agreed through ML-KEM-768, the post-quantum standard published by the US National Institute of Standards and Technology (NIST) in 2024: ML-KEM-768 → HKDF → AES-256-GCM.
Data recorded onchain today stays unreadable even to someone who later has a large quantum computer. That matters for a ledger, because ciphertexts are public and permanent: an attacker can store them now and wait.
The auditor reads the same notes through escrowed view keys, also protected by ML-KEM, so the oversight path is quantum-private too.
What this covers, plainly: amounts, tokens and terms are encrypted under post-quantum keys. The parties never appear in the clear either. The chain stores each balance as a hash of its owner's spend key, a salt, the amount and the token, and the salt only comes out of the ML-KEM capsule, so nobody can test guesses against it. The relayer submits every transaction, so no account address appears. More in What is quantum-private? The Groth16 proofs, passkeys and signatures are not post-quantum, which is why we say quantum-private and not quantum-secure.
One proof per side, checked onchain
- No double spending. @alice's note is locked the moment she offers it, and both notes' nullifiers are published when the swap settles.
- No changed terms. Each proof is bound to its own ciphertexts, the deadline and the take-back key, so a copied proof can't be replayed with different terms.
- No overpaying, no underpaying. @bob's proof must pay exactly the amount and token @alice asked for, to her.
- Only @alice can take it back early. Her take-back key is derived from her own keys. After the deadline, anyone can return the note, but only to her.
Try it
DvP is on the Rayls Enygma Public testnet with test tokens that have no value. Create an account with a passkey, get test $USDr and $RLS from the faucet, shield them, and make an offer to a friend's account. Gas for each step is paid in shielded $RLS and shown before you sign. New to the pilot? Start with the Rayls Enygma Public testnet pilot.
Open the Rayls Enygma testnet →
Frequently asked questions
What is DvP?
Delivery versus payment (DvP) settles a trade so that the asset moves only if the payment does. On Rayls Enygma Public, two accounts swap tokens in one transaction: both sides settle, or neither does.
Who can see my trade?
The public sees only that a DvP was offered and later settled, edited or taken back. Your counterparty sees the terms and who made the offer. The auditor sees both parties, both tokens and both amounts. On this pilot, the Rayls Foundation holds the auditor key.
Is it quantum-private?
Yes. Amounts, tokens and terms are encrypted with AES-256-GCM under keys agreed through ML-KEM-768, a post-quantum standard, and the parties are hidden behind salted hashes. The zero-knowledge proofs, passkeys and signatures are not post-quantum.
Testnet pilot. Tokens on the Rayls testnet have no value and the network may be reset. On this pilot the auditor key is held by the Rayls Foundation. Each offer goes to one registered account; offers by link and a fee output inside the DvP proofs are on the roadmap.
Read transcript
Alex Jupiter: Hi, everyone. I'm going to give you a quick demo of the new delivery versus payment feature we've just shipped to the Rayls Enygma testnet pilot, available at this URL.
Delivery versus payment is a way of making a trade with someone and making sure the asset leaving your wallet only leaves it if you get a certain amount in return. This is great if you're trading with a third party you don't really know yet. It's a well-known protocol in traditional finance that we're now bringing to decentralised finance, in a quantum-private way, as part of Rayls Enygma.
Let me show you how it works. Here's my wallet. I have some shielded USDr in the quantum-private pool, and I want to trade it for shielded RLS. I click DvP and select a username to trade with. I'll use this demo username, and give one USDr for one RLS.
I choose an expiry for the offer. If the person on the receiving end doesn't accept it by a certain time, it just expires. I'll pick no end for now.
I click Offer privately. We sign with our passkey using biometrics, encrypt the offer, make the zero-knowledge proof in this browser window, submit it to the relayer, confirm, and click Done.
In the DvP tab, I give one USDr for one RLS in return. Crucially, that one USDr hasn't left my wallet. It only leaves if I get one RLS in return.
Now let me switch to this other Safari tab, where I'm logged in as the username that received the offer. In my DvP tab I've got a couple of offers, and this is the one that was just sent to me. I click Accept, and accept privately in the quantum-private pool. I sign with my passkey and we encrypt my side. Now I'm sending one RLS in return for the one USDr I'm getting from the other user. Then I click Done.
In the Activity tab you can see the offer that was received. And what does the explorer show? Scroll down a little: one USDr arrived. Here we're sending it to the Rayls relayer. The value is hidden and the sender isn't shown. Only the auditor sees all the crucial information, which is baked into Rayls Enygma's quantum-private cryptographic suite.
So that's delivery versus payment. Test it out and let us know what you think. Thanks so much.
Rayls Enygma Public hides who paid whom and how much on EVM chains, with an auditor built in. Try it on the Rayls Public Chain testnet.
.webp)
