-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check blob data availability (#879)
- Loading branch information
1 parent
f09ebd4
commit 1eb37a3
Showing
8 changed files
with
171 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# TODO: maybe allow doing this without declaring a new struct? | ||
defmodule Types.Blobdata do | ||
@moduledoc """ | ||
BlobSidecar data optimized for usage in `on_block`. | ||
This is needed to run the spectests. | ||
""" | ||
@behaviour LambdaEthereumConsensus.Container | ||
|
||
fields = [:blob, :proof] | ||
@enforce_keys fields | ||
defstruct fields | ||
|
||
@type t :: %__MODULE__{blob: Types.blob(), proof: Types.kzg_proof()} | ||
|
||
@impl LambdaEthereumConsensus.Container | ||
def schema do | ||
[ | ||
blob: TypeAliases.blob(), | ||
proof: TypeAliases.kzg_proof() | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters