Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLibp2pIdentity ¶
GetLibp2pIdentity returns libp2p Host option for Identity from local peer object.
func ToLibp2pPeerID ¶
func ToLibp2pPeerID(p *peer.Peer) (libp2ppeer.ID, error)
ToLibp2pPeerID computes libp2p peer ID from our peer object.
func ToLibp2pPrivateKey ¶
func ToLibp2pPrivateKey(ourPrivateKey ed25519.PrivateKey) (libp2pcrypto.PrivKey, error)
ToLibp2pPrivateKey transforms private key in our type to libp2p type.
Types ¶
type UvarintReader ¶
type UvarintReader struct {
// contains filtered or unexported fields
}
UvarintReader read protobuf messages.
func NewDelimitedReader ¶
func NewDelimitedReader(r io.Reader) *UvarintReader
NewDelimitedReader returns a new UvarintReader.
type UvarintWriter ¶
type UvarintWriter struct {
// contains filtered or unexported fields
}
UvarintWriter writes protobuf messages.
func NewDelimitedWriter ¶
func NewDelimitedWriter(w io.Writer) *UvarintWriter
NewDelimitedWriter returns a new UvarintWriter.
Click to show internal directories.
Click to hide internal directories.