Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
siloing.hpp
Go to the documentation of this file.
1#pragma once
2
7
8namespace bb::avm2::simulation {
9
11 public:
12 virtual ~SiloingInterface() = default;
13 virtual FF silo_nullifier(const FF& nullifier, const FF& silo_by) = 0;
14};
15
16class Siloing : public SiloingInterface {
17 public:
21
22 FF silo_nullifier(const FF& nullifier, const FF& silo_by) override
23 {
25 }
26
27 private:
28 FF silo(const FF& generator, const FF& elem, const FF& silo_by, SiloingType type);
29
31};
32
33} // namespace bb::avm2::simulation
#define GENERATOR_INDEX__OUTER_NULLIFIER
EventEmitterInterface< SiloingEvent > & events
Definition siloing.hpp:30
Siloing(EventEmitterInterface< SiloingEvent > &events)
Definition siloing.hpp:18
FF silo_nullifier(const FF &nullifier, const FF &silo_by) override
Definition siloing.hpp:22
FF silo(const FF &generator, const FF &elem, const FF &silo_by, SiloingType type)
Definition siloing.cpp:11
virtual FF silo_nullifier(const FF &nullifier, const FF &silo_by)=0
AvmFlavorSettings::FF FF
Definition field.hpp:10