examples

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntryWithEmbed

func CreateEntryWithEmbed(ipfsPath string, publicKey crypto.PubKey, privateKey crypto.PrivKey) (*pb.IpnsEntry, error)

CreateEntryWithEmbed shows how you can create an IPNS entry and embed it with a public key. For ed25519 keys this is not needed so attempting to embed with an ed25519 key, will not actually embed the key

func GenerateEDKeyPair

func GenerateEDKeyPair() (crypto.PrivKey, error)

GenerateEDKeyPair is used to generate an ED25519 keypair

func GenerateRSAKeyPair

func GenerateRSAKeyPair(bits int) (crypto.PrivKey, error)

GenerateRSAKeyPair is used to generate an RSA key pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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