barretenberg
Loading...
Searching...
No Matches
complete_partial_commitment.hpp
1#pragma once
2
3#include "../../constants.hpp"
4#include "barretenberg/join_split_example/types.hpp"
5#include "barretenberg/stdlib/hash/pedersen/pedersen.hpp"
6namespace join_split_example::proofs::notes::circuit::value {
7
8inline auto complete_partial_commitment(field_ct const& value_note_partial_commitment,
9 suint_ct const& value,
10 suint_ct const& asset_id,
11 field_ct const& input_nullifier)
12{
13 return pedersen_hash::hash({ value_note_partial_commitment, value.value, asset_id.value, input_nullifier },
14 GeneratorIndex::VALUE_NOTE_COMMITMENT);
15}
16
17} // namespace join_split_example::proofs::notes::circuit::value
Definition: field.hpp:10