|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Class to manage pairing point tagging. More...
#include <pairing_points_tagging.hpp>
Public Member Functions | |
| PairingPointsTagging ()=default | |
| PairingPointsTagging (const PairingPointsTagging &other)=default | |
| PairingPointsTagging (PairingPointsTagging &&other) noexcept=default | |
| PairingPointsTagging & | operator= (const PairingPointsTagging &other)=default |
| PairingPointsTagging & | operator= (PairingPointsTagging &&other) noexcept=default |
| ~PairingPointsTagging ()=default | |
| bool | operator== (const PairingPointsTagging &other) const =default |
| uint32_t | create_pairing_point_tag () |
| Create a new unique pairing point tag. | |
| void | merge_pairing_point_tags (uint32_t tag1_index, uint32_t tag2_index) |
| Merge two pairing point tags. | |
| bool | has_single_pairing_point_tag () const |
| Check if all pairing point tags belong to a single equivalence class. | |
| uint32_t | num_unique_pairing_points () const |
| Return the number of unique pairing point tags. | |
| bool | has_pairing_points () const |
| Check if any pairing points have been created. | |
| bool | has_public_pairing_points () const |
| Check if pairings points have been set to public. | |
| uint32_t | get_tag (uint32_t tag_index) const |
| Get the tag for a specific pairing point index. | |
| void | set_public_pairing_points () |
| Record that pairing points have been set to public. | |
Private Attributes | |
| std::vector< uint32_t > | pairing_points_tags_ |
| uint32_t | next_pairing_point_tag_ = 0 |
| bool | has_pairing_points_ = false |
| bool | has_public_pairing_points_ = false |
Class to manage pairing point tagging.
This class tracks pairing points and their tags, providing functionality to create new tags, merge tags, and query tag properties. Tags are used to ensure that all the pairing points created in a circuit are aggregated together and set to public (after aggregation).
Definition at line 21 of file pairing_points_tagging.hpp.
|
default |
|
default |
|
defaultnoexcept |
|
default |
|
inline |
Create a new unique pairing point tag.
Definition at line 42 of file pairing_points_tagging.hpp.
|
inline |
Get the tag for a specific pairing point index.
Definition at line 121 of file pairing_points_tagging.hpp.
|
inline |
Check if any pairing points have been created.
Definition at line 110 of file pairing_points_tagging.hpp.
|
inline |
Check if pairings points have been set to public.
Definition at line 116 of file pairing_points_tagging.hpp.
|
inline |
Check if all pairing point tags belong to a single equivalence class.
Definition at line 78 of file pairing_points_tagging.hpp.
|
inline |
Merge two pairing point tags.
| tag1 | First tag |
| tag2 | Second tag |
If the tags are different, all instances of tag2 are replaced with tag1. We also check that the pairing points have not been set to public yet.
Definition at line 58 of file pairing_points_tagging.hpp.
|
inline |
Return the number of unique pairing point tags.
Definition at line 92 of file pairing_points_tagging.hpp.
|
default |
|
defaultnoexcept |
|
default |
|
inline |
Record that pairing points have been set to public.
Definition at line 126 of file pairing_points_tagging.hpp.
|
private |
Definition at line 25 of file pairing_points_tagging.hpp.
|
private |
Definition at line 26 of file pairing_points_tagging.hpp.
|
private |
Definition at line 24 of file pairing_points_tagging.hpp.
|
private |
Definition at line 23 of file pairing_points_tagging.hpp.