Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLibp2pPeerIdFromCert ¶
GetLibp2pPeerIdFromCert create a peer.ID with pubKey that contains in cert. 根据证书中的公钥生成一个libp2p的peer.ID。
func GetNodeUidFromAddr ¶
GetNodeUidFromAddr get the unique id of node from a addr. 从地址中截取出节点ID
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package crypto implements various cryptographic utilities used by libp2p.
|
Package crypto implements various cryptographic utilities used by libp2p. |
Click to show internal directories.
Click to hide internal directories.