He Cloned My App, Then Sued Me for Stealing ItChapter 4

The Hash That Doesn't Lie (and the History I Rewrote)

Wren Okonkwo took the call from a kitchen in Toronto, with a half-eaten bowl of oatmeal next to her laptop and the unhurried face of a person who has been lied to by professionals.

"You're not what I expected," she said.

"What did you expect?"

"Someone with a lawyer."

"I have an email address and a stool."

She almost smiled. It was ten at night in Bandung and nine in the morning in Ontario, and between us was the one thing I had to get right: whether I could make a reporter see, in thirty minutes, what had taken me two years to stop noticing.

"Your question was good," I said. "I'll answer it. But I want to show you something first, because if I just tell you, it sounds like an excuse."

"Show me."

I shared my screen. A terminal, a new folder named `demo`.

"Three commits," I said, and made them. A file with the word *alpha*. Then the word *beta* added to it. Then *gamma*. I ran `git log --oneline`. Three lines, each starting with a short code.

``` c7d41e0 add gamma 81ab9f2 add beta 4e2d05c add alpha ```

"Those codes are hashes," I said. "Each one is calculated from the commit's contents. The text of the change, the author, the date, the message, and one more thing."

"Which is?"

"The code of the commit that came before it."

Wren put down her spoon. "So the second one includes a fingerprint of the first."

"And the third includes the second, which includes the first. It's a chain. Each link carries a copy of the previous link's name."

"And if you change the first?"

"Watch."

I used a command that rewrites history, the sort of thing every tutorial warns you away from, and changed the message of the very first commit from *add alpha* to *add a*. I ran the log again.

``` d09b6c3 add gamma 7ff03a1 add beta b5e8220 add a ```

All three codes had changed. Not just the first. Every commit that came after it was now a different object.

"That's the point," I said. "You can't edit the past quietly. Change anything in an old commit and its name changes, and the next commit, which has the old name inside it, must change too, and so on to the end. Anyone holding the old names sees the mismatch. People call it a hash chain, or in this case a tree of hashes, a Merkle tree. It's the reason you can trust a copy of a git repository from an untrusted server. You check one name at the top, and if it matches, the entire history below it is exactly what it was."

"And the date is inside the hash."

"Yes."

"So if Halcyon's dates were altered after the fact, the hashes would change."

"Right. But that's the catch. If they wrote the whole history from the beginning, dates and all, the chain is flawless. Hash chains tell you the past hasn't been edited since someone published it. They don't tell you the past was honest on the day it was written."

Wren leaned toward her camera. "Good. That's the part of your post that people missed." She paused. "Now do mine."

"Yours?"

"Your hashes. The ones that don't match."

I closed the demo.

I told her. It took longer than I had meant it to, and I told it badly, without the order of someone who had rehearsed.

Fourteen months ago, a payment provider emailed me at 1:40 a.m. to say that a secret key, the password that lets a program charge money, had been found sitting in plain text in a public repository. Mine. Three early commits, from the first week of the project, when I was young and careless and thought nobody would read them.

"You committed your password," Wren said.

"A test key. But it worked on a live account. I had maybe an hour before somebody scraped it."

I rotated the key. That much is easy. But the old key still lived in those three commits, and anyone could read them in the history. So I did what the documentation tells you to do for exactly this situation: I used a history-rewriting tool to remove the file from every commit that contained it, and I pushed the result over the top of the old branch.

"Force-pushed," Wren said.

"Yes."

"Which changes every hash after the first commit you touched."

"All of them," I said. "Every commit in the project got a new name. I did it at two in the morning. I went through the history and I also fixed the messages while I was at it. A hundred commits that said 'wip' or 'fix lol' or things I wouldn't say in front of my mother."

"And you didn't tell anyone."

"I put 'maintenance' in the release notes."

She was quiet.

"There were two hundred and twelve forks," I said. "I broke every one. Somebody from a Polish university emailed me about it. I never answered."

"Why not?"

"Because I was ashamed." It came out smaller than I intended. "I knew it was the correct fix for the key. I also knew I'd done it the way you do things when you're alone and no one is watching."

Wren wrote something down. I watched her pen move and understood I was about to read it.

"I'm going to publish this," she said.

"I know."

"Not because I think you're lying. Because it's true, and because the other side is about to publish it with worse adjectives. If I print your account first, with your explanation, with the context that a key rotation is a legitimate reason, then your version exists."

"And the headline?"

"Is not up to me. My editor reads at six."

"And the proof?" I asked. "That I rewrote it for the reason I said?"

She looked at me through the camera with a patience that was not quite kindness. "Do you have the old history?"

I did not.

My old laptop had been sold to a cousin and wiped, per habit, the week I bought a new one. The disabled repository on GitHub, which would have held unreachable copies of the old commits for a while, was unreadable to me now. And I had never in my life thought to keep a second copy of a thing I believed I had finished with.

"Not that I can find," I said.

"Then right now, all I can say is that you say so."

It is hard to describe what that sentence does to you. It is not an accusation. It is a precise description of your position. For thirty minutes I had been the one who understood the chain, the careful man at the whiteboard, and then one fact about my own conduct and I was just another person asking a stranger to believe him.

Wren published at 5:50 a.m. Toronto time.

She was fair. Every fact was correct. She quoted my explanation of the key, she quoted the Halcyon response ("We welcome the court's scrutiny"), and she wrote that git dates are claims, not proofs, and that the same was true of Raka Wibisono's own history. Her second paragraph said that hash chains protect history from silent edits and tell us nothing about its honesty at the start.

The headline her editor chose was **The Developer Who Rewrote History.**

By nine in the morning my inbox was a forest.

Halcyon's account posted a single line, quoting it: *"He erased his own past and wants to see our receipts."* Jett did the same on his podcast, with that warm wounded laugh: "Look, I'm not saying he's a bad guy. I'm saying a guy who rewrites his history shouldn't be teaching us about history, you know?" Four hundred thousand people watched a clip of it before lunch.

The costs arrived like weather.

By noon, BayarKita, a digital bank in Jakarta that had been two weeks from signing a deal to integrate Patungan into their app, sent a polite email pausing the contract "pending the resolution of the matter." The contract was worth eighteen thousand dollars a year. It would have paid for my rent for ten months.

By two, six of the forty-one developers who had publicly defended me the day before had quietly changed their replies. Not to attack. To *wait and see.*

By four, a Hacker News thread titled "Patungan dev admits to rewriting git history" had passed nine hundred comments. The top-voted one read: *Whatever the truth is about Halcyon, this is exactly why you don't trust a solo dev's claimed timeline.*

I read it and could not say it was unfair.

That night I sat in the front room with the lights off and the laptop closed. Rain on the tin awning. My mother had called twice. I let it ring both times, because I did not know how to say, *Ibu, I may have lost this because of something I did on a Tuesday two years ago.*

Dinda came at nine. She had taken the last train from Jakarta and arrived with a cardboard box of lemper from a stall at Gambir and the expression of someone who has done a double shift and is not going to discuss it.

"Eat," she said.

I ate a lemper. Sticky rice, shredded chicken, banana leaf. For a minute I was twelve.

"Tell me all of it," she said, and I told her. She did not interrupt. When I finished, she folded the banana leaf into a neat square and set it on the floor.

"So the problem isn't that you did something wrong."

"It is."

"The problem," she said, "is that you can't *show* what you did. That's different. A doctor who writes a chart late is not the same as a doctor who writes a false chart. But if you can't produce the original, nobody can tell the difference."

"That's the problem."

"Then you're not looking for the truth. You already have it. You're looking for a copy of the truth that was made by somebody else."

I stared at her.

"Somebody else," I said.

"Or something. A backup. A photo. A receipt in somebody's inbox. I'm a nurse, Raka. When the chart gets lost, we don't argue about whether it existed. We find the monitor printout."

She went to bed in my room. I sat in the dark for a long time.

At 11:30, the thing I had been searching for fell out of my memory the way a coin falls out of a sofa.

A black external drive. Two terabytes, scratched, with a strip of masking tape across the top. On the tape, in my handwriting, in Indonesian: *JANGAN DIBUANG.* Do not throw away.

I had bought a new laptop and a new backup disk fifteen months ago, a few weeks before the night of the leaked key. And the old one, the one that had faithfully copied my laptop every hour for two years, I had put in the bottom drawer of the desk I no longer used, under a soldering iron and a coil of cable, because I had thought: someday.

The drawer was in the bedroom.

My sister was sleeping there.

I stood in the doorway for a full minute, a grown man in a hallway weighing a drawer against a nurse's rest.

Then I opened it as quietly as I could.