hashtree-cli 0.2.58

Hashtree daemon and CLI - content-addressed storage with P2P sync
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;
use bytes::Bytes;
pub use nostr_social_graph::BinaryBudget as SnapshotOptions;

use super::SocialGraphBackend;

pub fn build_snapshot_chunks(
    store: &(impl SocialGraphBackend + ?Sized),
    root: &[u8; 32],
    options: &SnapshotOptions,
) -> Result<Vec<Bytes>> {
    store.snapshot_chunks(root, options)
}