-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verfifying kzg proof #4994
verfifying kzg proof #4994
Conversation
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
private final long MAX_DATA_GAS_PER_BLOCK = 524_288; // 2**19 | ||
private final long DATA_GAS_PER_BLOB = 131_072; // 2**17 | ||
private final byte BLOB_COMMITMENT_VERSION_KZG = 0x01; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be defined elsewhere, but fine for test net
if (transaction.getBlobsWithCommitments().isEmpty()) { | ||
return ValidationResult.invalid( | ||
TransactionInvalidReason.INVALID_BLOBS, | ||
"transaction blobs are empty, cannot verify without blobs"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be cleaned up, good for testnet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YOLO
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> (cherry picked from commit 8e3a912) (cherry picked from commit c325682b0f8acadc411acd6daafb55f5941785a0)
Signed-off-by: Jiri Peinlich jiri.peinlich@gmail.com