Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests #247

Merged
merged 19 commits into from
Feb 3, 2025
Merged

tests #247

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix incorrect constant in zeko_transaction_snark
L-as committed Jan 15, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
nikolaybotev Nikolay Botev
commit 6fc5c5e4975b67ef3ed566b619f2763aa1d151a3
6 changes: 2 additions & 4 deletions src/app/zeko/circuits/zeko_transaction_snark.ml
Original file line number Diff line number Diff line change
@@ -253,12 +253,10 @@ module Account_set = Indexed_merkle_tree.Make (struct
multi_range_check z0 z1 z2

let l =
Bigint.of_bignum_bigint Bignum_bigint.(of_int 2 |> Fn.flip shift_left 88)
Bigint.of_bignum_bigint Bignum_bigint.(of_int 1 |> Fn.flip shift_left 88)
|> Bigint.to_field

let l2 =
Bigint.of_bignum_bigint Bignum_bigint.(of_int 2 |> Fn.flip shift_left 176)
|> Bigint.to_field
let l2 = Field.(l * l)

let field_to_field3 x =
let* (x0, x1), x2 =