Skip to content

Commit

Permalink
add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maramihali committed Nov 29, 2023
1 parent a13ee93 commit 5634ed1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 26 deletions.
24 changes: 14 additions & 10 deletions barretenberg/cpp/src/barretenberg/flavor/goblin_ultra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,16 @@ class GoblinUltra {
DataType w_r; // column 1
DataType w_o; // column 2
DataType w_4; // column 3
DataType sorted_accum; // column 8
DataType z_perm; // column 9
DataType z_lookup; // column 10
DataType ecc_op_wire_1; // column 11
DataType ecc_op_wire_2; // column 12
DataType ecc_op_wire_3; // column 13
DataType ecc_op_wire_4; // column 14
DataType calldata; // column 15
DataType calldata_read_counts; // column 16
DataType lookup_inverses; // column 17
DataType sorted_accum; // column 4
DataType z_perm; // column 5
DataType z_lookup; // column 6
DataType ecc_op_wire_1; // column 7
DataType ecc_op_wire_2; // column 8
DataType ecc_op_wire_3; // column 9
DataType ecc_op_wire_4; // column 10
DataType calldata; // column 11
DataType calldata_read_counts; // column 12
DataType lookup_inverses; // column 13

DEFINE_POINTER_VIEW(NUM_WITNESS_ENTITIES,
&w_l,
Expand Down Expand Up @@ -472,6 +472,10 @@ class GoblinUltra {
}
};

/**
* @brief A container for the witness commitments.
*
*/
using WitnessCommitments = WitnessEntities<Commitment, CommitmentHandle>;

/**
Expand Down
20 changes: 10 additions & 10 deletions barretenberg/cpp/src/barretenberg/flavor/goblin_ultra_recursive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,16 @@ template <typename BuilderType> class GoblinUltraRecursive_ {
DataType w_r; // column 1
DataType w_o; // column 2
DataType w_4; // column 3
DataType sorted_accum; // column 8
DataType z_perm; // column 9
DataType z_lookup; // column 10
DataType ecc_op_wire_1; // column 11
DataType ecc_op_wire_2; // column 12
DataType ecc_op_wire_3; // column 13
DataType ecc_op_wire_4; // column 14
DataType calldata; // column 15
DataType calldata_read_counts; // column 16
DataType lookup_inverses; // column 17
DataType sorted_accum; // column 4
DataType z_perm; // column 5
DataType z_lookup; // column 6
DataType ecc_op_wire_1; // column 7
DataType ecc_op_wire_2; // column 8
DataType ecc_op_wire_3; // column 9
DataType ecc_op_wire_4; // column 10
DataType calldata; // column 11
DataType calldata_read_counts; // column 12
DataType lookup_inverses; // column 13

DEFINE_POINTER_VIEW(NUM_WITNESS_ENTITIES,
&w_l,
Expand Down
10 changes: 7 additions & 3 deletions barretenberg/cpp/src/barretenberg/flavor/ultra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class Ultra {
DataType w_r; // column 1
DataType w_o; // column 2
DataType w_4; // column 3
DataType sorted_accum; // column 8
DataType z_perm; // column 9
DataType z_lookup; // column 10
DataType sorted_accum; // column 4
DataType z_perm; // column 5
DataType z_lookup; // column 6

DEFINE_POINTER_VIEW(NUM_WITNESS_ENTITIES, &w_l, &w_r, &w_o, &w_4, &sorted_accum, &z_perm, &z_lookup)

Expand Down Expand Up @@ -375,6 +375,10 @@ class Ultra {
*/
using ExtendedEdges = ProverUnivariates<MAX_PARTIAL_RELATION_LENGTH>;

/**
* @brief A container for the witness commitments.
*
*/
using WitnessCommitments = WitnessEntities<Commitment, CommitmentHandle>;

/**
Expand Down
6 changes: 3 additions & 3 deletions barretenberg/cpp/src/barretenberg/flavor/ultra_recursive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ template <typename BuilderType> class UltraRecursive_ {
DataType w_r; // column 1
DataType w_o; // column 2
DataType w_4; // column 3
DataType sorted_accum; // column 8
DataType z_perm; // column 9
DataType z_lookup; // column 10
DataType sorted_accum; // column 4
DataType z_perm; // column 5
DataType z_lookup; // column 6

DEFINE_POINTER_VIEW(NUM_WITNESS_ENTITIES, &w_l, &w_r, &w_o, &w_4, &sorted_accum, &z_perm, &z_lookup, )

Expand Down

0 comments on commit 5634ed1

Please sign in to comment.