add circuit static params and adjust input sizes (wip)

This commit is contained in:
Dmitriy Ryajov 2024-02-06 10:15:16 -06:00
parent e045062620
commit 242461b2da
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,14 @@ import pkg/constantine/math/io/io_bigints
export circomcompat
const
# TODO: this defaults need to be adjusted and/or replased with cli config params
DefaultMaxDepth* = 32
DefaultMaxLog2NSlots* = 8
DefaultBlockTreeDepth* = 5
DefaultNCellFldElms* = 67
DefaultNSamples* = 5
type
CircomCompat* = object
slotDepth : int # max depth of the slot tree
@ -116,7 +124,7 @@ proc prove*[H](
return failure("Failed to push data set root")
if backend.pushInputU256Array(
"slotRoot".cstring, slotRoot.addr, slotRoot.len.uint32) != ERR_OK:
"slotRoot".cstring, slotRoot[0].addr, slotRoot.len.uint32) != ERR_OK:
return failure("Failed to push data set root")
if backend.pushInputU32(