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
6
7namespace bb::avm2::simulation {
8
9// Forward declaration
10class MemoryInterface;
11
13 public:
14 virtual ~EccInterface() = default;
16 virtual EmbeddedCurvePoint scalar_mul(const EmbeddedCurvePoint& point, const FF& scalar) = 0;
17 virtual void add(MemoryInterface& memory,
18 const EmbeddedCurvePoint& p,
19 const EmbeddedCurvePoint& q,
20 MemoryAddress dst_address) = 0;
21};
22
23} // namespace bb::avm2::simulation
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