Add BlobSidecar type

This commit is contained in:
Pawan Dhananjay
2023-02-08 13:00:18 +05:30
committed by Diva M
parent 91a8d4575d
commit 39d4f0a1f3
3 changed files with 60 additions and 1 deletions

View File

@@ -20,6 +20,12 @@ impl Display for KzgCommitment {
}
}
impl Default for KzgCommitment {
fn default() -> Self {
KzgCommitment([0; KZG_COMMITMENT_BYTES_LEN])
}
}
impl TreeHash for KzgCommitment {
fn tree_hash_type() -> tree_hash::TreeHashType {
<[u8; KZG_COMMITMENT_BYTES_LEN] as TreeHash>::tree_hash_type()