check_update.hpp
Go to the documentation of this file.
29 // - P is a valid authentication path for the value V1 as the A-th leaf in a Merkle tree with root R1, and
30 // - P is a valid authentication path for the value V2 as the A-th leaf in a Merkle tree with root R2.
Definition: packing.hpp:187
Definition: hash_io.hpp:84
Definition: blueprint_linear_combination.hpp:47
Definition: blueprint_variable.hpp:57
Definition: blueprint.hpp:46
Definition: component.hpp:37
Definition: digest_selector_component.hpp:39
Definition: hash_io.hpp:43
Definition: check_update.hpp:49
digest_variable< FieldType > prev_root_digest
Definition: check_update.hpp:70
static std::size_t expected_constraints(const std::size_t tree_depth)
Definition: check_update.hpp:211
digest_variable< FieldType > next_leaf_digest
Definition: check_update.hpp:72
static std::size_t root_size_in_bits()
Definition: check_update.hpp:207
blueprint_linear_combination< FieldType > update_successful
Definition: check_update.hpp:75
void generate_r1cs_constraints()
Definition: check_update.hpp:138
digest_variable< FieldType > next_root_digest
Definition: check_update.hpp:73
const std::size_t tree_depth
Definition: check_update.hpp:66
void generate_r1cs_witness()
Definition: check_update.hpp:184
merkle_tree_check_update_components(blueprint< FieldType > &bp, const std::size_t tree_depth, const blueprint_variable_vector< FieldType > &address_bits, const digest_variable< FieldType > &prev_leaf_digest, const digest_variable< FieldType > &prev_root_digest, const merkle_authentication_path_variable< FieldType, Hash > &prev_path, const digest_variable< FieldType > &next_leaf_digest, const digest_variable< FieldType > &next_root_digest, const merkle_authentication_path_variable< FieldType, Hash > &next_path, const blueprint_linear_combination< FieldType > &update_successful)
Definition: check_update.hpp:81
digest_variable< FieldType > prev_leaf_digest
Definition: check_update.hpp:69
const std::size_t digest_size
Definition: check_update.hpp:65
blueprint_variable_vector< FieldType > address_bits
Definition: check_update.hpp:68
merkle_authentication_path_variable< FieldType, Hash > prev_path
Definition: check_update.hpp:71
merkle_authentication_path_variable< FieldType, Hash > next_path
Definition: check_update.hpp:74
Definition: pair.hpp:31
Definition: authentication_path.hpp:42
Definition: r1cs.hpp:60