From 23fa9a58480fbc515a5dc9b25eb084033b6bad14 Mon Sep 17 00:00:00 2001 From: Andrei Stoian <95410270+andrei-stoian-zama@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:23:02 +0100 Subject: [PATCH] docs: fix readme example (#1378) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 77eaa83ea..7a2b1b304 100644 --- a/README.md +++ b/README.md @@ -52,17 +52,17 @@ def f(x, y): inputset = [(2, 3), (0, 0), (1, 6), (7, 7), (7, 1), (3, 2), (6, 1), (1, 7), (4, 5), (5, 4)] compiler = hnp.NPFHECompiler( - f, {"x": x, "y": y}, + f, {"x": "encrypted", "y": "encrypted"}, ) circuit = compiler.compile_on_inputset(inputset) -circuit.run(3, 4) +print(circuit.run(3, 4)) # 7 -circuit.run(1, 2) +print(circuit.run(1, 2)) # 3 -circuit.run(7, 7) +print(circuit.run(7, 7)) # 14 -circuit.run(0, 0) +print(circuit.run(0, 0)) # 0 ```