<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ALaN on Medium]]></title>
        <description><![CDATA[Stories by ALaN on Medium]]></description>
        <link>https://medium.com/@alanxf?source=rss-af2f587fe1ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yg_BCdRXq9LIB1HS_aixeA.png</url>
            <title>Stories by ALaN on Medium</title>
            <link>https://medium.com/@alanxf?source=rss-af2f587fe1ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:14:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alanxf/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How can I make private stablecoin payments that regulators can still audit?]]></title>
            <link>https://medium.com/@alanxf/how-can-i-make-private-stablecoin-payments-that-regulators-can-still-audit-7b19a4e9cb67?source=rss-af2f587fe1ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b19a4e9cb67</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[stable-coin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[ALaN]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 14:39:00 GMT</pubDate>
            <atom:updated>2026-11-28T14:39:00.670Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP53Jae9TJ2BEqWnYvjaWQ.png" /></figure><p>I made six private stablecoin payments on the Rayls Enygma Public testnet, read every relayed transaction and checked the auditor key of every account. Here is what the public sees, what the auditor sees, and where the limits are.</p><p>Use a payment system that hides the sender, the recipient and the amount from the public, but gives one designated auditor a key that can read every payment and cannot move any money. On the Rayls Public Chain, that is what Enygma Public does as a testnet pilot, and I tested it myself on 28 November 2026.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfKwcUODBir0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfKwcUODBir0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfKwcUODBir0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d31a0111f3bb35f6d3d5f56e5fc234e/href">https://medium.com/media/7d31a0111f3bb35f6d3d5f56e5fc234e/href</a></iframe><p><strong>Key findings</strong></p><ul><li>In six private USDr payments between two of my own accounts, no sender, recipient or amount appeared onchain.</li><li>In all 42 shielded payments on the testnet, no registered user’s address appeared either.</li><li>All 553 registered accounts have an encrypted copy of their view key stored onchain for the auditor.</li><li>The contracts have no freeze or pause function. Shielding and unshielding stay public.</li></ul><h3>Why a normal stablecoin transfer is not enough</h3><p>On a public blockchain, every stablecoin transfer shows the sender, the recipient and the amount, to anyone and forever.</p><p>For a payroll run, a supplier payment or a treasury move, that means competitors and strangers can read the company’s books.</p><p>Fully private tools fail in the other direction: nobody can answer a supervisor’s question about who paid whom. A regulated firm needs both at once.</p><blockquote><em>Payments should be “shielded from the public, not from the auditor.”</em></blockquote><p>That is the line the Rayls documentation uses for this goal (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs: Who sees what in Enygma Public</a>).</p><h3>Four questions to ask any “private but auditable” system</h3><ol><li><strong>What does the public see?</strong> Only the amount hidden, or the sender and recipient too?</li><li><strong>Who can read everything, and how is that access set up?</strong> Built into the protocol, chosen by each user, or given by an operator?</li><li><strong>Can the reader move or freeze funds?</strong> Reading and controlling are different powers.</li><li><strong>What leaks at the edges?</strong> Money entering and leaving the private system is usually public.</li></ol><h3>How well-known projects answer them</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8GdykY9DNxpzaxaVz1ZGg.png" /></figure><ul><li><strong>Canton Network</strong> splits each transaction into views, so each party sees only its own part, and the synchronizer sees only encrypted messages. A regulator is added as an “observer” on the contract and, in the docs’ words, “sees everything but cannot act” (<a href="https://docs.canton.network/overview/learn/privacy-model">Canton docs</a>).</li><li><strong>Aztec</strong> is an Ethereum L2 with private state. A user can share viewing access “without compromising spending ability” (<a href="https://docs.aztec.network/developers/docs/foundational-topics/accounts/keys">Aztec docs</a>). There is no auditor built into the protocol.</li><li><strong>Avalanche eERC</strong> encrypts balances and amounts, “while senders, receivers, and timestamps stay public”. One rotatable auditor key can decrypt all amounts and balances (<a href="https://docs.avax.network/integrations/encrypted-erc">Avalanche docs</a>).</li><li><strong>ZKsync Prividium</strong> runs a private chain and posts only state roots and proofs to Ethereum. Auditors get a role, and the operator discloses approved data (<a href="https://docs.zksync.io/zk-stack/prividium">ZKsync docs</a>).</li><li><strong>Zama ERC-7984</strong> keeps balances and amounts encrypted with fully homomorphic encryption. Users can designate “observers”, such as auditors, who can decrypt them (<a href="https://www.zama.org/post/erc-7984-the-confidential-token-standard-explained">Zama</a>).</li><li><strong>Rayls Enygma Public</strong> (testnet pilot) hides the sender, the recipient and the amount on a permissionless public chain, and escrows every account’s view key to the auditor at registration (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</li></ul><p>None of these is best for every case. They trade off what the public sees, who holds the audit key and where the chain runs.</p><h3>Where Rayls fits</h3><p>Enygma Public combines three things the other designs split up.</p><p><strong>The public sees less.</strong> eERC and ERC-7984 hide the amount but show who paid whom. In a shielded Enygma payment, anyone can see only “that it happened, the relayer that submitted it, its gas fee, the nullifiers, and the new commitments with their encrypted notes” (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</p><p><strong>It runs on a public chain.</strong> Canton shares each part of a transaction only with its parties, and Prividium keeps its state in the operator’s database. Enygma Public settles on the open Rayls Public Chain.</p><p><strong>The auditor is built in.</strong> On Aztec, disclosure is each user’s choice. On Enygma Public, the wallet encrypts a copy of each account’s view key to the auditor’s key (ML-KEM-768) when the account registers. Each deployment has one auditor, for example one per country. On the testnet, the auditor is Rayls (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</p><p>The auditor’s power is limited by design. It can read every shielded transaction and export them as CSV. It cannot spend, because spending needs the spend key, which never leaves the user’s browser. And it cannot freeze: “No Enygma Public contract can freeze, pause or block an account’s funds” (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmJilotzJeWl7lu7yfm4Zw.png" /></figure><p>For institutions that want their own ledger, Rayls has a second edition, Enygma Sovereign, where the Private Network operator reads every transfer (<a href="https://docs.rayls.com/docs/rayls-high-level-architecture">Rayls docs</a>).</p><h3>The limits</h3><ul><li><strong>It is a testnet pilot</strong>, with test tokens that have no value (<a href="https://docs.rayls.com/docs/try-enygma-public-on-testnet">Rayls docs</a>).</li><li><strong>The edges are public.</strong> Shielding and unshielding show the address, the token and the amount.</li><li><strong>A relayer run by Rayls submits every transaction.</strong> It can refuse to relay, although the vaults accept a valid proof from anyone (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</li><li><strong>Not everything is post-quantum.</strong> Notes and escrowed view keys use ML-KEM-768; the zero-knowledge proofs, passkeys and signatures do not (<a href="https://docs.rayls.com/docs/rayls-high-level-architecture">Rayls docs</a>).</li><li><strong>Upgrades are possible.</strong> An owner multisig can upgrade the registry and the shared vault. On the testnet it needs 2 confirmations (check 6 below).</li><li><strong>Fees.</strong> Gas is paid in RLS, each fee includes a 15% Rayls Foundation commission, and a stablecoin shield or unshield costs 0.25%.</li></ul><h3>What I checked myself</h3><p>I did not want to rely on the docs alone. I used the Enygma Public testnet wallet (<a href="https://enygma-testnet.rayls.com/">enygma-testnet.rayls.com</a>) with two accounts of my own, @alanxft and a new one, @alantest2, and read the chain directly.</p><p>I ran seven checks. Scripts, raw data and every transaction hash are in my test repo: <a href="https://github.com/anshxft/rayls-axyl-failure-tests">https://github.com/anshxft/rayls-axyl-failure-tests</a></p><h3>1. A public stablecoin send and a shielded one</h3><p><strong>Result:</strong> the public send shows both addresses and the amount. The shielded send shows none of them, and no stablecoin moves on the public chain at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQu-mNsdZqE7oXvnXeDmLA.png" /></figure><ul><li><strong>Public send, 1.25 USDr</strong> (<a href="https://testnet-explorer.rayls.com/tx/0x81b677f44d026d26205156c02ce4eb7e36ba225a48e92fc0ba7a0e24474070ab">0x81b677f4…474070ab</a>): both addresses and a 1.25 USDr transfer.</li><li><strong>Shielded send, 2.4 USDr</strong> (<a href="https://testnet-explorer.rayls.com/tx/0x6b92b077438d36a1a640f8e4016fab9cf5f6207807712da43cb496d2d5cf5aab">0x6b92b077…d5cf5aab</a>): sent from the relayer’s address, with no USDr transfer. Only the gas moves, in RLS, plus commitments, a nullifier and encrypted notes.</li><li><strong>Shield 10 USDr</strong> (<a href="https://testnet-explorer.rayls.com/tx/0x3eda42ab6d328f43be7d7d864850026fde37da8a9899810e18df15f097eb1596">0x3eda42ab…97eb1596</a>) and <strong>unshield 2 USDr</strong> (<a href="https://testnet-explorer.rayls.com/tx/0xae933e7b7bf0fcbfeb9433644a774638abbf5124ce970490813bff50712784b1">0xae933e7b…712784b1</a>): my address and the amount, as the docs say, plus the 0.25% fee.</li></ul><p>I also searched each transaction’s raw input. The public send contains both addresses and the amount. The shielded send contains none of the three.</p><p>The wallet tells you this before you confirm. For the public send it said “Auditor: The same as everyone”. For the shielded send: “Public: That a payment happened”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqGlMf4AJ-FbiAALlIPZMg.png" /></figure><h3>2. What the sender and the recipient each see</h3><p><strong>Result:</strong> the sender sees who they paid. The recipient sees that money arrived, but not who sent it.</p><p>Because both accounts were mine, I could look at the same payments from both ends. The sender’s history says “Sent −0.15 $USDr … to @alanxft”. The recipient’s says “Received +0.15 $USDr”, with no sender.</p><p>The wallet’s own breakdown on the recipient side reads “Sender: No address is in it”, marked Hidden, and “Auditor sees it”. This matches the docs: notes do not carry a sender (<a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">Rayls docs</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-CVBPol8T517dH0DF_6qGA.png" /></figure><h3>3. Six private stablecoin payments, measured</h3><p><strong>Result:</strong> six of six succeeded, and none showed a sender, a recipient or an amount onchain.</p><p>@alantest2 paid @alanxft six times in shielded USDr: 2.4, 0.11, 0.12, 0.13, 0.14 and 0.15.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ecCCmLuy1CLcU13mLzaHbw.png" /></figure><ul><li>None emitted a USDr transfer event.</li><li>The zero-knowledge proof was made in my browser tab in 3.9 to 5.3 seconds.</li><li>Once handed to the relayer, each was confirmed onchain 2.3 to 2.5 seconds later (measured for the last three).</li><li>Each used 2.04 to 2.25 million gas. The fee was 152.94 test RLS, including the 15% Rayls Foundation commission.</li></ul><h3>4. Every Enygma Public transaction on the testnet</h3><p><strong>Result:</strong> none of the 42 shielded payments on the testnet contained any user’s address.</p><p>One account proves little, so I read all 352 successful transactions sent to the Enygma relay contract (<a href="https://testnet-explorer.rayls.com/address/0x57029f958917C80Db8cce0ab02d380fE9778B6c3">0x5702…B6c3</a>), blocks 25,711,709 to 25,917,900.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y78Bgx3B4-GCuQXGovtiaw.png" /></figure><ul><li>All 352 were sent from the relayer’s address, none from a user’s own address.</li><li>For each of the 42 shielded payments, I searched the raw input and token transfers for every registered user address (551 at the time, not counting the relayer and the fee receiver).</li><li>The 131 shields and 105 unshields show the user’s address, token and amount, as designed.</li></ul><h3>5. Does every account really give the auditor a key?</h3><p><strong>Result:</strong> yes. All 553 registered accounts have an auditor copy onchain.</p><p>The registry contract (<a href="https://testnet-explorer.rayls.com/address/0xa473291ffb33e2276f364fae169f03c4406719e9">UserRegistry, 0xa473…19e9</a>) has a public function that returns each account’s audit ciphertexts. Each copy is 1,088 bytes, the ciphertext size of ML-KEM-768. The auditor’s public key is 1,184 bytes, the ML-KEM-768 key size.</p><p>When I registered @alantest2, the wallet’s first step was “Encrypt your view key for the auditor”. Seconds later, the registry held a copy for the new account too (552 accounts before, 553 after).</p><p>So the auditor copy is not a promise on a web page. It is written onchain for every account, anyone can check that it exists, and only the auditor can open it.</p><h3>6. Can anyone freeze funds or change the rules?</h3><p><strong>Result:</strong> no freeze, pause or blacklist function. Upgrades need a 2-signature multisig.</p><p>I read the verified source code of the shared USDr vault, the RLS vault and the relay contract on the explorer.</p><ul><li>The vaults have lock, unlock and nullify functions, but only the DvP role can call them, and they need a note’s nullifier, which only the note’s owner can compute. They serve delivery-versus-payment offers.</li><li>The shared vault and the registry can be upgraded by a contract called OwnerMultisig, which needs 2 confirmations.</li></ul><h3>7. How big is the crowd, and what leaks at the edges?</h3><p><strong>Result:</strong> every shielded payment hid among at least 152 unspent notes. Exact amounts linked only 1 of 105 unshields.</p><p>I counted every note the USDr and RLS vaults have held since they were deployed. Each shielded payment in them was made when its vault already held at least 204 notes, at least 152 of them unspent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMGGnd28kQolAX1KY0eePQ.png" /></figure><p>Shielding and unshielding are public, so amounts can link them. Of the 105 unshields, 1 matched the exact amount of a single earlier shield from another address. The 0.25% fee changes amounts, and many people shield the wallet’s default amount, which keeps the rest apart. The wallet’s advice still holds: “wait before sending, and don’t send the exact amount you shielded.”</p><p>Privacy costs gas: a median of 2.43 million per shielded payment on the testnet, against 1.54 million for a public send through the same relay. Avalanche documents about 947,000 gas for an eERC transfer, which hides only the amount (<a href="https://docs.avax.network/integrations/encrypted-erc">Avalanche docs</a>).</p><p>The auditor’s own screen needs the auditor key, which only Rayls holds on the testnet. The wallet has a public <a href="https://enygma-testnet.rayls.com/auditor-demo/explorer">auditor demo with sample data</a> that shows “who paid whom, and how much”, past payments included.</p><h3>A checklist for a compliance officer</h3><p>Before approving any private payment rail, get a written answer to each question. Here are the answers for Enygma Public today.</p><ol><li><strong>Which fields does the public see?</strong> Only that a payment happened.</li><li><strong>Who holds the audit key, and how is it granted?</strong> The deployment’s auditor, through view keys escrowed at registration. Only an existing auditor can add a new one.</li><li><strong>Can the auditor, or anyone, move or freeze funds?</strong> No.</li><li><strong>Does the auditor see past transactions?</strong> Yes, past ones included.</li><li><strong>What is public at the edges?</strong> The address, token and amount at shield and unshield.</li><li><strong>What if the relayer refuses a transaction?</strong> Rayls runs it and can refuse, but the vaults accept a valid proof from anyone.</li><li><strong>Is it live on mainnet, and who can upgrade it?</strong> Not yet: it is a testnet pilot, and an owner multisig can upgrade the shared vault and the registry.</li></ol><h3>FAQ</h3><p><strong>Does Enygma Public hide payments from everyone?</strong><br>No. It hides them from the public, not from the auditor.</p><p><strong>Can the auditor take or freeze my money?</strong><br>No. The auditor’s copy of the view key reads notes. Spending needs the spend key, which never leaves the user’s browser, and no contract can freeze funds.</p><p><strong>Does the recipient learn who paid them?</strong><br>No. In my test the recipient’s wallet showed “Received +0.15 $USDr” with no sender. The auditor can still see who paid.</p><p><strong>Is Enygma Public live on mainnet?</strong><br>No. As of 28 November 2026 it is a testnet pilot on the Rayls Public Chain testnet, chain ID 7295799.</p><p><strong>How is this different from eERC or ERC-7984?</strong><br>Those hide amounts but keep the sender and recipient public. A shielded Enygma payment hides all three, at a higher gas cost.</p><p><strong>What does the public see when I enter or leave the shielded pool?</strong><br>The address, the token and the amount. Only payments between shielded balances are hidden.</p><h3>Sources</h3><ul><li>Rayls docs, architecture and Enygma: <a href="https://docs.rayls.com/docs/rayls-high-level-architecture">https://docs.rayls.com/docs/rayls-high-level-architecture</a></li><li>Rayls docs, Who sees what in Enygma Public: <a href="https://docs.rayls.com/docs/enygma-public-who-sees-what">https://docs.rayls.com/docs/enygma-public-who-sees-what</a></li><li>Rayls docs, Try Enygma Public on testnet: <a href="https://docs.rayls.com/docs/try-enygma-public-on-testnet">https://docs.rayls.com/docs/try-enygma-public-on-testnet</a></li><li>Enygma Public testnet wallet: <a href="https://enygma-testnet.rayls.com/">https://enygma-testnet.rayls.com</a></li><li>Rayls testnet explorer: <a href="https://testnet-explorer.rayls.com/">https://testnet-explorer.rayls.com</a></li><li>Canton docs, Privacy model: <a href="https://docs.canton.network/overview/learn/privacy-model">https://docs.canton.network/overview/learn/privacy-model</a></li><li>Aztec docs, Keys: <a href="https://docs.aztec.network/developers/docs/foundational-topics/accounts/keys">https://docs.aztec.network/developers/docs/foundational-topics/accounts/keys</a></li><li>Avalanche docs, Encrypted ERC: <a href="https://docs.avax.network/integrations/encrypted-erc">https://docs.avax.network/integrations/encrypted-erc</a></li><li>ZKsync docs, Prividium: <a href="https://docs.zksync.io/zk-stack/prividium">https://docs.zksync.io/zk-stack/prividium</a></li><li>Zama, ERC-7984 explained: <a href="https://www.zama.org/post/erc-7984-the-confidential-token-standard-explained">https://www.zama.org/post/erc-7984-the-confidential-token-standard-explained</a></li></ul><p><em>Tested on testnet with test tokens that have no value. This is not financial advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b19a4e9cb67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>