Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
aztec_types.hpp File Reference
#include <cstdint>
#include <stdexcept>
#include <vector>
#include "barretenberg/vm2/common/aztec_constants.hpp"
#include "barretenberg/vm2/common/field.hpp"

Go to the source code of this file.

Classes

struct  bb::avm2::PublicKeys
 
struct  bb::avm2::ContractInstance
 
struct  bb::avm2::ContractClass
 
struct  bb::avm2::L2ToL1Message
 
struct  bb::avm2::ScopedL2ToL1Message
 
struct  bb::avm2::PublicLog
 
struct  bb::avm2::PublicLogs
 
struct  bb::avm2::PublicDataWrite
 
struct  bb::avm2::GasFees
 
struct  bb::avm2::Gas
 
struct  bb::avm2::GasSettings
 
struct  bb::avm2::PublicCallRequest
 
struct  bb::avm2::PublicCallRequestArrayLengths
 
struct  bb::avm2::AvmAccumulatedDataArrayLengths
 
struct  bb::avm2::PrivateToAvmAccumulatedDataArrayLengths
 
struct  bb::avm2::PrivateToAvmAccumulatedData
 
struct  bb::avm2::AvmAccumulatedData
 
struct  bb::avm2::GlobalVariables
 
struct  bb::avm2::AppendOnlyTreeSnapshot
 
struct  bb::avm2::TreeSnapshots
 
struct  bb::avm2::TreeState
 
struct  bb::avm2::TreeStates
 
struct  bb::avm2::SideEffectStates
 
struct  bb::avm2::DebugLog
 
struct  bb::avm2::ProtocolContracts
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::avm2
 

Typedefs

using bb::avm2::AztecAddress = FF
 
using bb::avm2::BytecodeId = FF
 
using bb::avm2::ContractClassId = FF
 
using bb::avm2::PC = uint32_t
 
using bb::avm2::AffinePoint = grumpkin::g1::affine_element
 
using bb::avm2::EthAddress = FF
 
using bb::avm2::InternalCallId = uint32_t
 

Enumerations

enum  bb::avm2::TransactionPhase {
  bb::avm2::NR_NULLIFIER_INSERTION = 1 , bb::avm2::NR_NOTE_INSERTION = 2 , bb::avm2::NR_L2_TO_L1_MESSAGE = 3 , bb::avm2::SETUP = 4 ,
  bb::avm2::R_NULLIFIER_INSERTION = 5 , bb::avm2::R_NOTE_INSERTION = 6 , bb::avm2::R_L2_TO_L1_MESSAGE = 7 , bb::avm2::APP_LOGIC = 8 ,
  bb::avm2::TEARDOWN = 9 , bb::avm2::COLLECT_GAS_FEES = 10 , bb::avm2::TREE_PADDING = 11 , bb::avm2::CLEANUP = 12 ,
  bb::avm2::LAST = CLEANUP
}
 
enum class  bb::avm2::EnvironmentVariable {
  bb::avm2::ADDRESS , bb::avm2::SENDER , bb::avm2::TRANSACTIONFEE , bb::avm2::CHAINID ,
  bb::avm2::VERSION , bb::avm2::BLOCKNUMBER , bb::avm2::TIMESTAMP , bb::avm2::BASEFEEPERL2GAS ,
  bb::avm2::BASEFEEPERDAGAS , bb::avm2::ISSTATICCALL , bb::avm2::L2GASLEFT , bb::avm2::DAGASLEFT ,
  bb::avm2::MAX = DAGASLEFT
}
 
enum class  bb::avm2::ContractInstanceMember { bb::avm2::DEPLOYER = 0 , bb::avm2::CLASS_ID = 1 , bb::avm2::INIT_HASH = 2 , bb::avm2::MAX = INIT_HASH }
 
enum class  bb::avm2::DebugLogLevel {
  bb::avm2::SILENT = 0 , bb::avm2::FATAL = 1 , bb::avm2::ERROR = 2 , bb::avm2::WARN = 3 ,
  bb::avm2::INFO = 4 , bb::avm2::VERBOSE = 5 , bb::avm2::DEBUG = 6 , bb::avm2::TRACE = 7 ,
  bb::avm2::LAST = TRACE
}
 

Functions

bool bb::avm2::is_valid_debug_log_level (uint8_t v)
 
std::string bb::avm2::debug_log_level_to_string (DebugLogLevel lvl)
 
bool bb::avm2::is_protocol_contract_address (const AztecAddress &address)
 
std::optional< AztecAddressbb::avm2::get_derived_address (const ProtocolContracts &protocol_contracts, const AztecAddress &canonical_address)