Skip to content

Commit 28211f5

Browse files
committed
fixes after the review
1 parent 617671b commit 28211f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

barretenberg/cpp/src/barretenberg/stdlib/encryption/schnorr/schnorr.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ TEST(stdlib_schnorr, schnorr_signature_verification_result)
123123
stdlib::schnorr_signature_bits sig = stdlib::schnorr_convert_signature(&builder, signature);
124124
byte_array_ct message(&builder, longer_string);
125125
bool_ct signature_result = schnorr_signature_verification_result(message, pub_key, sig);
126-
EXPECT_EQ(signature_result.get_normalized_witness_index(), true);
126+
EXPECT_EQ(signature_result.get_value(), true);
127127

128128
info("num gates = ", builder.get_estimated_num_finalized_gates());
129129

barretenberg/cpp/src/barretenberg/stdlib/primitives/bool/bool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ bool_t<Builder> bool_t<Builder>::from_witness_index_unsafe(Builder* ctx, const u
8989
ASSERT(witness_index != IS_CONSTANT);
9090
bool_t<Builder> result(ctx);
9191
result.witness_index = witness_index;
92-
bb::fr value = ctx->get_variable(witness_index);
92+
const bb::fr value = ctx->get_variable(witness_index);
9393
// It does not create a constraint.
9494
BB_ASSERT_EQ(value * value - value, 0, "bool_t: creating a witness bool from a non-boolean value");
95-
result.witness_bool = (ctx->get_variable(witness_index) == 1);
95+
result.witness_bool = (value == 1);
9696
result.witness_inverted = false;
9797
return result;
9898
}

0 commit comments

Comments
 (0)