Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWarpAPIFetcher ¶
Types ¶
type Backend ¶
type Backend interface { // AddMessage signs [unsignedMessage] and adds it to the warp backend database AddMessage(unsignedMessage *odysseyWarp.UnsignedMessage) error // GetSignature returns the signature of the requested message hash. GetSignature(messageHash ids.ID) ([bls.SignatureLen]byte, error) // GetMessage retrieves the [unsignedMessage] from the warp backend database if available GetMessage(messageHash ids.ID) (*odysseyWarp.UnsignedMessage, error) // Clear clears the entire db Clear() error }
Backend tracks signature-eligible warp messages and provides an interface to fetch them. The backend is also used to query for warp message signatures by the signature request handler.
func NewBackend ¶
NewBackend creates a new Backend, and initializes the signature cache and message tracking database.
type Client ¶
type Client interface { // GetSignature requests the BLS signature associated with a messageID GetSignature(ctx context.Context, messageID ids.ID) ([]byte, error) // GetAggregateSignature requests the aggregate signature associated with messageID GetAggregateSignature(ctx context.Context, messageID ids.ID, quorumNum uint64) ([]byte, error) }
type WarpAPI ¶
type WarpAPI struct {
// contains filtered or unexported fields
}
WarpAPI introduces snowman specific functionality to the evm
func NewWarpAPI ¶
func NewWarpAPI(backend Backend, aggregator *aggregator.Aggregator) *WarpAPI
Source Files ¶
Click to show internal directories.
Click to hide internal directories.