We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918895d commit 01cc9e7Copy full SHA for 01cc9e7
barretenberg/cpp/src/barretenberg/flavor/flavor.hpp
@@ -184,8 +184,8 @@ class NativeVerificationKey_ : public PrecomputedCommitments {
184
{
185
using namespace bb::field_conversion;
186
// Create a temporary instance to get the number of precomputed entities
187
- PrecomputedCommitments temp;
188
- size_t commitments_size = temp.get_all().size() * Transcript::template calc_num_data_types<Commitment>();
+ size_t commitments_size =
+ PrecomputedCommitments::size() * Transcript::template calc_num_data_types<Commitment>();
189
size_t metadata_size = 0;
190
if constexpr (SerializeMetadata == VKSerializationMode::FULL) {
191
// 3 metadata fields + commitments
0 commit comments