mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-09 14:15:41 +00:00
9e13d2251a
* rework backend to instantiate key at initialization * add groth16 convertes for solidity * prover taks num samples on construction * add zkey file * rework helpers * rename types * update tests * reworked test helpers * rename types * rework test * test all slots artifacts * bump to latest version
29 lines
706 B
Nim
29 lines
706 B
Nim
## 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.
|
|
|
|
type
|
|
Sample*[H] = object
|
|
cellData*: seq[byte]
|
|
merklePaths*: seq[H]
|
|
|
|
PublicInputs*[H] = object
|
|
slotIndex*: int
|
|
datasetRoot*: H
|
|
entropy*: H
|
|
|
|
ProofInputs*[H] = object
|
|
entropy*: H
|
|
datasetRoot*: H
|
|
slotIndex*: Natural
|
|
slotRoot*: H
|
|
nCellsPerSlot*: Natural
|
|
nSlotsPerDataSet*: Natural
|
|
slotProof*: seq[H]
|
|
samples*: seq[Sample[H]]
|