Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ecc.hpp
Go to the documentation of this file.
1#pragma once
2
11
12namespace bb::avm2::simulation {
13
15 public:
16 virtual ~EccInterface() = default;
18 virtual EmbeddedCurvePoint scalar_mul(const EmbeddedCurvePoint& point, const FF& scalar) = 0;
19 virtual void add(MemoryInterface& memory,
20 const EmbeddedCurvePoint& p,
21 const EmbeddedCurvePoint& q,
22 MemoryAddress dst_address) = 0;
23};
24
56
57} // namespace bb::avm2::simulation
EventEmitterInterface< ScalarMulEvent > & scalar_mul_events
Definition ecc.hpp:50
Ecc(ExecutionIdManagerInterface &execution_id_manager, GreaterThanInterface &gt, ToRadixInterface &to_radix, EventEmitterInterface< EccAddEvent > &ecadd_event_emitter, EventEmitterInterface< ScalarMulEvent > &scalar_mul_event_emitter, EventEmitterInterface< EccAddMemoryEvent > &add_memory_event_emitter)
Definition ecc.hpp:27
ToRadixInterface & to_radix
Definition ecc.hpp:53
GreaterThanInterface & gt
Definition ecc.hpp:52
EmbeddedCurvePoint add(const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q) override
Definition ecc.cpp:12
EventEmitterInterface< EccAddMemoryEvent > & add_memory_events
Definition ecc.hpp:51
ExecutionIdManagerInterface & execution_id_manager
Definition ecc.hpp:54
EventEmitterInterface< EccAddEvent > & add_events
Definition ecc.hpp:49
virtual EmbeddedCurvePoint scalar_mul(const EmbeddedCurvePoint &point, const FF &scalar)=0
virtual EmbeddedCurvePoint add(const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q)=0
virtual void add(MemoryInterface &memory, const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q, MemoryAddress dst_address)=0
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10