Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
sha256_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
barretenberg/vm2/common/memory_types.hpp
"
6
7
namespace
bb::avm2::simulation
{
8
9
struct
Sha256CompressionException
:
public
std::runtime_error {
10
Sha256CompressionException
(
const
std::string& message)
11
:
std
::runtime_error(
"Sha256CompressionException: "
+ message)
12
{}
13
};
14
15
struct
Sha256CompressionEvent
{
16
uint32_t
execution_clk
;
17
uint32_t
space_id
;
18
MemoryAddress
state_addr
;
19
MemoryAddress
input_addr
;
20
MemoryAddress
output_addr
;
21
std::array<MemoryValue, 8>
state
;
22
std::vector<MemoryValue>
input
;
23
std::array<MemoryValue, 8>
output
;
24
};
25
26
}
// namespace bb::avm2::simulation
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
std
STL namespace.
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
bb::avm2::simulation::Sha256CompressionEvent
Definition
sha256_event.hpp:15
bb::avm2::simulation::Sha256CompressionEvent::space_id
uint32_t space_id
Definition
sha256_event.hpp:17
bb::avm2::simulation::Sha256CompressionEvent::input_addr
MemoryAddress input_addr
Definition
sha256_event.hpp:19
bb::avm2::simulation::Sha256CompressionEvent::state
std::array< MemoryValue, 8 > state
Definition
sha256_event.hpp:21
bb::avm2::simulation::Sha256CompressionEvent::output_addr
MemoryAddress output_addr
Definition
sha256_event.hpp:20
bb::avm2::simulation::Sha256CompressionEvent::execution_clk
uint32_t execution_clk
Definition
sha256_event.hpp:16
bb::avm2::simulation::Sha256CompressionEvent::input
std::vector< MemoryValue > input
Definition
sha256_event.hpp:22
bb::avm2::simulation::Sha256CompressionEvent::output
std::array< MemoryValue, 8 > output
Definition
sha256_event.hpp:23
bb::avm2::simulation::Sha256CompressionEvent::state_addr
MemoryAddress state_addr
Definition
sha256_event.hpp:18
bb::avm2::simulation::Sha256CompressionException
Definition
sha256_event.hpp:9
bb::avm2::simulation::Sha256CompressionException::Sha256CompressionException
Sha256CompressionException(const std::string &message)
Definition
sha256_event.hpp:10
src
barretenberg
vm2
simulation
events
sha256_event.hpp
Generated by
1.9.8