Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
world_state_message.hpp
Go to the documentation of this file.
1#pragma once
11#include <cstdint>
12#include <optional>
13#include <string>
14
15namespace bb::nodejs {
16
17using namespace bb::messaging;
18using namespace bb::world_state;
19
64
69
75
80
85
90
96
101
107
109 bool ok{ true };
111};
112
118
126
131
136
141
148
155
162
169
174
182
187
194
199
206
212
217
224
232
239
246
263
269
270} // namespace bb::nodejs
271
272MSGPACK_ADD_ENUM(bb::nodejs::WorldStateMessageType)
uint32_t block_number_t
Definition types.hpp:19
const uint32_t FIRST_APP_MSG_TYPE
Definition header.hpp:10
const uint64_t CANONICAL_FORK_ID
Definition types.hpp:27
std::unordered_map< MerkleTreeId, TreeStateReference > StateReference
Definition types.hpp:33
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
SERIALIZATION_FIELDS(treeId, leaves, forkId)
SERIALIZATION_FIELDS(treeId, leaves, subtreeDepth, forkId)
SERIALIZATION_FIELDS(toBlockNumber)
SERIALIZATION_FIELDS(dstPath, compact)
SERIALIZATION_FIELDS(latest, blockNumber)
SERIALIZATION_FIELDS(treeId, revision, leaves, startIndex)
std::vector< std::optional< index_t > > indices
SERIALIZATION_FIELDS(treeId, revision, leaves)
std::vector< std::optional< SiblingPathAndIndex > > paths
SERIALIZATION_FIELDS(treeId, revision, key)
SERIALIZATION_FIELDS(alreadyPresent, index)
SERIALIZATION_FIELDS(treeId, revision, leafIndices)
std::vector< std::optional< block_number_t > > blockNumbers
SERIALIZATION_FIELDS(treeId, revision, leafIndex)
SERIALIZATION_FIELDS(treeId, revision, leafIndex)
SERIALIZATION_FIELDS(treeId, revision, leafIndex)
SERIALIZATION_FIELDS(treeId, revision)
SERIALIZATION_FIELDS(treeId, root, size, depth)
SERIALIZATION_FIELDS(treeId, leaves, forkId)
std::vector< crypto::merkle_tree::NullifierLeafValue > paddedNullifiers
std::vector< bb::fr > paddedL1ToL2Messages
std::vector< bb::fr > paddedNoteHashes
std::vector< crypto::merkle_tree::PublicDataLeafValue > publicDataWrites
SERIALIZATION_FIELDS(blockNumber, blockStateRef, blockHeaderHash, paddedNoteHashes, paddedL1ToL2Messages, paddedNullifiers, publicDataWrites)
SERIALIZATION_FIELDS(blockStateRef, blockHeaderHash, forkId)