ant_protocol/storage/address/
mod.rs1pub mod chunk;
2pub mod graph;
3pub mod pointer_address;
4pub mod scratchpad;
5
6pub use chunk::ChunkAddress;
7pub use graph::GraphEntryAddress;
8pub use pointer_address::PointerAddress;
9pub use scratchpad::ScratchpadAddress;
10
11#[derive(Debug, thiserror::Error)]
12pub enum AddressParseError {
13 #[error("Invalid hex string: {0}")]
14 Hex(#[from] hex::FromHexError),
15 #[error("Invalid public key: {0}")]
16 PublicKey(#[from] bls::Error),
17 #[error("Invalid string length")]
18 InvalidLength,
19}