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