Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sequence ¶
type Sequence struct {
Batches []batch.Batch `json:"batches"`
OldAccInputHash common.Hash `json:"oldAccInputhash"`
}
Sequence represents the data that the sequencer will send to L1 and other metadata needed to build the accumulated input hash aka accInputHash
func (*Sequence) HashToSign ¶
HashToSign returns the accumulated input hash of the sequence. Note that this is equivalent to what happens on the smart contract
func (*Sequence) OffChainData ¶
func (s *Sequence) OffChainData() []offchaindata.OffChainData
OffChainData returns the data that needs to be stored off chain from a given sequence
func (*Sequence) Sign ¶
func (s *Sequence) Sign(privateKey *ecdsa.PrivateKey) (*SignedSequence, error)
Sign returns a signed sequence by the private key. Note that what's being signed is the accumulated input hash
type SignedSequence ¶
type SignedSequence struct {
Sequence Sequence `json:"sequence"`
Signature rpc.ArgBytes `json:"signature"`
}
SignedSequence is a sequence but signed
Click to show internal directories.
Click to hide internal directories.