package
0.0.0-20220728222812-7e2f347744fb
Repository: https://github.com/ir4tech/webb-evm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
BytesToRequest unmarshals the given requestBytes into Request object.
No description provided by the author
No description provided by the author
RequestToBytes marshals the given request object into bytes.

# Constants

TxMsgSoftCapSize is the ideal size of encoded transaction bytes we send in any [Txs] message.
No description provided by the author

# Structs

BlockRequest is a request to retrieve Parents number of blocks starting from Hash from newest-oldest manner.
BlockResponse is a response to a BlockRequest Blocks is slice of RLP encoded blocks starting with the block requested in BlockRequest.Hash.
CodeRequest is a request to retrieve a contract code with specified Hash.
CodeResponse is a response to a CodeRequest crypto.Keccak256Hash of Data is expected to equal CodeRequest.Hash handler: handlers.CodeRequestHandler.
LeafsRequest is a request to receive trie leaves at specified Root within Start and End byte range Limit outlines maximum number of leaves to returns starting at Start.
LeafsResponse is a response to a LeafsRequest Keys must be within LeafsRequest.Start and LeafsRequest.End and sorted in lexicographical order.
No description provided by the author
SyncableBlock provides the information necessary to sync a node starting at the given block.
No description provided by the author

# Interfaces

GossipHandler handles incoming gossip messages.
No description provided by the author
Request represents a Network request type.
RequestHandler interface handles incoming requests from peers Must have methods in format of handleType(context.Context, ids.NodeID, uint32, request Type) error so that the Request object of relevant Type can invoke its respective handle method on this struct.
ResponseHandler handles response for a sent request Only one of OnResponse or OnFailure is called for a given requestID, not both.