diff --git a/src/gadgetlib1/protoboard.tcc b/src/gadgetlib1/protoboard.tcc index 882af28e..6278e5a5 100644 --- a/src/gadgetlib1/protoboard.tcc +++ b/src/gadgetlib1/protoboard.tcc @@ -40,7 +40,7 @@ var_index_t protoboard::allocate_var_index(const std::string &annotation assert(annotation != ""); constraint_system.variable_annotations[next_free_var] = annotation; #else - UNUSED(annotation); + libff::UNUSED(annotation); #endif ++constraint_system.auxiliary_input_size; values.emplace_back(FieldT::zero()); @@ -103,7 +103,7 @@ void protoboard::add_r1cs_constraint(const r1cs_constraint &cons assert(annotation != ""); constraint_system.constraint_annotations[constraint_system.constraints.size()] = annotation; #else - UNUSED(annotation); + libff::UNUSED(annotation); #endif constraint_system.constraints.emplace_back(constr); } diff --git a/src/knowledge_commitment/knowledge_commitment.hpp b/src/knowledge_commitment/knowledge_commitment.hpp index 005c7023..83a287a2 100644 --- a/src/knowledge_commitment/knowledge_commitment.hpp +++ b/src/knowledge_commitment/knowledge_commitment.hpp @@ -60,8 +60,8 @@ struct knowledge_commitment { template knowledge_commitment operator*(const libff::bigint &lhs, const knowledge_commitment &rhs); -template &modulus_p> -knowledge_commitment operator*(const libff::Fp_model &lhs, const knowledge_commitment &rhs); +template +knowledge_commitment operator*(const T &lhs, const knowledge_commitment &rhs); template std::ostream& operator<<(std::ostream& out, const knowledge_commitment &kc); diff --git a/src/knowledge_commitment/knowledge_commitment.tcc b/src/knowledge_commitment/knowledge_commitment.tcc index ab170018..5130274e 100644 --- a/src/knowledge_commitment/knowledge_commitment.tcc +++ b/src/knowledge_commitment/knowledge_commitment.tcc @@ -69,8 +69,8 @@ knowledge_commitment operator*(const libff::bigint &lhs, const knowled lhs * rhs.h); } -template &modulus_p> -knowledge_commitment operator*(const libff::Fp_model &lhs, const knowledge_commitment &rhs) +template +knowledge_commitment operator*(const T &lhs, const knowledge_commitment &rhs) { return (lhs.as_bigint()) * rhs; }