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::proofs::notes::circuit::value {
7
8inline auto create_partial_commitment(field_ct const& secret,
9 group_ct const& owner,
10 bool_ct const& account_required,
11 field_ct const& creator_pubkey)
12{
13 return pedersen_hash::hash({ secret, owner.x, owner.y, account_required, creator_pubkey },
14 GeneratorIndex::VALUE_NOTE_PARTIAL_COMMITMENT);
15}
16
17} // namespace join_split_example::proofs::notes::circuit::value
Definition: field.hpp:10