package
3.0.1
Repository: https://git.chainmaker.org.cn/chainmaker/common
Documentation: pkg.go.dev

# Packages

Package crypto implements various cryptographic utilities used by libp2p.
No description provided by the author

# Functions

CreateLibp2pPeerIdWithPrivateKey create a peer.ID with crypto.PrivateKey.
CreateLibp2pPeerIdWithPublicKey create a peer.ID with crypto.PublicKey.
GetLibp2pPeerIdFromCert create a peer.ID with pubKey that contains in cert.
GetLibp2pPeerIdFromCertDer create a peer.ID with pubKey that contains in cert.
GetNodeUidFromAddr get the unique id of node from an addr.
P2pAddressFormatVerify verify a node address format.
ParseGoPublicKeyToPubKey parse a go crypto PublicKey to a libp2p crypto PubKey.