r->generate_r1cs_constraints();
}
- void generate_r1cs_witness(const Note& note) {
+ void generate_r1cs_witness(const SproutNote& note) {
r->bits.fill_with_bits(this->pb, uint256_to_bool_vector(note.r));
- value.fill_with_bits(this->pb, uint64_to_bool_vector(note.value));
+ value.fill_with_bits(this->pb, uint64_to_bool_vector(note.value()));
}
};
void generate_r1cs_witness(
const MerklePath& path,
const SpendingKey& key,
- const Note& note
+ const SproutNote& note
) {
note_gadget<FieldT>::generate_r1cs_witness(note);
);
// Set enforce flag for nonzero input value
- this->pb.val(value_enforce) = (note.value != 0) ? FieldT::one() : FieldT::zero();
+ this->pb.val(value_enforce) = (note.value() != 0) ? FieldT::one() : FieldT::zero();
// Witness merkle tree authentication path
witness_input->generate_r1cs_witness(path);
commit_to_outputs->generate_r1cs_constraints();
}
- void generate_r1cs_witness(const Note& note) {
+ void generate_r1cs_witness(const SproutNote& note) {
note_gadget<FieldT>::generate_r1cs_witness(note);
prevent_faerie_gold->generate_r1cs_witness();