examples

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntryWithEmbed deprecated

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

Deprecated: use github.com/ipfs/boxo/ipns/examples.CreateEntryWithEmbed

func GenerateEDKeyPair deprecated

func GenerateEDKeyPair() (crypto.PrivKey, error)

GenerateEDKeyPair is used to generate an ED25519 keypair

Deprecated: use github.com/ipfs/boxo/ipns/examples.GenerateEDKeyPair

func GenerateRSAKeyPair deprecated

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

GenerateRSAKeyPair is used to generate an RSA key pair

Deprecated: use github.com/ipfs/boxo/ipns/examples.GenerateRSAKeyPair

Types

This section is empty.

Jump to

Keyboard shortcuts

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