Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity interface { GetPrivateKey() []byte // Marshal marshals a identity to bytes Marshal() ([]byte, error) }
Identity node interface
type Libp2pIdentity ¶
Libp2pIdentity identity provided by libp2p core
func (*Libp2pIdentity) GetLibp2pPrivateKey ¶
func (id *Libp2pIdentity) GetLibp2pPrivateKey() libp2pCrypto.PrivKey
func (*Libp2pIdentity) GetPrivateKey ¶
func (id *Libp2pIdentity) GetPrivateKey() []byte
func (*Libp2pIdentity) Marshal ¶
func (id *Libp2pIdentity) Marshal() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.