From e57182d985e1d3f33cd67fe5085a34dceebfe368 Mon Sep 17 00:00:00 2001 From: David Wong Date: Mon, 22 Jan 2024 20:05:45 -0800 Subject: [PATCH] fix example --- examples/circuit/public_inputs.json | 70 ++--------------------------- examples/circuit/stateless.circom | 3 +- 2 files changed, 5 insertions(+), 68 deletions(-) diff --git a/examples/circuit/public_inputs.json b/examples/circuit/public_inputs.json index 0895ca2..cc0f756 100644 --- a/examples/circuit/public_inputs.json +++ b/examples/circuit/public_inputs.json @@ -1,70 +1,8 @@ { - "a": [ - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0" + "preimage": [ + "1" ], - "b": [ - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0", - "1", - "0" + "truncated_txid": [ + 0 ] } \ No newline at end of file diff --git a/examples/circuit/stateless.circom b/examples/circuit/stateless.circom index a82417b..c3160ad 100644 --- a/examples/circuit/stateless.circom +++ b/examples/circuit/stateless.circom @@ -7,10 +7,9 @@ template Main() { signal input preimage[1]; - var hardcoded_value = 17744324452969507964952966931655538206777558023197549666337974697819074895989; + var hardcoded_value = 18586133768512220936620570745912940619677854269274689475585506675881198879027; signal digest <== Poseidon(1)(preimage); - log(digest); digest === hardcoded_value; }