-
Notifications
You must be signed in to change notification settings - Fork 207
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
Implement cert verifier address provider #1368
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e9890d3
Draft cert verifier address provider feature
litt3 2f3be38
Merge branch 'master' into cert-verifier-address-provider
litt3 fb0d95a
Clean up
litt3 6ca805b
Simplify checkAndSetDefaults docs
litt3 235570f
Fix wording
litt3 ceee94b
Rename to WaitForBlockNumber
litt3 a01d8fe
Use common.Address instead of strings
litt3 f48dea3
Make default config getters private
litt3 947a1b7
Make map docs consistent
litt3 a8e5cb0
Improve block number vs RBN verbiage
litt3 7c5ce3e
Tighten up the cert verifier
litt3 b34f52b
Fix test var name
litt3 5d0d929
Merge branch 'master' into cert-verifier-address-provider
litt3 9db13f7
Tighten up block number monitor
litt3 37c48c5
Improve test
litt3 a057fb8
Add detail to TODO
litt3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
package clients | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/ethereum/go-ethereum/common" | ||
) | ||
|
||
// CertVerifierAddressProvider defines an object which can translate block number to cert verifier address | ||
// | ||
// This provider uses block number as a key, since updates to a cert verifier address in a running system are | ||
// coordinated by defining the block number at which a new cert verifier address takes effect. | ||
// This provider uses reference block number as a key, since updates to a cert verifier address in a running system are | ||
// coordinated by defining the reference block number at which a new cert verifier address takes effect. Specifically, | ||
// a blob shall be verified by the latest defined cert verifier contract with a reference block number key that doesn't | ||
// exceed the reference block number of the blob's batch. | ||
type CertVerifierAddressProvider interface { | ||
// GetCertVerifierAddress returns the EigenDACertVerifierAddress that is active at the input block number | ||
GetCertVerifierAddress(blockNumber uint64) (string, error) | ||
// GetCertVerifierAddress returns the EigenDACertVerifierAddress that is active at the input reference block number | ||
GetCertVerifierAddress(ctx context.Context, referenceBlockNumber uint64) (common.Address, error) | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
which litt? ;)
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.
Litt specified, and disambiguated