Chapter 6: The Trustless Escrow – The Atomic Swap

The contract template glowed on Val’s screen—a blank slate waiting for her to write the rules of engagement.

Dara’s video feed showed her hunched over her own keyboard, eyes darting between the template and the encrypted channel where The Settler’s threats had gone silent. He wasn’t done. He was regrouping.

Val knew the feeling.

“Trustless doesn’t mean you trust nobody,” she said, typing as she spoke. “It means the system works even if you don’t trust anyone. But right now, the system is working against us. We need to change the incentives.”

Dara frowned. “How?”

Val pulled up a diagram she’d drawn in her notebook—a simple grid with two rows and two columns. “Game theory. The Settler is attacking because his expected reward is bigger than his cost. He spends ten hours of quantum compute time. In return, he gets five thousand Aureus. That’s a good trade for him.”

“So we make it a bad trade.”

“Exactly.” Val filled in the grid. “If we can make the cost higher than the reward, he’ll stop. But we can’t make his quantum decryptor slower. We can only make the prize smaller—or create a bigger prize somewhere else that distracts him.”

“The decoy swap.”

“The decoy swap was phase one. It bought us time, but he already figured out it was fake. Now we need phase two.” Val opened a new contract on Chain C—not a testnet this time, but a real chain with real value. “We create a second decoy. A real one. With real funds.”

Dara’s eyes widened. “You want to risk more money?”

“Not mine.” Val smiled. “Yours.”


The plan unfolded over the next hour.

Val walked Dara through the mechanics while the timers ticked down on their original swap—Val’s Aureus still locked for another six hours, Dara’s Credits already claimed and returned.

“You have 4,800 Credits in your real wallet,” Val said. “We’re going to take 500 of them and put them into a new contract on Chain C. But we’re going to make the contract look like it contains 50,000.”

“How is that possible?” Dara asked. “The ledger shows the real balance.”

“Not if we use a proxy contract.” Val’s fingers flew across the keyboard, pulling up a template she’d designed months ago for the Hash Club. “This contract has two layers. The outer layer displays a fake balance—50,000 Credits. The inner layer holds the real balance—500. Anyone who queries the contract sees the outer layer. Only the person who creates the contract can see the inner layer.”

Dara studied the code. “That’s… deceptive.”

“That’s the point.” Val highlighted a section of the contract. “We’re also going to use a weak hash for the lock—one that looks easy to crack but is actually designed to self-destruct after two hours. The Settler’s quantum decryptor will see the weak hash and the fake balance, and it will switch targets.”

“And when he cracks it?”

“He’ll find a preimage that doesn’t lead to any funds. The contract will be empty. But by then, we’ll have already completed the real swap and moved the money.” Val leaned back. “It’s a bluff. A cryptographic bluff. He thinks he’s chasing a whale, but he’s really chasing a ghost.”

Dara was quiet for a moment. “You’ve been planning this since the beginning, haven’t you? The decoy, the trap, all of it.”

“Not since the beginning.” Val’s voice softened. “Since I realized you weren’t my enemy. That’s when I started thinking about how we could both win.”

Dara looked away, blinking rapidly. When she looked back, her eyes were red but steady. “Okay. Let’s do it.”


They built the decoy swap together.

Val wrote the contract code, drawing on everything she’d learned from the Hash Club’s late-night study sessions. Dara provided the real-world experience—the little tweaks that made the contract look legitimate to someone who’d seen a thousand swaps.

They set the fake balance at 50,000 Credits—enough to make The Settler’s mouth water.

They set the timelock at two hours—short enough to feel urgent, long enough to seem real.

They generated a weak hash—one that a quantum computer could crack in about ninety minutes. Val chose the preimage carefully: DecoyTrapForSettler2025!. It was long enough to be believable, but structured so that the hash had mathematical patterns a quantum algorithm would find attractive.

Then they funded the contract with 500 real Credits from Dara’s wallet.

The contract went live on Chain C at 3:17 AM, Neutral Zone time.

Val watched the network tracker. Within ninety seconds, The Settler’s quantum decryptor pinged the new contract.

NEW TARGET DETECTED. BALANCE: 50,000 CREDITS. HASH STRENGTH: WEAK. ESTIMATED TIME TO REVERSE: 1 HOUR, 28 MINUTES.

The Settler’s main channel—the one Dara had blocked—suddenly spawned a new thread. He was using a different alias now, but Val recognized the pattern of his messages. Short. Demanding. Angry.

ChainC_Observer: “Who put up that contract on Chain C? That’s not one of mine.”

ChainC_Observer: “Someone is poaching. Find out who.”

Val smiled. The bait was taken.


“Now we move to phase three,” she said.

Dara looked exhausted but alert. “Phase three?”

“We complete the original swap. For real this time.” Val pulled up the Chain A contract that still held her 5,000 Aureus. “You’re going to reveal the preimage. Not my preimage—you don’t have it. But you’re going to pretend to reveal. You’ll broadcast a fake preimage that matches the hashlock. The contract will reject it, but The Settler won’t see that. He’ll only see that you tried.”

“Won’t he check the ledger?”

“He will. But by the time he does, we’ll have already claimed the funds. The delay will buy us five, maybe ten minutes.” Val pulled up a second window—the private channel she’d set up for their real communication. “While you’re faking the reveal, I’ll use my real preimage to claim your Credits on Chain B. Then I’ll send them back to you through this encrypted channel. The Settler will see the Credits leave your wallet and assume the swap failed.”

“And my Aureus?”

“Still locked. But once The Settler realizes the decoy was a trap, he’ll turn his quantum decryptor back to my preimage. We need to claim your Credits and get them to safety before he cracks it.”

Dara calculated quickly. “My Credits are already claimed. You have them. You sent them back. So I’m safe.”

“You’re safe. But my Aureus are still at risk. The Settler could still crack my preimage and claim them before my timelock expires.” Val’s voice was calm, but her heart was racing. “That’s why we need the decoy to buy us as much time as possible. Every minute he spends chasing the fake contract is a minute my Aureus stay safe.”

“And when the fake contract self-destructs?”

“Then we run.”


The fake reveal happened at 3:42 AM.

Dara broadcast a transaction on Chain B—a preimage that was deliberately wrong. The contract rejected it, as expected. But the rejection created a ledger entry that anyone could see.

The Settler saw it.

ChainC_Observer: “What are you doing, Dara? That’s not the right preimage.”

ChainC_Observer: “You’re trying to complete the swap? After I told you not to?”

ChainC_Observer: “You’re making a mistake. A big one.”

Dara didn’t respond. Instead, she typed a single command into the private channel.

“Now, Val.”

Val didn’t hesitate.

She opened the Chain B contract—the one that still held Dara’s 4,800 Credits, even though Dara had already tried and failed to reveal. The contract was still active because the preimage had been wrong. The timelock still had four hours left.

Val typed her real preimage: SisterSurvives2025!$#9xT&2

The contract verified the hash.

CLAIM SUCCESSFUL. 4,800 CREDITS TRANSFERRED TO PREIMAGESEEKER.

On the public ledger, it looked like Val had stolen Dara’s funds. In reality, she’d just executed the second half of their plan.

Immediately—within the same second—Val opened the encrypted channel and sent the 4,800 Credits back to Dara’s real wallet, plus the 200 Credit fee she’d promised.

Dara’s wallet balance updated: from 847 to 5,847.

Enough for Leo’s treatment. Enough to breathe.

Dara stared at the number, tears streaming down her face. “You did it.”

“We did it,” Val said. “But we’re not done.”

She looked at her own timer: Chain A still held her 5,000 Aureus. The timelock had 4 hours and 22 minutes remaining. The Settler’s quantum decryptor was still chewing through the decoy contract on Chain C—but that contract would self-destruct in 38 minutes.

When it did, The Settler would turn his full attention back to Val’s real preimage.

And then the real race would begin.


The Settler’s channel exploded.

ChainC_Observer: “The decoy is empty. There were no Credits. You tricked me again.”

ChainC_Observer: “Dara. I’m looking at the Chain B ledger. Your Credits are gone. The girl claimed them.”

ChainC_Observer: “You think this is over? You think you’ve won?”

A new message appeared—not in the channel, but in Dara’s private inbox. The Settler had found a way around the block.

TheSettler: “I know where Leo sleeps. I know his school. I know his doctor’s name. You’ve bought yourself one night. Tomorrow, I start collecting.”

Dara’s face went pale. “He’s not bluffing.”

“I know.” Val pulled up a new window—a map of the Neutral Zone, showing the connections between Chain A, Chain B, and Chain C. “That’s why we’re going to finish this. Not just survive it. Finish it.”

She opened a third contract template—this one on Chain D, a new chain that had just launched six months ago. It had almost no security, almost no regulation, and almost no users. It was the perfect place to lay a trap.

“This is the real counter-swap,” Val said. “We’re going to offer The Settler a deal he can’t refuse. A swap so large, so tempting, that he’ll throw everything he has at it. But this contract has a hidden condition—one that will expose his wallet address, his transaction history, and his real identity to every moderator on every forum.”

Dara read the code, her eyes widening. “This is… this is brilliant. But if he figures it out—”

“He won’t.” Val’s voice was hard. “Because he’s arrogant. He’s been doing this for years. He thinks he’s untouchable. And arrogant people make mistakes.”

She looked at the timer: 3 hours, 58 minutes until her Aureus returned to her wallet.

“We have until my timelock expires to set the trap. After that, The Settler will have no reason to chase me—he’ll focus entirely on you. On Leo.”

Dara nodded slowly. “Then let’s not waste time.”

They started coding.


The trap took shape line by line.

Val wrote the outer shell—a standard HTLC with a hashlock, a timelock, and a balance that appeared to be 100,000 Credits. Dara added the decoys—fake reputation scores, fake previous swaps, fake reviews that made the contract look legitimate.

The hidden condition was Val’s masterpiece: a clause that said if the same wallet address attempted to claim funds using a brute-force method (more than ten preimage attempts in a one-hour window), the contract would automatically publish that wallet’s entire transaction history to a public ledger.

It was the cryptographic equivalent of a tripwire.

“He won’t be able to resist,” Val said. “100,000 Credits. A weak hash. A short timelock. It’s everything he wants.”

“And when he tries to crack it?”

“The contract will expose him. His wallet, his past victims, everything. The moderators will have all the evidence they need to ban him from every forum. Without his reputation, he’s nothing.”

Dara hesitated. “What if he doesn’t take the bait?”

“Then we try something else. But he will. Because he’s angry now. And angry people are predictable.”

Val looked at her timer: 2 hours, 15 minutes.

The decoy on Chain C had self-destructed. The Settler’s quantum decryptor was idle, waiting for a new target.

Val uploaded the trap contract to Chain D.

She set the fake balance at 100,000 Credits.

She set the timelock at six hours—long enough to seem real, short enough to feel urgent.

She generated a hash that was moderately weak—one that would take a quantum computer about four hours to crack.

Then she stepped back.

“It’s live,” she said. “Now we wait.”

Dara’s video feed showed her hugging her knees, rocking slightly. “I’m scared.”

“Me too.” Val’s voice was soft. “But we’re doing the right thing. For Leo. For Mira. For everyone The Settler has hurt.”

The network tracker pinged.

NEW TARGET DETECTED. CHAIN D. BALANCE: 100,000 CREDITS. HASH STRENGTH: MODERATE. ESTIMATED TIME TO REVERSE: 4 HOURS, 2 MINUTES.

The Settler had taken the bait.

Val let out a breath she didn’t know she’d been holding.

“Phase three complete,” she whispered. “Now we just need to survive the next four hours.”

She looked at her own timelock: 1 hour, 58 minutes.

If The Settler’s quantum decryptor finished cracking the trap’s hash before Val’s timelock expired, he might still turn his attention back to her preimage. But if the trap worked—if it exposed him before he could switch targets—then she was safe.

It was a race.

And Val intended to win.

Table of contents:
Introduction
Chapter 1: Two Chains, One Prison
Chapter 2: The Hashlock Agreement
Chapter 3: A Secret Preimage
Chapter 4: The Timeout Problem
Chapter 5: The Uncooperative Counterparty
Chapter 6: The Trustless Escrow
Chapter 7: A Cross-Chain Hunt <<<<<< NEXT
Chapter 8: The Reveal
Chapter 9: Settling the Swap
Chapter 10: Interlinked

Loading