3#include "../../constants.hpp"
4#include "../../native/claim/claim_note.hpp"
5#include "../../native/claim/claim_note_tx_data.hpp"
6#include "../bridge_call_data.hpp"
7#include "barretenberg/join_split_example/types.hpp"
9namespace join_split_example::proofs::notes::circuit::claim {
11using namespace proof_system::plonk::stdlib;
22 field_ct value_note_partial_commitment;
28 suint_ct(
witness_ct(&composer, note_data.deposit_value), DEFI_DEPOSIT_VALUE_BIT_LENGTH,
"deposit_value");
29 bridge_call_data_local =
bridge_call_data(&composer, note_data.bridge_call_data);
30 defi_interaction_nonce =
suint_ct(
witness_ct(&composer, note_data.defi_interaction_nonce),
31 DEFI_INTERACTION_NONCE_BIT_LENGTH,
32 "defi_interaction_nonce");
34 value_note_partial_commitment =
witness_ct(&composer, note_data.value_note_partial_commitment);
35 input_nullifier =
witness_ct(&composer, note_data.input_nullifier);
53 suint_ct(
witness_ct(&composer, note_data.deposit_value), DEFI_DEPOSIT_VALUE_BIT_LENGTH,
"deposit_value");
54 bridge_call_data_local =
bridge_call_data(&composer, note_data.bridge_call_data);
55 note_secret =
witness_ct(&composer, note_data.note_secret);
56 input_nullifier =
witness_ct(&composer, note_data.input_nullifier);
62 return os <<
"{ deposit_value: " << tx.deposit_value
63 <<
", bridge_call_data: " << tx.bridge_call_data_local.to_safe_uint() <<
" }";
Definition: ultra_circuit_builder.hpp:31
Definition: safe_uint.hpp:17
Definition: witness.hpp:10
Definition: bridge_call_data.hpp:21
Definition: witness_data.hpp:17
Definition: witness_data.hpp:43
Definition: claim_note.hpp:11
Definition: claim_note_tx_data.hpp:13