2#include "barretenberg/ecc/curves/bn254/fr.hpp"
3#include "barretenberg/ecc/curves/grumpkin/grumpkin.hpp"
4#include "barretenberg/numeric/uint128/uint128.hpp"
5#include "barretenberg/numeric/uint256/uint256.hpp"
8namespace join_split_example {
11namespace InnerProofFields {
33namespace InnerProofOffsets {
35 PROOF_ID = InnerProofFields::PROOF_ID * 32,
36 NOTE_COMMITMENT1 = InnerProofFields::NOTE_COMMITMENT1 * 32,
37 NOTE_COMMITMENT2 = InnerProofFields::NOTE_COMMITMENT2 * 32,
38 NULLIFIER1 = InnerProofFields::NULLIFIER1 * 32,
39 NULLIFIER2 = InnerProofFields::NULLIFIER2 * 32,
40 PUBLIC_VALUE = InnerProofFields::PUBLIC_VALUE * 32,
41 PUBLIC_OWNER = InnerProofFields::PUBLIC_OWNER * 32,
42 PUBLIC_ASSET_ID = InnerProofFields::PUBLIC_ASSET_ID * 32,
43 MERKLE_ROOT = InnerProofFields::MERKLE_ROOT * 32,
44 TX_FEE = InnerProofFields::TX_FEE * 32,
45 TX_FEE_ASSET_ID = InnerProofFields::TX_FEE_ASSET_ID * 32,
46 BRIDGE_CALL_DATA = InnerProofFields::BRIDGE_CALL_DATA * 32,
47 DEFI_DEPOSIT_VALUE = InnerProofFields::DEFI_DEPOSIT_VALUE * 32,
48 DEFI_ROOT = InnerProofFields::DEFI_ROOT * 32,
49 BACKWARD_LINK = InnerProofFields::BACKWARD_LINK * 32,
50 ALLOW_CHAIN = InnerProofFields::ALLOW_CHAIN * 32,
77inline std::ostream& operator<<(std::ostream& os,
inner_proof_data const& data)
81 <<
" proof_id: " << data.proof_id <<
"\n"
82 <<
" note_commitment1: " << data.note_commitment1 <<
"\n"
83 <<
" note_commitment2: " << data.note_commitment2 <<
"\n"
84 <<
" nullifier1: " << data.nullifier1 <<
"\n"
85 <<
" nullifier2: " << data.nullifier2 <<
"\n"
86 <<
" public_value: " << data.public_value <<
"\n"
87 <<
" public_owner: " << data.public_owner <<
"\n"
88 <<
" asset_id: " << data.asset_id <<
"\n"
89 <<
" merkle_root: " << data.merkle_root <<
"\n"
90 <<
" tx_fee: " << data.tx_fee <<
"\n"
91 <<
" tx_fee_asset_id: " << data.tx_fee_asset_id <<
"\n"
92 <<
" bridge_call_data: " << data.bridge_call_data <<
"\n"
93 <<
" defi_deposit_value: " << data.defi_deposit_value <<
"\n"
94 <<
" defi_root: " << data.defi_root <<
"\n"
95 <<
" backward_link: " << data.backward_link <<
"\n"
96 <<
" allow_chain: " << data.allow_chain <<
"\n"
Definition: uint256.hpp:25
Definition: inner_proof_data.hpp:54