identity

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair(reader io.Reader) (crypto.PrivKey, crypto.PubKey, error)

GenerateKeyPair generates a private and a public key to use with libp2p peer

func GetIdentity

func GetIdentity(storage interfaces.Storage) (crypto.PrivKey, crypto.PubKey, error)

GetIdentity returns the created private and public key from storage

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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