Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ecc_msm_relation.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3
// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4
// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5
// =====================
6
7
#pragma once
8
#include "
barretenberg/relations/relation_types.hpp
"
9
10
namespace
bb
{
11
43
template
<
typename
FF_>
class
ECCVMMSMRelationImpl
{
44
public
:
45
using
FF
= FF_;
46
static
constexpr
std::array<size_t, 36>
SUBRELATION_PARTIAL_LENGTHS
{ 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
47
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
48
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 };
49
50
template
<
typename
ContainerOverSubrelations,
typename
AllEntities,
typename
Parameters>
51
static
void
accumulate
(ContainerOverSubrelations& accumulator,
52
const
AllEntities& in,
53
const
Parameters&
/* unused */
,
54
const
FF
& scaling_factor);
55
};
56
57
template
<
typename
FF>
using
ECCVMMSMRelation
=
Relation<ECCVMMSMRelationImpl<FF>
>;
58
59
}
// namespace bb
bb::ECCVMMSMRelationImpl
MSM relations that evaluate the Strauss multiscalar multiplication algorithm.
Definition
ecc_msm_relation.hpp:43
bb::ECCVMMSMRelationImpl::accumulate
static void accumulate(ContainerOverSubrelations &accumulator, const AllEntities &in, const Parameters &, const FF &scaling_factor)
MSM relations that evaluate the Strauss multiscalar multiplication algorithm.
Definition
ecc_msm_relation_impl.hpp:47
bb::ECCVMMSMRelationImpl::FF
FF_ FF
Definition
ecc_msm_relation.hpp:45
bb::ECCVMMSMRelationImpl::SUBRELATION_PARTIAL_LENGTHS
static constexpr std::array< size_t, 36 > SUBRELATION_PARTIAL_LENGTHS
Definition
ecc_msm_relation.hpp:46
bb::Relation
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
Definition
relation_types.hpp:153
bb
Entry point for Barretenberg command-line interface.
Definition
acir_format_getters.cpp:6
bb::FF
typename Flavor::FF FF
Definition
protogalaxy.bench.cpp:16
relation_types.hpp
src
barretenberg
relations
ecc_vm
ecc_msm_relation.hpp
Generated by
1.9.8