barretenberg
Loading...
Searching...
No Matches
create_partial_commitment.hpp
1#pragma once
2#include "../../constants.hpp"
3#include "barretenberg/join_split_example/types.hpp"
4#include "barretenberg/stdlib/hash/pedersen/pedersen.hpp"
5
6namespace join_split_example {
7namespace proofs {
8namespace notes {
9namespace circuit {
10namespace claim {
11
12inline auto create_partial_commitment(field_ct const& deposit_value,
13 field_ct const& bridge_call_data,
14 field_ct const& value_note_partial_commitment,
15 field_ct const& input_nullifier)
16{
17 return pedersen_hash::hash({ deposit_value, bridge_call_data, value_note_partial_commitment, input_nullifier },
18 GeneratorIndex::CLAIM_NOTE_PARTIAL_COMMITMENT);
19}
20
21} // namespace claim
22} // namespace circuit
23} // namespace notes
24} // namespace proofs
25} // namespace join_split_example
Definition: field.hpp:10