messages

package
v0.0.0-...-3258e73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointMessages

type CheckpointMessages struct {
	StateRootUpdateMessages              []StateRootUpdateMessage
	StateRootUpdateMessageAggregations   []MessageBlsAggregation
	OperatorSetUpdateMessages            []OperatorSetUpdateMessage
	OperatorSetUpdateMessageAggregations []MessageBlsAggregation
}

type CheckpointTaskResponse

type CheckpointTaskResponse struct {
	ReferenceTaskIndex     coretypes.TaskIndex
	StateRootUpdatesRoot   [32]byte
	OperatorSetUpdatesRoot [32]byte
}

func NewCheckpointTaskResponseFromBinding

func NewCheckpointTaskResponseFromBinding(binding taskmanager.CheckpointTaskResponse) CheckpointTaskResponse

func NewCheckpointTaskResponseFromMessages

func NewCheckpointTaskResponseFromMessages(taskIndex coretypes.TaskIndex, checkpointMessages *CheckpointMessages) (CheckpointTaskResponse, error)

func (CheckpointTaskResponse) AbiEncode

func (msg CheckpointTaskResponse) AbiEncode() ([]byte, error)

func (CheckpointTaskResponse) Digest

func (msg CheckpointTaskResponse) Digest() ([32]byte, error)

func (CheckpointTaskResponse) ToBinding

type MessageBlsAggregation

type MessageBlsAggregation struct {
	EthBlockNumber               coretypes.BlockNumber
	MessageDigest                coretypes.MessageDigest
	NonSignersPubkeysG1          []*bls.G1Point
	QuorumApksG1                 []*bls.G1Point
	SignersApkG2                 *bls.G2Point
	SignersAggSigG1              *bls.Signature
	NonSignerQuorumBitmapIndices []uint32
	QuorumApkIndices             []uint32
	TotalStakeIndices            []uint32
	NonSignerStakeIndices        [][]uint32
}

func NewMessageBlsAggregationFromServiceResponse

func NewMessageBlsAggregationFromServiceResponse(ethBlockNumber uint64, resp blsagg.BlsAggregationServiceResponse) (MessageBlsAggregation, error)

func (MessageBlsAggregation) ExtractBindingMainnet

func (MessageBlsAggregation) ExtractBindingRollup

type OperatorSetUpdateMessage

type OperatorSetUpdateMessage struct {
	Id        coretypes.OperatorSetUpdateId
	Timestamp coretypes.Timestamp
	Operators []coretypes.RollupOperator
}

func (OperatorSetUpdateMessage) AbiEncode

func (msg OperatorSetUpdateMessage) AbiEncode() ([]byte, error)

func (OperatorSetUpdateMessage) Digest

func (msg OperatorSetUpdateMessage) Digest() ([32]byte, error)

func (OperatorSetUpdateMessage) Key

func (msg OperatorSetUpdateMessage) Key() [32]byte

func (OperatorSetUpdateMessage) ToBinding

type SignedCheckpointTaskResponse

type SignedCheckpointTaskResponse struct {
	TaskResponse CheckpointTaskResponse
	BlsSignature bls.Signature
	OperatorId   eigentypes.OperatorId
}

func (*SignedCheckpointTaskResponse) IsValid

func (s *SignedCheckpointTaskResponse) IsValid() error

type SignedOperatorSetUpdateMessage

type SignedOperatorSetUpdateMessage struct {
	Message      OperatorSetUpdateMessage
	BlsSignature bls.Signature
	OperatorId   eigentypes.OperatorId
}

func (*SignedOperatorSetUpdateMessage) IsValid

type SignedStateRootUpdateMessage

type SignedStateRootUpdateMessage struct {
	Message      StateRootUpdateMessage
	BlsSignature bls.Signature
	OperatorId   eigentypes.OperatorId
}

func (*SignedStateRootUpdateMessage) IsValid

func (s *SignedStateRootUpdateMessage) IsValid() error

type StateRootUpdateMessage

type StateRootUpdateMessage struct {
	RollupId            coretypes.RollupId
	BlockHeight         coretypes.BlockNumber
	Timestamp           coretypes.Timestamp
	NearDaTransactionId [32]byte
	NearDaCommitment    [32]byte
	StateRoot           [32]byte
}

func (StateRootUpdateMessage) AbiEncode

func (msg StateRootUpdateMessage) AbiEncode() ([]byte, error)

func (StateRootUpdateMessage) Digest

func (msg StateRootUpdateMessage) Digest() ([32]byte, error)

func (StateRootUpdateMessage) HasNearDaCommitment

func (msg StateRootUpdateMessage) HasNearDaCommitment() bool

func (StateRootUpdateMessage) Key

func (msg StateRootUpdateMessage) Key() [32]byte

func (StateRootUpdateMessage) ToBinding

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL