barretenberg
Loading...
Searching...
No Matches
src
barretenberg
join_split_example
proofs
notes
circuit
claim
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
6
namespace
join_split_example {
7
namespace
proofs {
8
namespace
notes {
9
namespace
circuit {
10
namespace
claim {
11
12
inline
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
proof_system::plonk::stdlib::field_t
Definition:
field.hpp:10
Generated by
1.9.6