barretenberg
Loading...
Searching...
No Matches
src
barretenberg
join_split_example
proofs
notes
circuit
account
commit.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
account {
11
12
inline
auto
commit(
field_ct
const
& account_alias_hash,
13
group_ct
const
& account_public_key,
14
group_ct
const
& signing_pub_key)
15
{
16
return
pedersen_hash::hash(
17
{
18
account_alias_hash,
19
account_public_key.x,
20
signing_pub_key.x,
21
},
22
GeneratorIndex::ACCOUNT_NOTE_COMMITMENT);
23
}
24
25
}
// namespace account
26
}
// namespace circuit
27
}
// namespace notes
28
}
// namespace proofs
29
}
// namespace join_split_example
proof_system::plonk::stdlib::field_t
Definition:
field.hpp:10
Generated by
1.9.6