barretenberg
Loading...
Searching...
No Matches
src
barretenberg
join_split_example
proofs
notes
circuit
account
account_note.hpp
1
#pragma once
2
#include "barretenberg/join_split_example/types.hpp"
3
#include "commit.hpp"
4
5
namespace
join_split_example {
6
namespace
proofs {
7
namespace
notes {
8
namespace
circuit {
9
namespace
account {
10
11
struct
account_note
{
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
proof_system::plonk::stdlib::byte_array
Definition:
byte_array.hpp:9
proof_system::plonk::stdlib::cycle_group< Builder >
proof_system::plonk::stdlib::field_t
Definition:
field.hpp:10
join_split_example::proofs::notes::circuit::account::account_note
Definition:
account_note.hpp:11
Generated by
1.9.6