rework circom compat

This commit is contained in:
Dmitriy Ryajov 2024-01-29 14:57:40 -06:00
parent 30ab88572d
commit 0da9d51213
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 5 additions and 4 deletions

View File

@ -23,6 +23,9 @@ import ../../../codextypes
import pkg/constantine/math/arithmetic
import pkg/constantine/math/arithmetic
import pkg/constantine/math/io/io_bigints
export circomcompat
type
@ -178,10 +181,8 @@ proc prove*[H](
if backend != nil:
backend.addr.releaseCircomCompat()
success CircomProof(
proof: proof,
cfg: self.backendCfg,
backend: backend)
if backend != nil:
backend.addr.releaseCircomCompat()
proc verify*(
self: CircomCompat,