Hesper Dray arrived at ten o'clock exactly, carrying a chalkboard under one arm like a plank she had pulled off a wreck.
She was thirty-eight, lean, brown, cropped-haired, with a face that wind had been editing for years. She wore a rig-worker's oilskin over an expensive gray suit, and no jewelry at all. A long white scar ran from her left ear down her neck and vanished under her collar. She shook my hand with a grip like a winch, looked me up and down in one flat glance, and said, "You're smaller than your docket."
"People keep saying that."
"They'll keep saying it. Be useful about it." She set the board against the wall. "Is there somewhere to stand? I don't sit when I'm working. I got used to it on platforms. A sitting woman gets hit by things."
Imara Voss, who had escorted her up and now stood by the door with the air of a lighthouse that has been asked to stay out of the weather, said, "The atrium is available. It's empty until noon."
"Perfect," said Hesper. "I want stairs."
The atrium of the Office was a tall round hall with a skylight, a marble floor, and two curved staircases that spiraled up opposite sides of a central pillar to a gallery on the second floor. On the gallery, between the tops of the staircases, was a plain wooden door, which gave onto the Reading Room corridor.
"That door," Hesper said. "Locked?"
"With a four-digit code," said Imara.
"Who knows it?"
"The Auditors on this floor. About twelve."
"Change it. Tonight. To something Miss Varga picks and tells no one. Not you. Not me." She looked at me. "Can you do that?"
I wasn't sure what I was agreeing to. But I looked at the stairs, and the pillar, and the door at the top, and something in the back of my head began to hum, very softly, with the feeling it gets when a problem shows its shape.
"Yes," I said.
Hesper grinned. It was a wolfish, delighted grin, unexpectedly young. "Good. Let me tell you my problem. I'll be quick. I run a company that has four hundred and twenty platforms, nine thousand people under covenant, and a debt to Sato-Halvorsen that would make a saint swear." She crossed to the chalkboard and wrote in large letters: **PROVE.** "Every quarter the Council's safety inspectors audit my platforms. They want proof that the pressure systems pass an inspection invariant. Don't ask me which. It's the one that keeps a rig from becoming a bomb. They want to see my design files. I won't give them. My design files are the only thing I have that Vantor doesn't."
"Trade secrets."
"Trade secrets and survival." She drew a box. "The inspectors have no right to the designs under law. They have a right to *assurance.* But in practice, assurance means they read the files, and in practice, someone on the Council forwards the files to Vantor's engineers by Friday. So I'm in a bind. I need to prove to a man that something is true without showing him *why* it is true. Mirela Tsang says you can do that."
"Mirela said that?"
"She said you could do *anything with numbers.* She also said you'd hate being called a genius. I'm not calling you one. I'm asking whether it's possible." She turned. "Is it?"
I thought. It was the oldest of my favorite problems, and I had loved it since the fourth form, when Mr. Oyelaran had told us, with the air of a man revealing a magic trick, that there is a way to convince someone you know a secret without telling them anything at all.
"Yes," I said. "In some cases. For some kinds of statement. Can I borrow your chalk?"
I drew a ring.
"A cave," I said. "An old story. It's called the Ali Baba cave, because the first people who explained it in public, a group of cryptographers in the nineteen-eighties, wrote it as a children's tale. The cave is a loop. You go in the mouth at the bottom, and the tunnel splits into two paths, left and right. At the back they join in a circle, but there's a door at the join. A magic door. It opens only if you know the secret word."
"Like that." Hesper nodded at the gallery.
"Like that. Two staircases, one door in between. Say I'm Peggy: I know the code. You're Victor: you want to be sure I know it, without hearing it. The test goes like this. You wait at the bottom of the stairs, where you can see neither staircase. I go up one, you don't know which, left or right. When I'm at the top, you call a side: *come down the left,* or *come down the right.* If I went up the left and you call left, I just walk down. If you call right, I have to get across to the other staircase, which means going through the door."
"Which you can only do if you know the code."
"Yes. If I know it, I can come down whichever you call, every time. If I don't, I can only come down the side I went up, which means I'm caught half the time. A single round proves very little. Fifty-fifty. But if we do it twenty times, and each time you pick the side at random, the chance I get all twenty right without knowing the code is one in two to the twentieth." I wrote **2²⁰ = 1,048,576** on the board. "One in a million."
Hesper looked at the number for a long moment, as at a gauge.
"And at no point do I learn the code."
"At no point. You only see which stair I come down. The code doesn't leave my head. That's the *zero knowledge.* You come away convinced that I know something and not knowing anything more than you did."
"Show me."
Imara, by the wall, cleared her throat. "Miss Varga. The door is currently still set to the old code."
"Then change it now."
Imara looked at me. For a moment I thought she was going to refuse. Then she went up the east staircase, quickly, and I heard her at the door at the top, and a soft double click. She came down.
"Done. I did not look."
I went up. The stairs curved like a snail. At the top I stood in the gallery in front of the plain wooden door and punched in four digits, a number I will not tell you, though it is not what you think, and the lock sighed, and I stood there with my heart going.
I had not told her which stair to use. She did not know that I knew.
We ran twenty rounds.
I want to say how strange it was. Hesper stood at the foot of the stairs with her back to the pillar and her arms folded and her eyes closed. Imara stood beside her as an impartial witness. I went up the east staircase, or the west, flipping a coin Imara had loaned me, and each time I stood in the gallery and waited. Hesper called out: "East!" or "West!" She chose by rolling a die, twice, and a prime number, a thing she did without being asked, and it made me like her very much.
If she called the side I had gone up, I walked down. If she called the other, I stepped to the door, entered the code, and crossed the gallery, and came down the far stairs, and she watched me come, and she did not know what I had done up there.
Round five, she called the wrong side. I crossed. Round nine, again. I counted my steps. By round twelve my knees were burning. Hesper had stopped smiling and had begun to watch with the narrow flat gaze of a woman reading a pressure gauge.
At round seventeen, she said, "Hold."
I stopped on the stair. She stood with her eyes open, looking at me.
"What if you're cheating," she said. "What if the door isn't locked. What if the code's nothing, and you've been walking through it all along."
"Then Imara would have seen. She changed it. She locked it."
"Imara could be your friend."
"She could." I looked at Imara. She looked back, with a very faint flicker of something at the corner of her mouth. "Test it. Try the door."
Hesper went up the west stair. She tried the handle. It didn't give. She tried again, and swore, mildly, and a laugh came out of her, sharp as a breaking glass.
"Locked."
"Then the proof isn't that I can walk through. It's that I can walk through *when you ask.* If the door's locked to everyone but me, and I come down the side you didn't expect, seventeen times in a row, with the side picked by a die you rolled, the only thing that fits is that I have the code." I wiped my forehead. "Three more rounds?"
We did three more. At the end she shook her head slowly.
"Twenty," she said. "One in a million. I'm convinced."
"Good."
"And I still don't know the code."
"No."
"I find that profoundly offensive."
She sat down on the bottom stair, finally, with her elbows on her knees.
"Here's the problem I've been thinking about for the last ten minutes," she said. "I'm convinced. I watched it. But if I ran this for the Council inspectors, and I showed them a recording, a video, of you and me doing it, would they be convinced?"
"No."
She raised her eyebrows. "Why?"
I had been waiting for it. It is the part people find hardest, and the best part.
"Because a recording doesn't prove I knew the code. It could be a video of two people who agreed in advance. You roll the die *before* we start, write down twenty calls, and I know the list. I go up the stairs and come down the side you've already told me you'll call. I never touch the door. We film the whole thing, and it looks identical. A transcript of a zero-knowledge proof proves nothing to anyone who wasn't there choosing the coin. It only convinces the person who chose the challenge, live."
"That's what makes it zero-knowledge."
"It's *half* of what makes it zero-knowledge. The verifier learns nothing she couldn't have made up. A transcript could be simulated by someone who didn't know the secret. That's the formal definition. If I can fake the transcript without the secret, then the transcript carries no knowledge." I rubbed my hands together. "It's also why this version is only for people in a room."
"So for the Council inspectors I'm no better off."
"There's a version for that. A cousin. You replace the person who calls the side with a hash of everything that's been said so far. The *hash* decides. The prover can't predict the call without committing first, because she doesn't know what she'll be hashed against, and she can't fake the whole transcript because that would need her to guess the hash's output. It's called the Fiat-Shamir heuristic. It lets you write a proof that anyone can check later, without being there." I stopped. "I can't build one tonight. I'm not an engineer. But it exists."
Hesper looked at me for a very long time. In the cold light from the skylight, with the white scar on her neck and the chalk on her sleeve, she looked less like a chief executive than a woman doing sums on a wreck at low tide.
"Here is what I know about you," she said. "You're nineteen. You were a ward. You taught yourself this from a night-school teacher, a Matron, and a library. You beat Corin Ashby on a hash." She leaned forward. "And in forty minutes you built me a proof I could use against my own Council, with a staircase."
"It's not a proof about rig safety. It's an illustration."
"It's an *argument,* Miss Varga. I run a company. I know the difference." She stood. Her voice dropped. "I will review the sale of Mirela Tsang. I'll do it myself, this week. If there's a pre-assignment in her leaf, I'll tell you. I'll tell you *before* I tell my lawyers."
"Thank you."
"Don't. I'm not doing it for you." She was already pulling on her oilskin. "I was offered priority placement in 2087, you know. Vantor had it. Sato had it. A little arrangement with the Council: certain wards, certain price, certain votes. I turned it down. It was the second most expensive decision I ever made. The most expensive is that I haven't said so out loud."
"Why are you saying it now?"
"Because I need someone who can prove things to people who don't trust each other. And that person, apparently, is a girl with a bottle cap in her pocket." She glanced at my hand. I had not realized I was holding it. "I have a man for you. A clerk, at the Placement Hall. He has been trying to reach me for a month. He has records. He is so frightened he cannot hold a pen."
"A clerk."
"Sunil Mehra. He says he has the real placement files. Every ward sold in the last twelve years, with the real counterparty, and the date it was decided." Her gaze met mine. "He won't talk to the Council. He won't talk to the Office. If his name goes on a page, he's dead, or worse, he's restructured. I told him I knew someone who could make a proof that couldn't be traced."
"That's a different problem."
"I know." She grinned, tightly. "You'd better be as good as the staircase."
She picked up her chalkboard. At the door she stopped.
"One thing." She did not turn. "Mirela. She's alive. She's well. She's also on a rig where, three weeks ago, a flange failed, and nobody was hurt because she'd read the maintenance manual and told the foreman it would. He docked her a week's credit for insubordination. She broke the check digit in her letter on purpose, because she wanted you to know she'd been punished for being right." Hesper's voice was dry. "She says it's a family trait."
"She wasn't in danger?"
"Not that kind. The other kind. The kind where your boss decides you're a problem." She shrugged. "I'll move her. I'll put her on the Harbor desk, with a window. I need people who read manuals."
She was gone, with a clatter of boots, and the atrium was very quiet. I sat down on the bottom step, because my legs had decided they were done, and laughed until I had to put my head on my knees.
Imara Voss came and sat beside me. She did not touch me. She looked up at the door on the gallery, which was still locked, the code known to one person in the building, and she said in her dry flat voice:
"I did not look."
"I know."
"I want you to know that I did not *want* to look." She kept her eyes on the door. "It was the most difficult twenty minutes of my professional life."
I turned my head. She was not smiling. But for the first time in the nineteen days I had known her, she was almost, very nearly, close.
"It was a good proof," she said. "I should have liked to have written it."