barretenberg
Loading...
Searching...
No Matches
compute_account_alias_hash_nullifier.hpp
1#pragma once
2#include "../../constants.hpp"
3#include "account_note.hpp"
4#include "barretenberg/crypto/pedersen_hash/pedersen.hpp"
5
6namespace join_split_example::proofs::notes::native::account {
7
8using fr = barretenberg::fr;
9
10inline fr compute_account_alias_hash_nullifier(fr const& alias_hash)
11{
13 std::vector<fr>{ alias_hash },
14 crypto::GeneratorContext<curve::Grumpkin>(notes::GeneratorIndex::ACCOUNT_ALIAS_HASH_NULLIFIER));
15}
16
17} // namespace join_split_example::proofs::notes::native::account
static Fq hash(const std::vector< Fq > &inputs, GeneratorContext context={})
Given a vector of fields, generate a pedersen hash using generators from context.
Definition: pedersen.cpp:59
Definition: generator_data.hpp:133