Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ecc_wnaf_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
9
10namespace bb {
43template <typename FF_> class ECCVMWnafRelationImpl {
44 public:
45 using FF = FF_;
46
47 static constexpr std::array<size_t, 21> SUBRELATION_PARTIAL_LENGTHS{
48 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
49 };
50
51 template <typename ContainerOverSubrelations, typename AllEntities, typename Parameters>
52 static void accumulate(ContainerOverSubrelations& accumulator,
53 const AllEntities& in,
54 const Parameters& /* unused */,
55 const FF& scaling_factor);
56};
57
59
60} // namespace bb
ECCVMWnafRelationImpl evaluates relations that convert scalar multipliers into 4-bit WNAF slices.
static constexpr std::array< size_t, 21 > SUBRELATION_PARTIAL_LENGTHS
static void accumulate(ContainerOverSubrelations &accumulator, const AllEntities &in, const Parameters &, const FF &scaling_factor)
ECCVMWnafRelationImpl evaluates relations that convert scalar multipliers into 4-bit WNAF slices.
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
Entry point for Barretenberg command-line interface.
typename Flavor::FF FF