From 29e884258cb381fe4ec52693efbc7d715f32e94d Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 26 Jan 2024 19:53:11 -0600 Subject: [PATCH] wip rework backend --- codex/slots/proofs/backends/circomcompat.nim | 5 ++++- codex/slots/proofs/prover.nim | 22 ++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/codex/slots/proofs/backends/circomcompat.nim b/codex/slots/proofs/backends/circomcompat.nim index 2bc7f433..db784aeb 100644 --- a/codex/slots/proofs/backends/circomcompat.nim +++ b/codex/slots/proofs/backends/circomcompat.nim @@ -172,7 +172,10 @@ proc prove*[H]( if backend != nil: backend.addr.releaseCircomCompat() - success proof + success CircomProof( + proof: proof, + cfg: self.backendCfg, + backend: backend) proc verify*( self: CircomCompat, diff --git a/codex/slots/proofs/prover.nim b/codex/slots/proofs/prover.nim index 3161c78f..713f9689 100644 --- a/codex/slots/proofs/prover.nim +++ b/codex/slots/proofs/prover.nim @@ -1,12 +1,12 @@ -## Nim-Codex -## Copyright (c) 2024 Status Research & Development GmbH -## Licensed under either of -## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) -## * MIT license ([LICENSE-MIT](LICENSE-MIT)) -## at your option. -## This file may not be copied, modified, or distributed except according to -## those terms. -## +# ## Nim-Codex +# ## Copyright (c) 2024 Status Research & Development GmbH +# ## Licensed under either of +# ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# ## * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# ## at your option. +# ## This file may not be copied, modified, or distributed except according to +# ## those terms. +# ## import pkg/chronos import pkg/chronicles @@ -25,8 +25,8 @@ import ../../utils/poseidon2digest import ../builder import ../sampler -import ./backends -import ../types +# import ./backends +# import ../types export backends