keyutils

package
v0.37.0-crescendo-RC5-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: AGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlowPublicKeyFromLibP2P

func FlowPublicKeyFromLibP2P(lpk lcrypto.PubKey) (crypto.PublicKey, error)

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 crypto.PrivateKey) (lcrypto.PrivKey, error)

LibP2PPrivKeyFromFlow converts a Flow private key to a LibP2P Private key

func LibP2PPublicKeyFromFlow

func LibP2PPublicKeyFromFlow(fpk crypto.PublicKey) (lcrypto.PubKey, error)

LibP2PPublicKeyFromFlow converts a Flow public key to a LibP2P public key

func PeerIDFromFlowPublicKey

func PeerIDFromFlowPublicKey(networkPubKey crypto.PublicKey) (pid peer.ID, err error)

PeerIDFromFlowPublicKey converts a Flow public key to a LibP2P peer ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL