Documentation ¶
Index ¶
- func FlowPublicKeyFromLibP2P(lpk lcrypto.PubKey) (fcrypto.PublicKey, error)
- func LibP2PPrivKeyFromFlow(fpk fcrypto.PrivateKey) (lcrypto.PrivKey, error)
- func LibP2PPublicKeyFromFlow(fpk fcrypto.PublicKey) (lcrypto.PubKey, error)
- func PeerIDFromFlowPublicKey(networkPubKey fcrypto.PublicKey) (pid peer.ID, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlowPublicKeyFromLibP2P ¶
This converts some libp2p PubKeys to a flow PublicKey - the supported key types are ECDSA P-256 and ECDSA Secp256k1 public keys, - libp2p also supports RSA and Ed25519 keys, which Flow doesn't, their conversion will return an error.
func LibP2PPrivKeyFromFlow ¶
func LibP2PPrivKeyFromFlow(fpk fcrypto.PrivateKey) (lcrypto.PrivKey, error)
LibP2PPrivKeyFromFlow converts a Flow private key to a LibP2P Private key
func LibP2PPublicKeyFromFlow ¶
LibP2PPublicKeyFromFlow converts a Flow public key to a LibP2P public key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.