diff --git a/src/Nethermind/Nethermind.Crypto/KzgPolynomialCommitments.cs b/src/Nethermind/Nethermind.Crypto/KzgPolynomialCommitments.cs index d9c06b978fd5..bb00a905f023 100644 --- a/src/Nethermind/Nethermind.Crypto/KzgPolynomialCommitments.cs +++ b/src/Nethermind/Nethermind.Crypto/KzgPolynomialCommitments.cs @@ -91,6 +91,18 @@ public static bool VerifyProof(ReadOnlySpan commitment, ReadOnlySpan public static bool AreProofsValid(byte[][] blobs, byte[][] commitments, byte[][] proofs) { + if (blobs.Length is 1) + { + try + { + return Ckzg.Ckzg.VerifyBlobKzgProof(blobs[0], commitments[0], proofs[0], _ckzgSetup); + } + catch (Exception e) when (e is ArgumentException or ApplicationException or InsufficientMemoryException) + { + return false; + } + } + var length = blobs.Length * Ckzg.Ckzg.BytesPerBlob; byte[] flatBlobsArray = ArrayPool.Shared.Rent(length); var flatBlobs = new Span(flatBlobsArray, 0, length);