add circuit static params and adjust input sizes (wip)
This commit is contained in:
parent
e045062620
commit
242461b2da
|
@ -28,6 +28,14 @@ import pkg/constantine/math/io/io_bigints
|
||||||
|
|
||||||
export circomcompat
|
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
|
type
|
||||||
CircomCompat* = object
|
CircomCompat* = object
|
||||||
slotDepth : int # max depth of the slot tree
|
slotDepth : int # max depth of the slot tree
|
||||||
|
@ -116,7 +124,7 @@ proc prove*[H](
|
||||||
return failure("Failed to push data set root")
|
return failure("Failed to push data set root")
|
||||||
|
|
||||||
if backend.pushInputU256Array(
|
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")
|
return failure("Failed to push data set root")
|
||||||
|
|
||||||
if backend.pushInputU32(
|
if backend.pushInputU32(
|
||||||
|
|
Loading…
Reference in New Issue