Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the DAC integration
func New ¶
func New( l1RPCURL string, dataCommitteeAddr common.Address, privKey *ecdsa.PrivateKey, dataCommitteeClientFactory client.Factory, ) (*Backend, error)
New creates an instance of Backend
func (*Backend) GetBatchL2Data ¶
GetBatchL2Data returns the data from the DAC. It checks that it matches with the expected hash
func (*Backend) GetSequence ¶
GetSequence gets backend data one hash at a time. This should be optimized on the DAC side to get them all at once.
type DataCommittee ¶
type DataCommittee struct { AddressesHash common.Hash Members []DataCommitteeMember RequiredSignatures uint64 }
DataCommittee represents a specific committee
type DataCommitteeMember ¶
DataCommitteeMember represents a member of the Data Committee
Click to show internal directories.
Click to hide internal directories.