Skip to content

Commit

Permalink
fcmp++ TreeSync: fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
j-berman committed Oct 14, 2024
1 parent 997f269 commit b206d43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/fcmp_pp/curve_trees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,9 @@ std::size_t CurveTrees<C1, C2>::n_layers(const uint64_t n_leaf_tuples) const

return n_layers;
}

// Explicit instantiation
template std::size_t CurveTrees<Helios, Selene>::n_layers(const uint64_t n_leaf_tuples) const;
//----------------------------------------------------------------------------------------------------------------------
template<typename C1, typename C2>
typename CurveTrees<C1, C2>::PathIndexes CurveTrees<C1, C2>::get_path_indexes(const uint64_t n_leaf_tuples,
Expand Down Expand Up @@ -1146,6 +1149,11 @@ typename CurveTrees<C1, C2>::PathIndexes CurveTrees<C1, C2>::get_path_indexes(co

return path_indexes_out;
}

// Explicit instantiation
template CurveTrees<Helios, Selene>::PathIndexes CurveTrees<Helios, Selene>::get_path_indexes(
const uint64_t n_leaf_tuples,
const uint64_t leaf_tuple_idx) const;
//----------------------------------------------------------------------------------------------------------------------
template<>
bool CurveTrees<Helios, Selene>::audit_path(const CurveTrees<Helios, Selene>::Path &path,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ TEST(Serialization, tx_fcmp_pp)

const std::size_t proof_len = fcmp_pp::proof_len(n_inputs, curve_trees_tree_depth);

const auto make_dummy_fcmp_pp_tx = [curve_trees_tree_depth, proof_len]() -> transaction
const auto make_dummy_fcmp_pp_tx = [proof_len]() -> transaction
{
transaction tx;

Expand Down

0 comments on commit b206d43

Please sign in to comment.