Skip to content

Commit

Permalink
feat(types): Make fields of ShareProof public (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
S1nus authored Feb 7, 2025
1 parent 8e5caf3 commit f59466a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions types/src/share/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ use crate::{nmt::Namespace, Error, Result};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(try_from = "RawShareProof", into = "RawShareProof")]
pub struct ShareProof {
data: Vec<[u8; SHARE_SIZE]>,
namespace_id: Namespace,
share_proofs: Vec<NamespaceProof>,
row_proof: RowProof,
/// The shares, as a Vec of byte arrays
pub data: Vec<[u8; SHARE_SIZE]>,
/// The namespace of the shares
pub namespace_id: Namespace,
/// Vec of the NMT multiproofs for the rows spanned by the range
pub share_proofs: Vec<NamespaceProof>,
/// Proofs for row roots into data root
pub row_proof: RowProof,
}

impl ShareProof {
Expand Down

0 comments on commit f59466a

Please sign in to comment.