Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
Number rpc.ArgUint64 `json:"number"`
GlobalExitRoot common.Hash `json:"globalExitRoot"`
Timestamp rpc.ArgUint64 `json:"timestamp"`
Coinbase common.Address `json:"coinbase"`
L2Data rpc.ArgBytes `json:"batchL2Data"`
}
Batch represents a batch used for synchronization
func (*Batch) HashToSign ¶
HashToSign returns a hash that uniquely identifies the batch
func (*Batch) Sign ¶
func (b *Batch) Sign(privateKey *ecdsa.PrivateKey) (*SignedBatch, error)
Sign returns a signed batch by the private key
Click to show internal directories.
Click to hide internal directories.