Add KZG proof and blob validation

This commit is contained in:
Jimmy Chen
2023-03-15 15:15:46 +11:00
parent 62627d984c
commit 02a88f0704
6 changed files with 71 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ use std::fmt::{Debug, Display, Formatter};
use std::str::FromStr;
use tree_hash::{PackedEncoding, TreeHash};
#[derive(Derivative, Clone, Encode, Decode)]
#[derive(Derivative, Clone, Copy, Encode, Decode)]
#[derivative(PartialEq, Eq, Hash)]
#[ssz(struct_behaviour = "transparent")]
pub struct KzgCommitment(pub [u8; BYTES_PER_COMMITMENT]);