2024-02-08 02:27:11 +00:00
|
|
|
## 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
|
2024-07-18 13:25:06 +00:00
|
|
|
cellData*: seq[H]
|
2024-02-08 02:27:11 +00:00
|
|
|
merklePaths*: seq[H]
|
|
|
|
|
|
|
|
PublicInputs*[H] = object
|
|
|
|
slotIndex*: int
|
|
|
|
datasetRoot*: H
|
|
|
|
entropy*: H
|
|
|
|
|
2024-02-19 18:58:39 +00:00
|
|
|
ProofInputs*[H] = object
|
2024-02-08 02:27:11 +00:00
|
|
|
entropy*: H
|
|
|
|
datasetRoot*: H
|
|
|
|
slotIndex*: Natural
|
|
|
|
slotRoot*: H
|
|
|
|
nCellsPerSlot*: Natural
|
|
|
|
nSlotsPerDataSet*: Natural
|
2024-07-18 13:25:06 +00:00
|
|
|
slotProof*: seq[H] # inclusion proof that shows that the slot root (leaf) is part of the dataset (root)
|
|
|
|
samples*: seq[Sample[H]] # inclusion proofs which show that the selected cells (leafs) are part of the slot (roots)
|