mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-10 18:03:08 +00:00
27 lines
546 B
Go
27 lines
546 B
Go
|
|
package types
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"go.uber.org/zap"
|
||
|
|
|
||
|
|
enstypes "github.com/waku-org/waku-go-bindings/eth-node/types/ens"
|
||
|
|
)
|
||
|
|
|
||
|
|
// EnodeID is a unique identifier for each node.
|
||
|
|
type EnodeID [32]byte
|
||
|
|
|
||
|
|
// ID prints as a long hexadecimal number.
|
||
|
|
func (n EnodeID) String() string {
|
||
|
|
return fmt.Sprintf("%x", n[:])
|
||
|
|
}
|
||
|
|
|
||
|
|
type Node interface {
|
||
|
|
NewENSVerifier(logger *zap.Logger) enstypes.ENSVerifier
|
||
|
|
GetWaku(ctx interface{}) (Waku, error)
|
||
|
|
GetWakuV2(ctx interface{}) (Waku, error)
|
||
|
|
AddPeer(url string) error
|
||
|
|
RemovePeer(url string) error
|
||
|
|
PeersCount() int
|
||
|
|
}
|