Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion depends/libff
Submodule libff updated 168 files
1 change: 1 addition & 0 deletions libiop/bcs/hashing/blake2b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ binary_hash_digest blake2b_two_to_one_hash(const binary_hash_digest &first,
const binary_hash_digest &second,
const std::size_t digest_len_bytes)
{
printf("%s, %s\n", first.c_str(), second.c_str());
const binary_hash_digest first_plus_second = first + second;

binary_hash_digest result(digest_len_bytes, 'X');
Expand Down
6 changes: 5 additions & 1 deletion libiop/tests/bcs/test_bcs_transformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ bcs_transformation_parameters<FieldT, MT_root_hash> get_bcs_parameters(bool alge
if (algebraic_hashchain) {
bcs_parameters.hashchain_ =
std::make_shared<dummy_algebraic_hashchain<FieldT, MT_root_hash>>();
bcs_parameters.hash_enum = bcs_hash_type::high_alpha_poseidon_type;
} else {
bcs_parameters.hashchain_ =
std::make_shared<blake2b_hashchain<FieldT, MT_root_hash>>(security_parameter);
bcs_parameters.hash_enum = bcs_hash_type::blake2b_type;
}
set_bcs_parameters_leafhash<FieldT, MT_root_hash>(bcs_parameters);
set_bcs_parameters_leafhash<FieldT, MT_root_hash>(bcs_parameters); // Work per hash. Todo generalize this w/ proper explanations of work amounts
const size_t work_per_hash = (bcs_parameters.hash_enum == 1) ? 1 : 128;
bcs_parameters.pow_params_ = pow_parameters(4, work_per_hash);

return bcs_parameters;
}
Expand Down