Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::simulation::Ecc Class Reference

#include <ecc.hpp>

Inheritance diagram for bb::avm2::simulation::Ecc:
bb::avm2::simulation::EccInterface

Public Member Functions

 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)
 
EmbeddedCurvePoint add (const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q) override
 
EmbeddedCurvePoint scalar_mul (const EmbeddedCurvePoint &point, const FF &scalar) override
 
void add (MemoryInterface &memory, const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q, MemoryAddress dst_address) override
 
- Public Member Functions inherited from bb::avm2::simulation::EccInterface
virtual ~EccInterface ()=default
 

Private Attributes

EventEmitterInterface< EccAddEvent > & add_events
 
EventEmitterInterface< ScalarMulEvent > & scalar_mul_events
 
EventEmitterInterface< EccAddMemoryEvent > & add_memory_events
 
GreaterThanInterfacegt
 
ToRadixInterfaceto_radix
 
ExecutionIdManagerInterfaceexecution_id_manager
 

Detailed Description

Definition at line 25 of file ecc.hpp.

Constructor & Destructor Documentation

◆ Ecc()

bb::avm2::simulation::Ecc::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 
)
inline

Definition at line 27 of file ecc.hpp.

Member Function Documentation

◆ add() [1/2]

EmbeddedCurvePoint bb::avm2::simulation::Ecc::add ( const EmbeddedCurvePoint p,
const EmbeddedCurvePoint q 
)
overridevirtual

Implements bb::avm2::simulation::EccInterface.

Definition at line 12 of file ecc.cpp.

◆ add() [2/2]

void bb::avm2::simulation::Ecc::add ( MemoryInterface memory,
const EmbeddedCurvePoint p,
const EmbeddedCurvePoint q,
MemoryAddress  dst_address 
)
overridevirtual

Implements bb::avm2::simulation::EccInterface.

Definition at line 54 of file ecc.cpp.

◆ scalar_mul()

EmbeddedCurvePoint bb::avm2::simulation::Ecc::scalar_mul ( const EmbeddedCurvePoint point,
const FF scalar 
)
overridevirtual

Implements bb::avm2::simulation::EccInterface.

Definition at line 25 of file ecc.cpp.

Member Data Documentation

◆ add_events

EventEmitterInterface<EccAddEvent>& bb::avm2::simulation::Ecc::add_events
private

Definition at line 49 of file ecc.hpp.

◆ add_memory_events

EventEmitterInterface<EccAddMemoryEvent>& bb::avm2::simulation::Ecc::add_memory_events
private

Definition at line 51 of file ecc.hpp.

◆ execution_id_manager

ExecutionIdManagerInterface& bb::avm2::simulation::Ecc::execution_id_manager
private

Definition at line 54 of file ecc.hpp.

◆ gt

GreaterThanInterface& bb::avm2::simulation::Ecc::gt
private

Definition at line 52 of file ecc.hpp.

◆ scalar_mul_events

EventEmitterInterface<ScalarMulEvent>& bb::avm2::simulation::Ecc::scalar_mul_events
private

Definition at line 50 of file ecc.hpp.

◆ to_radix

ToRadixInterface& bb::avm2::simulation::Ecc::to_radix
private

Definition at line 53 of file ecc.hpp.


The documentation for this class was generated from the following files: