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/common/streams.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/serialize/msgpack_impl/uint_128_t_adaptor.hpp"
#include "barretenberg/vm2/common/aztec_constants.hpp"
#include "barretenberg/vm2/common/field.hpp"
#include "msgpack/adaptor/define_decl.hpp"

Go to the source code of this file.

Classes

struct  bb::avm2::PublicKeys
 
struct  bb::avm2::ContractInstance
 
struct  bb::avm2::ContractClassWithCommitment
 
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::GasUsed
 
struct  bb::avm2::GasSettings
 
struct  bb::avm2::PublicCallRequest
 
struct  bb::avm2::PublicCallRequestArrayLengths
 
struct  bb::avm2::AvmAccumulatedDataArrayLengths
 
struct  bb::avm2::ContractClassLogFields
 
struct  bb::avm2::ContractClassLog
 
struct  bb::avm2::PrivateLog
 
struct  bb::avm2::ContractDeploymentData
 
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::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::FunctionSelector = FF
 
using bb::avm2::InternalCallId = uint32_t
 

Enumerations

enum class  bb::avm2::TransactionPhase : uint8_t {
  bb::avm2::NR_NULLIFIER_INSERTION = 0 , bb::avm2::NR_NOTE_INSERTION = 1 , bb::avm2::NR_L2_TO_L1_MESSAGE = 2 , bb::avm2::SETUP = 3 ,
  bb::avm2::R_NULLIFIER_INSERTION = 4 , bb::avm2::R_NOTE_INSERTION = 5 , bb::avm2::R_L2_TO_L1_MESSAGE = 6 , bb::avm2::APP_LOGIC = 7 ,
  bb::avm2::TEARDOWN = 8 , bb::avm2::COLLECT_GAS_FEES = 9 , bb::avm2::TREE_PADDING = 10 , bb::avm2::CLEANUP = 11 ,
  bb::avm2::LAST = CLEANUP
}
 
enum class  bb::avm2::EnvironmentVariable : uint8_t {
  bb::avm2::ADDRESS = 0 , bb::avm2::SENDER = 1 , bb::avm2::TRANSACTIONFEE = 2 , bb::avm2::CHAINID = 3 ,
  bb::avm2::VERSION = 4 , bb::avm2::BLOCKNUMBER = 5 , bb::avm2::TIMESTAMP = 6 , bb::avm2::BASEFEEPERL2GAS = 7 ,
  bb::avm2::BASEFEEPERDAGAS = 8 , bb::avm2::ISSTATICCALL = 9 , bb::avm2::L2GASLEFT = 10 , bb::avm2::DAGASLEFT = 11 ,
  bb::avm2::MAX = DAGASLEFT
}
 
enum class  bb::avm2::ContractInstanceMember : uint8_t { bb::avm2::DEPLOYER = 0 , bb::avm2::CLASS_ID = 1 , bb::avm2::INIT_HASH = 2 , bb::avm2::MAX = INIT_HASH }
 
enum class  bb::avm2::RevertCode : uint8_t { bb::avm2::OK , bb::avm2::APP_LOGIC_REVERTED , bb::avm2::TEARDOWN_REVERTED , bb::avm2::BOTH_REVERTED }
 
enum class  bb::avm2::DebugLogLevel : uint8_t {
  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)