recall_entangler 0.1.0

Entangler that uses the Alpha Entanglement.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2024 Entanglement Contributors
// SPDX-License-Identifier: Apache-2.0, MIT

use serde::{Deserialize, Serialize};
use std::collections::HashMap;

use crate::parity::StrandType;

/// Metadata struct that holds information about the original blob and the parity blobs.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Metadata {
    pub orig_hash: String,
    pub parity_hashes: HashMap<StrandType, String>,
    pub num_bytes: u64,
    pub chunk_size: u64,
    pub s: u8,
    pub p: u8,
}