examples

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntryWithEmbed

func CreateEntryWithEmbed(dms3Path string, publicKey crypto.PubKey, privateKey crypto.PrivKey) (*pb.Dms3NsEntry, error)

CreateEntryWithEmbed shows how you can create an DMS3NS 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