mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Add kzg crate functions
This commit is contained in:
committed by
realbigsean
parent
3288404ec1
commit
e8b5f311aa
@@ -111,11 +111,11 @@ pub fn validate_blob_for_gossip<T: BeaconChainTypes>(
|
||||
|
||||
// Verify that blobs are properly formatted
|
||||
//TODO: add the check while constructing a Blob type from bytes instead of after
|
||||
for (i, blob) in blob_sidecar.blobs.iter().enumerate() {
|
||||
if blob.iter().any(|b| *b >= *BLS_MODULUS) {
|
||||
return Err(BlobError::BlobOutOfRange { blob_index: i });
|
||||
}
|
||||
}
|
||||
// for (i, blob) in blob_sidecar.blobs.iter().enumerate() {
|
||||
// if blob.iter().any(|b| *b >= *BLS_MODULUS) {
|
||||
// return Err(BlobError::BlobOutOfRange { blob_index: i });
|
||||
// }
|
||||
// }
|
||||
|
||||
// Verify that the KZG proof is a valid G1 point
|
||||
if PublicKey::deserialize(&blob_sidecar.kzg_aggregate_proof.0).is_err() {
|
||||
|
||||
Reference in New Issue
Block a user