gen_acc

package
v0.0.0-...-3805acb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

The accumulator package is responsible for accumulating the data from different arithmetization module.

Index

Constants

View Source
const (
	GENERIC_ACCUMULATOR = "GENERIC_ACCUMULATOR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericAccumulatorInputs

type GenericAccumulatorInputs struct {
	MaxNumKeccakF int
	ProvidersData []generic.GenDataModule
	ProvidersInfo []generic.GenInfoModule
}

type GenericDataAccumulator

type GenericDataAccumulator struct {
	Inputs *GenericAccumulatorInputs
	// stitching of modules together
	Provider generic.GenDataModule

	// the active part of the stitching module
	IsActive ifaces.Column
	// contains filtered or unexported fields
}

The sub-module GenericDataAccumulator filters the data from different generic.GenDataModule,

and stitch them together to build a single module.

func NewGenericDataAccumulator

func NewGenericDataAccumulator(comp *wizard.CompiledIOP, inp GenericAccumulatorInputs) *GenericDataAccumulator

It declares the new columns and the constraints among them

func (*GenericDataAccumulator) Run

It assigns the columns specific to the submodule.

type GenericInfoAccumulator

type GenericInfoAccumulator struct {
	Inputs *GenericAccumulatorInputs
	// stitching of modules together
	// HashHi and HashLo are over the same row
	// isHashHi = isHashLo = IsActive
	Provider generic.GenInfoModule

	// the active part of the stitching module
	IsActive ifaces.Column
	// contains filtered or unexported fields
}

The sub-module GenericInfoAccumulator filters the data from different generic.GenInfoModule,

and stitch them together to build a single module.

func (*GenericInfoAccumulator) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL