Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_ecc.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <gmock/gmock.h>
4
5
#include "
barretenberg/vm2/common/field.hpp
"
6
#include "
barretenberg/vm2/simulation/ecc.hpp
"
7
8
namespace
bb::avm2::simulation
{
9
10
class
MockEcc
:
public
EccInterface
{
11
public
:
12
MockEcc
();
13
~MockEcc
()
override
;
14
15
MOCK_METHOD
(
EmbeddedCurvePoint
,
add
, (
const
EmbeddedCurvePoint
& p,
const
EmbeddedCurvePoint
& q), (
override
));
16
MOCK_METHOD
(
EmbeddedCurvePoint
,
scalar_mul
, (
const
EmbeddedCurvePoint
& p,
const
FF
& scalar), (
override
));
17
MOCK_METHOD
(
18
void
,
19
add
,
20
(
MemoryInterface
&
memory
,
const
EmbeddedCurvePoint
& p,
const
EmbeddedCurvePoint
& q,
MemoryAddress
dst_address),
21
(
override
));
22
};
23
24
}
// namespace bb::avm2::simulation
bb::avm2::StandardAffinePoint< AvmFlavorSettings::EmbeddedCurve::AffineElement >
bb::avm2::memory
Definition
memory.hpp:34
bb::avm2::scalar_mul
Definition
scalar_mul.hpp:35
bb::avm2::simulation::EccInterface
Definition
ecc.hpp:14
bb::avm2::simulation::EccInterface::add
virtual EmbeddedCurvePoint add(const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q)=0
bb::avm2::simulation::MemoryInterface
Definition
memory.hpp:14
bb::avm2::simulation::MockEcc
Definition
mock_ecc.hpp:10
bb::avm2::simulation::MockEcc::MOCK_METHOD
MOCK_METHOD(EmbeddedCurvePoint, scalar_mul,(const EmbeddedCurvePoint &p, const FF &scalar),(override))
bb::avm2::simulation::MockEcc::MOCK_METHOD
MOCK_METHOD(void, add,(MemoryInterface &memory, const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q, MemoryAddress dst_address),(override))
bb::avm2::simulation::MockEcc::MockEcc
MockEcc()
bb::avm2::simulation::MockEcc::~MockEcc
~MockEcc() override
bb::avm2::simulation::MockEcc::MOCK_METHOD
MOCK_METHOD(EmbeddedCurvePoint, add,(const EmbeddedCurvePoint &p, const EmbeddedCurvePoint &q),(override))
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
ecc.hpp
field.hpp
src
barretenberg
vm2
simulation
testing
mock_ecc.hpp
Generated by
1.9.8