#include <origin_tag.hpp>
|
| static constexpr size_t | CONSTANT = static_cast<size_t>(-1) |
| |
| static constexpr size_t | FREE_WITNESS = static_cast<size_t>(-2) |
| |
Definition at line 67 of file origin_tag.hpp.
◆ OriginTag() [1/6]
| bb::OriginTag::OriginTag |
( |
| ) |
|
|
default |
◆ OriginTag() [2/6]
| bb::OriginTag::OriginTag |
( |
const OriginTag & |
other | ) |
|
|
default |
◆ OriginTag() [3/6]
| bb::OriginTag::OriginTag |
( |
OriginTag && |
other | ) |
|
|
default |
◆ OriginTag() [4/6]
| bb::OriginTag::OriginTag |
( |
size_t |
transcript_idx, |
|
|
size_t |
round_number, |
|
|
bool |
is_submitted = true |
|
) |
| |
|
inline |
Construct a new Origin Tag object.
- Parameters
-
| transcript_idx | The index of the transcript object |
| round_number | The round in which we generate/receive the value |
| is_submitted | If the value is submitted by the prover (not a challenge) |
Definition at line 108 of file origin_tag.hpp.
◆ OriginTag() [5/6]
Construct a new Origin Tag by merging two other Origin Tags.
The function checks for 3 things: 1) The no tag has instant death set, 2) That tags are from the same transcript (same transcript_index) or are empty, 3) A complex check for the round_provenance. After that the round_provenance values are merged and we create a new Origin Tag
- Parameters
-
Definition at line 42 of file origin_tag.cpp.
◆ OriginTag() [6/6]
template<class... T>
| bb::OriginTag::OriginTag |
( |
const OriginTag & |
tag, |
|
|
const T &... |
rest |
|
) |
| |
|
inline |
Construct a new Origin Tag from merging several origin tags.
Basically performs the same actions as the constructor from 2 Origin Tags, but iteratively
- Template Parameters
-
- Parameters
-
Definition at line 136 of file origin_tag.hpp.
◆ ~OriginTag()
| bb::OriginTag::~OriginTag |
( |
| ) |
|
|
default |
◆ clear_round_provenance()
| void bb::OriginTag::clear_round_provenance |
( |
| ) |
|
|
inline |
Clear the round_provenance to address round provenance false positives.
Definition at line 170 of file origin_tag.hpp.
◆ is_empty()
| bool bb::OriginTag::is_empty |
( |
| ) |
const |
|
inline |
◆ is_free_witness()
| bool bb::OriginTag::is_free_witness |
( |
| ) |
const |
|
inline |
◆ is_poisoned()
| bool bb::OriginTag::is_poisoned |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
| bool bb::OriginTag::operator== |
( |
const OriginTag & |
other | ) |
const |
◆ poison()
| void bb::OriginTag::poison |
( |
| ) |
|
|
inline |
◆ set_free_witness()
| void bb::OriginTag::set_free_witness |
( |
| ) |
|
|
inline |
◆ unpoison()
| void bb::OriginTag::unpoison |
( |
| ) |
|
|
inline |
◆ unset_free_witness()
| void bb::OriginTag::unset_free_witness |
( |
| ) |
|
|
inline |
◆ CONSTANT
| constexpr size_t bb::OriginTag::CONSTANT = static_cast<size_t>(-1) |
|
staticconstexpr |
◆ FREE_WITNESS
| constexpr size_t bb::OriginTag::FREE_WITNESS = static_cast<size_t>(-2) |
|
staticconstexpr |
◆ instant_death
| bool bb::OriginTag::instant_death = false |
◆ round_provenance
◆ transcript_index
| size_t bb::OriginTag::transcript_index = CONSTANT |
The documentation for this struct was generated from the following files: