Skip to content

Commit

Permalink
clean up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed May 30, 2024
1 parent fb5e4b1 commit c3df7a9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions circuit/src/ZK/Adder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ circuit = do
adder <- var_ <$> fieldInput Private "adder"
step_in <- map var_ <$> fieldInputs @2 Public "step_in"
let step_out =
bundle_ $
Build
( step_in `index` 0
+ adder
:< step_in
`index` 0
+ step_in
`index` 1
:< Nil
)
void $ fieldOutputs "step_out" step_out
let so0 = (step_in `index` 0) + adder
so1 = (step_in `index` 0) + (step_in `index` 1)
in Build (so0 :< so1 :< Nil)
void $ fieldOutputs "step_out" (bundle_ step_out)

0 comments on commit c3df7a9

Please sign in to comment.