calimero-node-primitives 0.10.0

Core Calimero infrastructure and tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::Arc;

use actix::Message;
use calimero_primitives::blobs::BlobId;

#[derive(Copy, Clone, Debug)]
pub struct GetBlobBytesRequest {
    pub blob_id: BlobId,
}

impl Message for GetBlobBytesRequest {
    type Result = eyre::Result<GetBlobBytesResponse>;
}

#[derive(Clone, Debug)]
pub struct GetBlobBytesResponse {
    pub bytes: Option<Arc<[u8]>>,
}