Documentation
¶
Index ¶
- func BytesCompare(a, b []byte) bool
- func ExtractIPFromMultiaddr(addr ma.Multiaddr) (net.IP, error)
- func GetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) common.Address
- func GetCallerName() string
- func GetNow() string
- func PeersToBytes(p []peer.ID) []byte
- func Secp256k1CompressedBytesToEthAddress(compressedBytes []byte) common.Address
- type Broadcast
- type ComChannels
- type ConnectionEvent
- type Event
- type MsgMode
- type PeerType
- type ReportEvent
- type ReportType
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesCompare ¶
func GetAddressFromPrivateKey ¶
func GetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) common.Address
it takes a private key as input and returns the corresponding Ethereum address.
func GetCallerName ¶
func GetCallerName() string
func PeersToBytes ¶
func Secp256k1CompressedBytesToEthAddress ¶
it takes compressed bytes representing a secp256k1 public key as input and returns the corresponding Ethereum address.
Types ¶
type ComChannels ¶
type ComChannels byte
const ( UNDEFINED_cc ComChannels = iota // builder channels SignatureCh BlockKeyCh BundleCh PreconfCh // searcher channels BidCh CommitmentCh )
type ReportEvent ¶
type ReportEvent struct {
PeerID peer.ID
Reason ReportType
}
ReportEvent represents an event involving a reported issue
type ReportType ¶
type ReportType byte
const ( UNDEFINED_rt ReportType = iota BadSignatureMsg BadBlockKeyMsg BadBundleMsg BadPreconfMsg )
TODO: additional reporting types might be necessary, consult the team
func (ReportType) String ¶
func (r ReportType) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.