barretenberg
Loading...
Searching...
No Matches
account_note.hpp
1#pragma once
2#include "barretenberg/join_split_example/types.hpp"
3#include "commit.hpp"
4
5namespace join_split_example {
6namespace proofs {
7namespace notes {
8namespace circuit {
9namespace account {
10
12 field_ct account_alias_hash;
13 group_ct account_public_key;
14 group_ct signing_pub_key;
15 field_ct commitment;
16
17 account_note(field_ct const& account_alias_hash,
18 group_ct const& account_public_key,
19 group_ct const& signing_pub_key)
20 : account_alias_hash(account_alias_hash)
21 , account_public_key(account_public_key)
22 , signing_pub_key(signing_pub_key)
23 , commitment(account::commit(account_alias_hash, account_public_key, signing_pub_key))
24 {}
25
26 operator byte_array_ct() const { return byte_array_ct(commitment); }
27};
28
29} // namespace account
30} // namespace circuit
31} // namespace notes
32} // namespace proofs
33} // namespace join_split_example
Definition: byte_array.hpp:9
Definition: field.hpp:10